//bridge-file-version: #33
{
	"minecraft:block": {
		"description": {
			"properties": {
				"bridge:block_rotation": [
					2,
					3,
					4,
					5
				],
				"hf:active": [
					0,
					1,
					2,
					3,
					4,
					5,
					6,
					7,
					8
				]
			},
			"identifier": "hf:gamingpc"
		},
		"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:material_instances": {
						"*": {
							"texture": "gamingpc_blue",
							"render_method": "alpha_test"
						}
					},
					"minecraft:on_interact": {
						"event": "variant2"
					},
					"minecraft:block_light_emission": 0.65
				}
			},
			{
				"condition": "query.block_property('hf:active') == 2",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"texture": "gamingpc_red",
							"render_method": "alpha_test"
						}
					},
					"minecraft:on_interact": {
						"event": "variant3"
					},
					"minecraft:block_light_emission": 0.65
				}
			},
			{
				"condition": "query.block_property('hf:active') == 3",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"texture": "gamingpc_green",
							"render_method": "alpha_test"
						}
					},
					"minecraft:on_interact": {
						"event": "variant4"
					},
					"minecraft:block_light_emission": 0.65
				}
			},
			{
				"condition": "query.block_property('hf:active') == 4",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"texture": "gamingpc_yellow",
							"render_method": "alpha_test"
						}
					},
					"minecraft:on_interact": {
						"event": "variant5"
					},
					"minecraft:block_light_emission": 0.65
				}
			},
			{
				"condition": "query.block_property('hf:active') == 5",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"texture": "gamingpc_white",
							"render_method": "alpha_test"
						}
					},
					"minecraft:on_interact": {
						"event": "variant6"
					},
					"minecraft:block_light_emission": 0.65
				}
			},
			{
				"condition": "query.block_property('hf:active') == 6",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"texture": "gamingpc_pink",
							"render_method": "alpha_test"
						}
					},
					"minecraft:on_interact": {
						"event": "variant7"
					},
					"minecraft:block_light_emission": 0.65
				}
			},
			{
				"condition": "query.block_property('hf:active') == 7",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"texture": "gamingpc_purple",
							"render_method": "alpha_test"
						}
					},
					"minecraft:on_interact": {
						"event": "variant8"
					},
					"minecraft:block_light_emission": 0.65
				}
			},
			{
				"condition": "query.block_property('hf:active') == 8",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"texture": "gamingpc_off",
							"render_method": "alpha_test"
						}
					}
				}
			}
		],
		"components": {
			"minecraft:on_player_placing": {
				"event": "bridge:update_rotation"
			},
			"minecraft:destroy_time": 4,
			"minecraft:entity_collision": {
				"origin": [
					-4,
					0,
					-7
				],
				"size": [
					8,
					13,
					14
				]
			},
			"minecraft:pick_collision": {
				"origin": [
					-4,
					0,
					-7
				],
				"size": [
					8,
					13,
					14
				]
			},
			"minecraft:material_instances": {
				"*": {
					"texture": "gamingpc_off",
					"render_method": "alpha_test"
				}
			},
			"minecraft:geometry": "geometry.gamingpc",
			"minecraft:block_light_absorption": 0,
			"minecraft:on_interact": {
				"event": "variant"
			},
			"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
				}
			},
			"variant2": {
				"set_block_property": {
					"hf:active": 2
				}
			},
			"variant3": {
				"set_block_property": {
					"hf:active": 3
				}
			},
			"variant4": {
				"set_block_property": {
					"hf:active": 4
				}
			},
			"variant5": {
				"set_block_property": {
					"hf:active": 5
				}
			},
			"variant6": {
				"set_block_property": {
					"hf:active": 6
				}
			},
			"variant7": {
				"set_block_property": {
					"hf:active": 7
				}
			},
			"variant8": {
				"set_block_property": {
					"hf:active": 8
				}
			}
		}
	},
	"format_version": "1.17.0"
}