//bridge-file-version: #8
{
	"format_version": "1.17.0",
	"minecraft:block": {
		"description": {
			"identifier": "hf:utensils",
			"properties": {
				"bridge:block_rotation": [
					2,
					3,
					4,
					5
				],
				"hf:active": [
					0,
					1,
					2,
					3
				]
			}
		},
		"permutations": [
			{
				"condition": "query.block_property('bridge:block_rotation') == 2",
				"components": {
					"minecraft:rotation": [
						0,
						180,
						0
					]
				}
			},
			{
				"condition": "query.block_property('bridge:block_rotation') == 3",
				"components": {
					"minecraft:rotation": [
						0,
						0,
						0
					]
				}
			},
			{
				"condition": "query.block_property('bridge:block_rotation') == 4",
				"components": {
					"minecraft:rotation": [
						0,
						270,
						0
					]
				}
			},
			{
				"condition": "query.block_property('bridge:block_rotation') == 5",
				"components": {
					"minecraft:rotation": [
						0,
						90,
						0
					]
				}
			},
			{
				"condition": "query.block_property('hf:active') == 1",
				"components": {
					"minecraft:geometry": "geometry.utensilsforkspoon",
					"minecraft:on_interact": {
						"condition": "query.get_equipped_item_name=='utensils'",
						"event": "variant2"
					},
					"minecraft:entity_collision": {
						"origin": [
							-6,
							0,
							-6
						],
						"size": [
							12,
							0.5,
							10
						]
					},
					"minecraft:pick_collision": {
						"origin": [
							-6,
							0,
							-6
						],
						"size": [
							12,
							0.5,
							10
						]
					}
				}
			},
			{
				"condition": "query.block_property('hf:active') == 2",
				"components": {
					"minecraft:geometry": "geometry.utensilsforkspoonknife",
					"minecraft:entity_collision": {
						"origin": [
							-6,
							0,
							-6
						],
						"size": [
							12,
							0.5,
							10
						]
					},
					"minecraft:pick_collision": {
						"origin": [
							-6,
							0,
							-6
						],
						"size": [
							12,
							0.5,
							10
						]
					}
				}
			}
		],
		"components": {
			"minecraft:on_player_placing": {
				"event": "bridge:update_rotation"
			},
			"minecraft:destroy_time": 4,
			"minecraft:material_instances": {
				"*": {
					"texture": "utensils",
					"render_method": "alpha_test"
				}
			},
			"minecraft:geometry": "geometry.utensilsfork",
			"minecraft:block_light_absorption": 0,
			"minecraft:on_interact": {
				"event": "variant",
				"condition": "query.get_equipped_item_name=='utensils'"
			},
			"minecraft:entity_collision": {
				"origin": [
					-6,
					0,
					-6
				],
				"size": [
					12,
					0.5,
					10
				]
			},
			"minecraft:pick_collision": {
				"origin": [
					-6,
					0,
					-6
				],
				"size": [
					12,
					0.5,
					10
				]
			},
			"minecraft:creative_category": {
				"group": "itemGroup.name.Items",
				"category": "Items"
			}
		},
		"events": {
			"bridge:update_rotation": {
				"set_block_property": {
					"bridge:block_rotation": "query.cardinal_facing_2d"
				}
			},
			"variant": {
				"set_block_property": {
					"hf:active": 1
				},
				"decrement_stack": {}
			},
			"variant2": {
				"set_block_property": {
					"hf:active": 2
				},
				"decrement_stack": {}
			}
		}
	}
}