{
	"format_version": "1.20.20",
	"minecraft:block": {
		"description": {
			"identifier": "cc_fairytales:hydra_trophy",
			"menu_category": {
				"category": "equipment"
			},
			"traits": {
				"minecraft:placement_position": {
					"enabled_states": ["minecraft:block_face"]
				},
				"minecraft:placement_direction": {
					"enabled_states": ["minecraft:facing_direction"]
				}
			}
		},
		"components": {
			"minecraft:collision_box": true,
			"minecraft:selection_box": true,
			"minecraft:destructible_by_mining": {
				"seconds_to_destroy": 0.4
			},
			"minecraft:destructible_by_explosion": {
				"explosion_resistance": 200
			},
			"minecraft:geometry": "geometry.cc_fairytales.hydra_trophy",
			"minecraft:material_instances": {
				"*": {
					"texture": "cc_fairytales_hydra_trophy",
					"render_method": "alpha_test"
				}
			},
			"minecraft:loot": "loot_tables/chillcraft/fairy/blocks/hydra_trophy.json",
			"minecraft:map_color": "#5f4a2b"
		},
		"permutations": [
			// Facing down-north
			{
				"condition": "q.block_state('minecraft:block_face') == 'down' && q.block_state('minecraft:facing_direction') == 'north'",
				"components": {
					"minecraft:transformation": { "rotation": [-90, 0, 0] }
				}
			},
			// Facing down-east
			{
				"condition": "q.block_state('minecraft:block_face') == 'down' && q.block_state('minecraft:facing_direction') == 'east'",
				"components": {
					"minecraft:transformation": { "rotation": [0, -90, -90] }
				}
			},
			// Facing down-west
			{
				"condition": "q.block_state('minecraft:block_face') == 'down' && q.block_state('minecraft:facing_direction') == 'west'",
				"components": {
					"minecraft:transformation": { "rotation": [0, 90, 90] }
				}
			},
			// Facing down-south
			{
				"condition": "q.block_state('minecraft:block_face') == 'down' && q.block_state('minecraft:facing_direction') == 'south'",
				"components": {
					"minecraft:transformation": { "rotation": [90, 0, 180] }
				}
			},
			// Facing up-north
			{
				"condition": "q.block_state('minecraft:block_face') == 'up' && q.block_state('minecraft:facing_direction') == 'north'",
				"components": {
					"minecraft:transformation": { "rotation": [-90, 0, 180] }
				}
			},
			// Facing up-est
			{
				"condition": "q.block_state('minecraft:block_face') == 'up' && q.block_state('minecraft:facing_direction') == 'east'",
				"components": {
					"minecraft:transformation": { "rotation": [0, 90, -90] }
				}
			},
			// Facing up-west
			{
				"condition": "q.block_state('minecraft:block_face') == 'up' && q.block_state('minecraft:facing_direction') == 'west'",
				"components": {
					"minecraft:transformation": { "rotation": [0, -90, 90] }
				}
			},
			// Facing up-south
			{
				"condition": "q.block_state('minecraft:block_face') == 'up' && q.block_state('minecraft:facing_direction') == 'south'",
				"components": {
					"minecraft:transformation": { "rotation": [90, 0, 0] }
				}
			},
			// Facing north
			{
				"condition": "q.block_state('minecraft:block_face') == 'north'",
				"components": {
					"minecraft:transformation": { "rotation": [0, 0, 0] }
				}
			},
			// Facing west
			{
				"condition": "q.block_state('minecraft:block_face') == 'west'",
				"components": {
					"minecraft:transformation": { "rotation": [90, 90, 90] }
				}
			},
			// Facing south
			{
				"condition": "q.block_state('minecraft:block_face') == 'south'",
				"components": {
					"minecraft:transformation": { "rotation": [180, 0, -180] }
				}
			},
			// Facing east
			{
				"condition": "q.block_state('minecraft:block_face') == 'east'",
				"components": {
					"minecraft:transformation": { "rotation": [90, -90, -90] }
				}
			}
		]
	}
}