{
	"format_version": "1.10.0",
	"minecraft:client_entity": {
		"description": {
			"identifier": "ldz:dungeon_lever",
			"materials": {
				"default": "entity_alphatest"
			},
			"textures": {
				"default": "textures/entity/dungeon_lever/default"
			},
			"geometry": {
				"default": "geometry.dungeon_lever"
			},
			"sound_effects": {
				"activate": "entity.dungeon_lever.activate",
				"deactivate": "entity.dungeon_lever.deactivate"
			},
			"animations": {
				"off": "animation.dungeon_lever.off",
				"on": "animation.dungeon_lever.on",
				"negative_x": "animation.dungeon_lever.negative_x",
				"negative_z": "animation.dungeon_lever.negative_z",
				"positive_x": "animation.dungeon_lever.positive_x",
				"positive_y": "animation.dungeon_lever.positive_y",
				"positive_z": "animation.dungeon_lever.positive_z",
				"rotate_45": "animation.dungeon_lever.rotate_45",
				"rotate_90": "animation.dungeon_lever.rotate_90",
				"rotate_135": "animation.dungeon_lever.rotate_135",
				"rotate_180": "animation.dungeon_lever.rotate_180",
				"rotate_225": "animation.dungeon_lever.rotate_225",
				"rotate_270": "animation.dungeon_lever.rotate_270",
				"rotate_315": "animation.dungeon_lever.rotate_315",
				"ctrl.power_state": "controller.animation.dungeon_lever.power_state"
			},
			"scripts": {
				"animate": [
					{ "rotate_45": "q.property('ldz:rotation') == 45" },
					{ "rotate_90": "q.property('ldz:rotation') == 90" },
					{ "rotate_135": "q.property('ldz:rotation') == 135" },
					{ "rotate_180": "q.property('ldz:rotation') == 180" },
					{ "rotate_225": "q.property('ldz:rotation') == 225" },
					{ "rotate_270": "q.property('ldz:rotation') == 270" },
					{ "rotate_315": "q.property('ldz:rotation') == 315" },
					{ "negative_x": "q.property('ldz:block_attached') == 'negative_x'"},
					{ "negative_z": "q.property('ldz:block_attached') == 'negative_z'" },
					{ "positive_x": "q.property('ldz:block_attached') == 'positive_x'" },
					{ "positive_y": "q.property('ldz:block_attached') == 'positive_y'" },
					{ "positive_z": "q.property('ldz:block_attached') == 'positive_z'" },

					"ctrl.power_state"
				]
			},
			"render_controllers": [
				"controller.render.dungeon_lever"
			]
		}
	}
}