{
	"format_version": "1.20.80",
	"minecraft:entity": {
		"description": {
			"identifier": "v360:thrown_spear",
			"is_spawnable": false,
			"is_summonable": true,
			"is_experimental": false,
			"runtime_identifier": "minecraft:snowball"
		},
		"component_groups": {
			"v360:can_pick_up": {
				"minecraft:entity_sensor": {
					"subsensors": [
						{
							"range": [
								1,
								1
							],
							"event_filters": {
								"test": "is_family",
								"subject": "other",
								"value": "player"
							},
							"event": "v360:pick_up"
						}
					]
				}
			},
			"v360:despawn": {
				"minecraft:instant_despawn": {}
			}
		},
		"components": {
			"minecraft:collision_box": {
				"width": 0.25,
				"height": 0.35
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:conditional_bandwidth_optimization": {
				"default_values": {
					"max_optimized_distance": 1000,
					"max_dropped_ticks": 7,
					"use_motion_prediction_hints": true
				}
			},
			"minecraft:projectile": {
				"on_hit": {
					"impact_damage": {
						"damage": 4,
						"knockback": true,
						"semi_random_diff_damage": false,
						"destroy_on_hit": false
					},
					"stick_in_ground": {
						"shake_time": 0
					},
					"definition_event": {
						"event_trigger": {
							"event": "v360:can_pick_up"
						}
					}
				},
				"liquid_inertia": 0.99,
				"hit_sound": "item.trident.hit",
				"hit_ground_sound": "item.trident.hit_ground",
				"power": 4,
				"gravity": 0.1,
				"uncertainty_base": 1,
				"uncertainty_multiplier": 0,
				"stop_on_hurt": true,
				"anchor": 1,
				"should_bounce": true,
				"multiple_targets": false,
				"offset": [
					0,
					-0.1,
					0
				]
			}
		},
		"events": {
			"v360:pick_up": {
				"queue_command": {
					"command": [
						"gamerule sendcommandfeedback false",
						"give @p[r=5] v360:spear",
						"kill @s"
					]
				},
				"add": {
					"component_groups": [
						"v360:despawn"
					]
				}
			},
			"v360:can_pick_up": {
				"randomize": [
					{
						"add": {
							"component_groups": [
								"v360:can_pick_up"
							]
						},
						"weight": 95
					},
					{
						"queue_command": {
							"command": [
								"playsound random.break @a ~~~ 1 1 0.5",
								"kill @s"
							]
						},
						"weight": 5
					}
				]
			}
		}
	}
}