//bridge-file-version: #2
{
	"format_version": "1.17.0",
	"minecraft:entity": {
		"description": {
			"identifier": "hf:sleep",
			"runtime_identifier": {},
			"is_summonable": true,
			"is_spawnable": false,
			"is_experimental": false,
			"scripts": {
				"animate": [
					"seat"
				]
			},
			"animations": {
				"seat": "controller.animation.sleep"
			}
		},
		"components": {
			"minecraft:rideable": {
				"seat_count": 1,
				"seats": [
					{
						"position": [
							0,
							-0.25,
							0
						]
					}
				],
				"interact_text": "Lie Down",
				"family_types": [
					"player"
				],
				"crouching_skip_interact": true
			},
			"minecraft:type_family": {
				"family": [
					"sit"
				]
			},
			"minecraft:health": {
				"value": 1,
				"max": 1
			},
			"minecraft:collision_box": {
				"width": 0.1,
				"height": 0.1
			},
			"minecraft:physics": {
				"has_collision": false,
				"has_gravity": false
			},
			"minecraft:fire_immune": true,
			"minecraft:environment_sensor": {
				"triggers": [
					{
						"event": "despawn",
						"filters": {
							"test": "rider_count",
							"value": 0
						}
					}
				]
			}
		},
		"component_groups": {
			"despawn": {
				"minecraft:instant_despawn": {}
			}
		},
		"events": {
			"despawn": {
				"add": {
					"component_groups": [
						"despawn"
					]
				}
			}
		}
	}
}