{
  "format_version": "1.13.0",
  "minecraft:entity": {
    "description": {
      "identifier": "vehicle:shelby.mustang.gt.500.destroy",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false
    },

    "component_groups": {
			"mob:despawn": {
				"minecraft:instant_despawn": {}
			},

      "mob:break": {
        "minecraft:despawn": {},
        "minecraft:loot": {
          "loot": "loot_tables/entities/armor_stand.json"
        }
      }
    },

    "components": {
			"minecraft:ageable": {
				"duration": 120,
				"grow_up": {
					"event": "mob:despawn"
				}
			},
      "minecraft:despawn": {
        "despawn_from_distance": {
        }
      },

      "minecraft:fire_immune": true,
      "minecraft:knockback_resistance": true,

      "minecraft:type_family": {
        "family": [
          "shelby_gt_500_destroyed"
        ]
      },

      "minecraft:inventory": {
        "inventory_size": 8,
        "container_type": "horse"
      },

      "minecraft:jump.static": {},

      "minecraft:rideable": {
        "seat_count": 2,
        "crouching_skip_interact": false,
        "rider_can_interact": true,
        "family_types": [
          "player"
        ],
        "interact_text": "action.interact.mount",
        "seats": [
          {
            "position": [ 0.6, 0.4, -0.4 ]
          },
          {
            "position": [ -0.6, 0.4, -0.4 ]
          }
        ]
      },
      "minecraft:collision_box": {
        "width": 2.4,
        "height": 1.9
      },
      "minecraft:is_stackable": {},
      "minecraft:pushable": {
        "is_pushable": false,
        "is_pushable_by_piston": true
      },
      "minecraft:is_chested": {},
      "minecraft:damage_sensor": {
        "triggers": [
          {
            "on_damage": {
              "filters": {
                "all_of": [
                  {
                    "test": "is_family",
                    "subject": "other",
                    "value": "player"
                  },
                  {
                    "test": "has_ability",
                    "subject": "other",
                    "value": "instabuild"
                  },
								  {
								  	"test": "is_sneaking",
							  		"subject": "player",
							  		"value": true
						  		},
                  {
                    "test": "is_riding",
                    "subject": "other",
                    "value": false
                  }
                ]
              },
              "event": "mob:break"
            },
            "deals_damage": false
          },
          {
            "on_damage": {
              "filters": {
                "test": "is_block",
                "subject": "block",
                "value": "minecraft:sweet_berry_bush"
              }
            },
            "deals_damage": false
          },
          {
            "on_damage": {
              "filters": {
                "test": "is_block",
                "subject": "block",
                "value": "minecraft:cactus"
              }
            },
            "deals_damage": false
          },
          {
            "on_damage": {
              "filters": {
                "test": "is_family",
                "subject": "other",
                "value": "mob"
              }
            },
            "deals_damage": false
          },
          {
            "on_damage": {
              "filters": {
                "test": "is_family",
                "subject": "other",
                "value": "player"
              }
            },
            "deals_damage": false
          },
          {
            "on_damage": {
              "filters": {
                "test": "is_family",
                "subject": "other",
                "value": "monster"
              }
            },
            "deals_damage": false
          },
          {
            "on_damage": {
              "filters": {
                "test": "is_family",
                "subject": "other",
                "value": "arrow"
              }
            },
            "deals_damage": false
          },
          {
            "cause": "explosion",
            "deals_damage": false
          },
          {
            "cause": "fall",
            "deals_damage": false
          },
          {
            "cause": "breath",
            "deals_damage": false
          },
          {
            "cause": "magic",
            "deals_damage": false
          },
          {
            "cause": "enity_attack",
            "deals_damage": false
          },
          {
            "cause": "lava",
            "deals_damage": false
          },
          {
            "cause": "fire",
            "deals_damage": false
          },
          {
            "cause": "lightning",
            "deals_damage": false
          }
        ]
      },
	    "minecraft:health": { "value": 10 },
      "minecraft:physics": {}
    },

    "events": {
			"minecraft:entity_spawned": {
				"randomize": [
					{
						"weight": 0.1,
						"run_command": {
							"command": [
                "playanimation @s explode"
							]
						}
					},
					{
						"weight": 99.0,
						"run_command": {
							"command": [
                "playanimation @s explode"
							]
						}
					}
				]
			},


			"mob:despawn": {
				"add": {
					"component_groups": [
						"mob:despawn"
					]
				}
			},

      "mob:break": {
        "add": {
          "component_groups": [
            "mob:break"
          ]
        }
      }
    }
  }
}
