{
	"format_version": "1.19.30",
	"minecraft:entity": {
		"description": {
			"identifier": "vatonage:breeder",
			"is_summonable": true,
			"is_spawnable": false,
			"is_experimental": false
		},
		"component_groups": {
			"vatonage:despawn": {
				"minecraft:transformation": {
        "drop_inventory": true,
        "into": "vatonage:despawn"
         }
			}
		},
		"components": {
			"minecraft:nameable": {
			  "allow_name_tag_renaming": false,
			  "always_show": false
      },
			"minecraft:type_family": {
				"family": ["roost", "inanimate" ]
			},
			"minecraft:inventory": {
       "additional_slots_per_strength": 0,
       "can_be_siphoned_from": false,
       "container_type": "inventory",
       "inventory_size": 7,
       "private": false,
       "restrict_to_owner": false
      },
			"minecraft:fire_immune": true,
			"minecraft:damage_sensor": {
				"triggers": [
					{
						"cause": "all",
						"deals_damage": false
					}
				]
			},
			"minecraft:health": {
				"value": 1,
				"max": 1,
				"min": 1
			},
			"minecraft:knockback_resistance": {
				"value": 1,
				"max": 1
			},
			"minecraft:timer": {
        "time": 0.1,
        "looping": true,
        "time_down_event": {
         "event": "event:ticking",
         "target": "self"
        }
      },
			 "minecraft:collision_box": {
         "height": 0,
         "width": 0
       },
       "minecraft:custom_hit_test": {
         "hitboxes": [{
            "width": 1,
            "height": 0.30,
            "pivot": [0, 0.5, 0]}]
       }
		},
		"events": {
		  "minecraft:entity_spawned": {
		    "queue_command": {
		      "command": [
		    "scoreboard objectives add arrowScore dummy",
        "scoreboard players add @s arrowScore 0",
        "scoreboard objectives add arrowTick dummy",
        "scoreboard players add @s arrowTick 0"
         ]
		    }
		  },
		  "event:ticking": {
		    "queue_command": {
		      "command": "scriptevent vatonage:breeder_system"
		    }
		  },
			"event:despawn": {
			 "queue_command": {
			    "command": [ "replaceitem entity @s slot.inventory 3 air", "event entity @s event:despawning_entity"]
			  }
	   },
	   "event:despawning_entity": {
	     	"add": {
			  	"component_groups": [
			   	"vatonage:despawn"
		   	]
	  	}
	   }
    }
  }
}