//bridge-file-version: #8
{
	"minecraft:block": {
		"description": {
			"properties": {
				"bridge:block_rotation": [
					2,
					3,
					4,
					5
				],
				"hf:on": [
					0,
					1,
					2,
					3,
					4
				]
			},
			"identifier": "hf:laptopgray"
		},
		"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:on') == 1",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"texture": "laptop_gray_0",
							"render_method": "alpha_test"
						}
					},
					"minecraft:on_interact": {
						"event": "wallpaper1"
					},
					"minecraft:block_light_emission": 0.65
				}
			},
			{
				"condition": "query.block_property('hf:on') == 2",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"texture": "laptop_gray_1",
							"render_method": "alpha_test"
						}
					},
					"minecraft:on_interact": {
						"event": "wallpaper2"
					},
					"minecraft:block_light_emission": 0.65
				}
			},
			{
				"condition": "query.block_property('hf:on') == 3",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"texture": "laptop_gray_2",
							"render_method": "alpha_test"
						}
					},
					"minecraft:on_interact": {
						"event": "off"
					},
					"minecraft:block_light_emission": 0.65
				}
			},
			{
				"condition": "query.block_property('hf:on') == 4",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"texture": "laptop_gray_off",
							"render_method": "alpha_test"
						}
					},
					"minecraft:block_light_emission": 0.65
				}
			}
		],
		"components": {
			"minecraft:on_player_placing": {
				"event": "bridge:update_rotation"
			},
			"minecraft:block_light_emission": 0.65,
			"minecraft:destroy_time": 4,
			"minecraft:entity_collision": {
				"origin": [
					-6,
					0,
					-7
				],
				"size": [
					12,
					8.2,
					11.4
				]
			},
			"minecraft:pick_collision": {
				"origin": [
					-6,
					0,
					-7
				],
				"size": [
					12,
					8.2,
					11.4
				]
			},
			"minecraft:material_instances": {
				"*": {
					"texture": "laptop_gray_off",
					"render_method": "alpha_test"
				}
			},
			"minecraft:geometry": "geometry.laptop",
			"minecraft:creative_category": {
				"group": "itemGroup.name.Items",
				"category": "Items"
			},
			"minecraft:on_interact": {
				"event": "wallpaper0"
			},
			"minecraft:block_light_absorption": 0
		},
		"events": {
			"bridge:update_rotation": {
				"set_block_property": {
					"bridge:block_rotation": "query.cardinal_facing_2d"
				}
			},
			"wallpaper0": {
				"set_block_property": {
					"hf:on": 1
				}
			},
			"wallpaper1": {
				"set_block_property": {
					"hf:on": 2
				}
			},
			"wallpaper2": {
				"set_block_property": {
					"hf:on": 3
				}
			},
			"off": {
				"set_block_property": {
					"hf:on": 4
				}
			}
		}
	},
	"format_version": "1.17.0"
}