//bridge-file-version: #5
{
	"format_version": "1.17.0",
	"minecraft:block": {
		"description": {
			"identifier": "hf:null",
			"properties": {
				"hf:rotate": [
					0,
					1,
					2
				]
			}
		},
		"components": {
			"minecraft:destroy_time": 0.5,
			"minecraft:entity_collision": {
				"origin": [
					-8,
					0,
					-8
				],
				"size": [
					16,
					16,
					16
				]
			},
			"minecraft:pick_collision": {
				"origin": [
					-8,
					0,
					-8
				],
				"size": [
					16,
					16,
					16
				]
			},
			"minecraft:geometry": "geometry.null",
			"minecraft:material_instances": {},
			"minecraft:block_light_absorption": 0,
			"minecraft:on_player_placing": {
				"event": "rotate"
			}
		},
		"events": {
			"rotate": {
				"set_block_property": {
					"hf:rotate": "math.floor(query.block_face/2)"
				}
			}
		},
		"permutations": [
			{
				"condition": "query.block_property('hf:rotate') == 0",
				"components": {
					"minecraft:rotation": [
						0,
						0,
						0
					]
				}
			},
			{
				"condition": "query.block_property('hf:rotate') == 1",
				"components": {
					"minecraft:rotation": [
						90,
						0,
						0
					]
				}
			},
			{
				"condition": "query.block_property('hf:rotate') == 2",
				"components": {
					"minecraft:rotation": [
						0,
						0,
						90
					]
				}
			}
		]
	}
}