{
  "format_version": "1.16.0",
  "minecraft:entity": {
    "description": {
      "identifier": "potell:trigger",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false
	  },
    "components": {
      "minecraft:type_family": {
        "family": [
          "decor"
        ]
      },
      "minecraft:health": {
        "value": 20,
        "max": 20
      },
      "minecraft:despawn": {
				"despawn_from_chance": false,
				"despawn_from_distance": {
					"min_distance": 28
				},
				"despawn_from_inactivity": false,
				"despawn_from_simulation_edge": true,
				"min_range_inactivity_timer": 30,
				"remove_child_entities": false,
				"filters": {
					"any_of": [
						{
							"test": "distance_to_nearest_player",
							"value": 128,
							"operator": ">="
						}
					]
				}
			},
	  "minecraft:damage_sensor":{
		"triggers":[
	      {
		    "cause": "all",
		    "deals_damage": false
		  }
	    ]
	  },
      "minecraft:collision_box": {
        "width": 0,
        "height": 0
      },
      "minecraft:physics": {
        "has_gravity": false,
        "has_collision": false
      },
      "minecraft:movement": {
        "value": 0,
        "max": 0
      },
      "minecraft:knockback_resistance": {
        "value": 1
      },
      "minecraft:push_through": {
        "value": 1
      },
      "minecraft:pushable": {
        "is_pushable": false,
        "is_pushable_by_piston": false
      },
      "minecraft:persistent": {},
      "minecraft:fire_immune": true,
      "minecraft:friction_modifier": {
        "value": 0
      },
      "minecraft:navigation.hover": {
        "can_sink": false
      },
      "minecraft:movement.hover": {}
    },
    "component_groups": {
      "despawn":{
				"minecraft:instant_despawn": {
					"remove_child_entities": false
				}
			}
    },
    "events": {
      "potell:despawn":{
				"add": {
					"component_groups": [
						"despawn"
					]
				}
			}
    }
  }
}