{
	"format_version": "1.14.0",
	"minecraft:entity": {
		"description": {
			"identifier": "shapescape:elevator_223",
			"is_spawnable": false,
			"is_summonable": true,
			"is_experimental": false,
			"animations": {
				"main": "controller.animation.elevator.main"
			},
			"scripts": {
				"animate": [
					"main"
				]
			}
		},
		"component_groups": {
			"shapescape:closed": {
				"minecraft:variant": {
					"value": 0
				},
				"minecraft:damage_sensor": {
					"triggers": [
						{
							"on_damage": {
								"event": "shapescape:opening",
								"target": "self"
							},
							"deals_damage": false
						}
					]
				},
				"minecraft:interact": {
					"interactions": [
						{
							"interact_text": "interact.elevator.open",
							"on_interact": {
								"event": "shapescape:opening"
							}
						}
					]
				},
				"minecraft:environment_sensor": {
					"triggers": [
						{
							"event": "shapescape:opening",
							"filters": {
								"test": "distance_to_nearest_player",
								"operator": "<",
								"value": 5
							}
						}
					]
				}
			},
			"shapescape:open": {
				"minecraft:variant": {
					"value": 1
				},
				"minecraft:damage_sensor": {
					"triggers": [
						{
							"on_damage": {
								"event": "shapescape:closing",
								"target": "self"
							},
							"deals_damage": false
						}
					]
				},
				"minecraft:interact": {
					"interactions": [
						{
							"interact_text": "interact.elevator.close",
							"on_interact": {
								"event": "shapescape:closing"
							}
						}
					]
				},
				"minecraft:environment_sensor": {
					"triggers": [
						{
							"event": "shapescape:closing",
							"filters": {
								"test": "distance_to_nearest_player",
								"operator": ">",
								"value": 6
							}
						}
					]
				}
			},
			"shapescape:closing": {
				"minecraft:damage_sensor": {
					"triggers": [
						{
							"deals_damage": false
						}
					]
				},
				"minecraft:variant": {
					"value": 2
				},
				"minecraft:timer": {
					"time": 2.9,
					"time_down_event": {
						"event": "shapescape:closed"
					}
				}
			},
			"shapescape:opening": {
				"minecraft:damage_sensor": {
					"triggers": [
						{
							"deals_damage": false
						}
					]
				},
				"minecraft:variant": {
					"value": 3
				},
				"minecraft:timer": {
					"time": 2.9,
					"time_down_event": {
						"event": "shapescape:open"
					}
				}
			},
			"shapescape:statue_down": {
				"minecraft:type_family": {
					"family": [
						"elevator",
						"statue_down",
						"shapescape",
						"shapescape_"
					]
				}
			},
			"shapescape:statue_up": {
				"minecraft:type_family": {
					"family": [
						"elevator",
						"statue_up",
						"shapescape",
						"shapescape_"
					]
				}
			},
			"shapescape:esb_down": {
				"minecraft:type_family": {
					"family": [
						"elevator",
						"esb_down",
						"shapescape",
						"shapescape_"
					]
				}
			},
			"shapescape:esb_up": {
				"minecraft:type_family": {
					"family": [
						"elevator",
						"esb_up",
						"shapescape",
						"shapescape_"
					]
				}
			},
			"shapescape:despawn": {
				"minecraft:instant_despawn": {}
			}
		},
		"components": {
			"minecraft:type_family": {
				"family": [
					"elevator",
					"shapescape",
					"shapescape_"
				]
			},
			"minecraft:physics": {
				"has_gravity": false,
				"has_collision": false
			},
			"minecraft:collision_box": {
				"width": 2.3,
				"height": 2.9
			},
			"minecraft:custom_hit_test": {
				"hitboxes": [
					{
						"width": 5.0,
						"height": 3,
						"pivot": [
							0,
							0.5,
							0
						]
					}
				]
			},
			"minecraft:push_through": {
				"value": 1
			},
			"minecraft:pushable": {
				"is_pushable": false,
				"is_pushable_by_piston": false
			},
			"minecraft:knockback_resistance": {
				"value": 1
			},
			"minecraft:health": {
				"value": 1,
				"max": 1
			},
			"minecraft:damage_sensor": {
				"triggers": [
					{
						"on_damage": {
							"filters": {
								"test": "has_equipment",
								"domain": "hand",
								"subject": "other",
								"operator": "not",
								"value": "slime_ball"
							}
						},
						"deals_damage": false
					}
				]
			},
			"minecraft:conditional_bandwidth_optimization": {}
		},
		"events": {
			"shapescape:statue_down": {
				"add": {
					"component_groups": [
						"shapescape:closed",
						"shapescape:statue_down"
					]
				}
			},
			"shapescape:statue_up": {
				"add": {
					"component_groups": [
						"shapescape:closed",
						"shapescape:statue_up"
					]
				}
			},
			"shapescape:esb_down": {
				"add": {
					"component_groups": [
						"shapescape:closed",
						"shapescape:esb_down"
					]
				}
			},
			"shapescape:esb_up": {
				"add": {
					"component_groups": [
						"shapescape:closed",
						"shapescape:esb_up"
					]
				}
			},
			"shapescape:closed": {
				"remove": {
					"component_groups": [
						"shapescape:open",
						"shapescape:closing",
						"shapescape:opening"
					]
				},
				"add": {
					"component_groups": [
						"shapescape:closed"
					]
				}
			},
			"shapescape:open": {
				"remove": {
					"component_groups": [
						"shapescape:closed",
						"shapescape:closing",
						"shapescape:opening"
					]
				},
				"add": {
					"component_groups": [
						"shapescape:open"
					]
				}
			},
			"shapescape:closing": {
				"remove": {
					"component_groups": [
						"shapescape:closed",
						"shapescape:open",
						"shapescape:opening"
					]
				},
				"add": {
					"component_groups": [
						"shapescape:closing"
					]
				}
			},
			"shapescape:opening": {
				"remove": {
					"component_groups": [
						"shapescape:closed",
						"shapescape:open",
						"shapescape:closing"
					]
				},
				"add": {
					"component_groups": [
						"shapescape:opening"
					]
				}
			},
			"shapescape:despawn": {
				"add": {
					"component_groups": [
						"shapescape:despawn"
					]
				}
			}
		}
	}
}