//bridge-file-version: #0
{
	"format_version": "1.17.0",
	"minecraft:block": {
		"description": {
			"identifier": "strat:stencil_table_crimson",
			"properties": {
				"bridge:block_rotation": [
					2,
					3,
					4,
					5
				]
			}
		},
		"components": {
			"minecraft:on_player_placing": {
				"event": "bridge:update_rotation"
			},
			"minecraft:destroy_time": 1,
			"minecraft:crafting_table": {
				"custom_description": "Stencil Table",
				"grid_size": 3,
				"crafting_tags": [
					"stencil_table"
				]
			},
			"minecraft:geometry": "geometry.craftingstation",
			"minecraft:material_instances": {
				"*": {
					"texture": "stencil_table_crimson",
					"render_method": "alpha_test"
				}
			},
			"minecraft:block_light_absorption": 0,
			"minecraft:map_color": "#6D2B15",
			"tag:wood": {},
			"minecraft:creative_category": {
				"group": "itemGroup.name.Items",
				"category": "Items"
			}
		},
		"events": {
			"bridge:update_rotation": {
				"set_block_property": {
					"bridge:block_rotation": "query.cardinal_facing_2d"
				}
			}
		},
		"permutations": [
			{
				"condition": "query.block_property('bridge:block_rotation') == 2",
				"components": {
					"minecraft:rotation": [
						0,
						0,
						0
					]
				}
			},
			{
				"condition": "query.block_property('bridge:block_rotation') == 3",
				"components": {
					"minecraft:rotation": [
						0,
						180,
						0
					]
				}
			},
			{
				"condition": "query.block_property('bridge:block_rotation') == 4",
				"components": {
					"minecraft:rotation": [
						0,
						90,
						0
					]
				}
			},
			{
				"condition": "query.block_property('bridge:block_rotation') == 5",
				"components": {
					"minecraft:rotation": [
						0,
						270,
						0
					]
				}
			}
		]
	}
}