{
  "format_version": "1.16.0",
  "minecraft:entity": {
    "description": {
      "identifier": "lifeboat:taxi",
      //"runtime_identifier": "minecraft:ghast",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false
    },
    "component_groups": {

      "minecraft:exploding": {
        "minecraft:explode": {
          "fuseLength": -0.5,
          "fuseLit": true,
          "power": 0, 
          "causesFire": false,
          "destroyAffectedByGriefing": true
        }
      }

    },
      "components": {
			  "minecraft:type_family": {
				  "family": [ "car_regular" ]
			  },
        "minecraft:rideable": {
          "seat_count": 1,
          "family_types": ["player"],
          "interact_text": "On Board",
          "seats": {
            "position": [ 0.45, 0.3, -0.1 ]
          }
        },
        "minecraft:interact": {
          "interactions": [
            {
              "cooldown": 0.0,
              "use_item": false,
              "hurt_item": 0,
              "play_sounds": "drop.slot",
              "interact_text": "Shrink",
               "spawn_items": { "table": "loot_tables/taxi.json" },
              "on_interact": {
                "filters": {
                  "all_of": [
                    { "test": "is_family", "subject": "other", "value": "player" },
                    { "test": "is_sneaking", 	"subject": "other" }
                  ]
                },
                "event": "minecraft:death",
                "target": "self"
              },
              "swing": true
            }
          ]
        },
      "minecraft:collision_box": {
        "width": 2.0,
        "height": 2.0
      },
      "minecraft:movement": {
        "value": 0.3
      },
      "minecraft:input_ground_controlled":{
      },
      "minecraft:movement.basic": {
      },
      "minecraft:damage_sensor": {
        "triggers": 
        {
          "deals_damage": false
        }
      },
	    "minecraft:physics": {
      }
    },
      "events":{

        "minecraft:death":{
          "add": {
            "component_groups": [
              "minecraft:exploding"
            ]
          }
        }
      }
   }
}