{
	"format_version": "1.16.0",
	"minecraft:entity": {
		"description": {
			"identifier": "ldz:bob_arrow",
			"is_summonable": true,
			"is_spawnable": false,
			"is_experimental": false,
			"animations": {
				"diagonal_despawn_check": "animation.bob_arrow.diagonal_despawn_check"
			},
			"scripts": {
				"animate": [
					{ "diagonal_despawn_check": "q.property('ldz:diagonal')" }
				]
			},
			"properties": {
				"ldz:diagonal": {
					"type": "bool",
					"default": false,
					"client_sync": true
				}
			}
		},
		"component_groups": {
			"instant_despawn": {
				"minecraft:instant_despawn": {}
			}
		},
		"components": {
			"minecraft:type_family": {
				"family": [ "ldz", "bob_arrow" ]
			},
			"minecraft:collision_box": {
				"height": 0,
				"width": 0
			},
			"minecraft:health": {
				"value": 10,
				"max": 10
			},
			"minecraft:persistent": {},
			"minecraft:fire_immune": {},
			"minecraft:variant": {
				"value": 0
			},
			"minecraft:damage_sensor": {
				"triggers": [
					{
						"on_damage": {
							"filters": {
								"test": "has_damage",
								"value": "void"
							},
							"event": "despawn"
						},
						"deals_damage": false
					},
					{
						"cause": "all",
						"deals_damage": false
					}
				]
			},
			"minecraft:physics": {
				"has_collision": false,
				"has_gravity": false
			},
			"minecraft:pushable": {
				"is_pushable": false,
				"is_pushable_by_piston": false
			}
		},
		"events": {
			"set_diagonal_to_true": { "set_property": { "ldz:diagonal": true } },
			"set_diagonal_to_false": { "set_property": { "ldz:diagonal": false } },
			"despawn": {
				"add": {
					"component_groups": [
						"instant_despawn"
					]
				}
			}
		}
	}
}