//bridge-file-version: #2 { "format_version": "1.17.0", "minecraft:block": { "description": { "identifier": "hf:coffeetablethreeblock", "properties": { "bridge:block_rotation": [ 2, 3, 4, 5 ] } }, "components": { "minecraft:destroy_time": 4, "minecraft:entity_collision": { "origin": [ -8, 0, -8 ], "size": [ 16, 16, 16 ] }, "minecraft:pick_collision": { "origin": [ -8, 0, -8 ], "size": [ 16, 16, 16 ] }, "minecraft:material_instances": { "*": { "texture": "coffeetablethreeblock", "render_method": "alpha_test" } }, "minecraft:geometry": "geometry.coffeetablethreeblock", "minecraft:block_light_absorption": 0, "minecraft:creative_category": { "group": "itemGroup.name.Items", "category": "Items" }, "minecraft:on_player_placing": { "event": "bridge:update_rotation" } }, "events": { "d0": { "run_command": { "command": [ "structure load nullblock ~1 ~ ~", "structure load nullblock ~-1 ~ ~" ] } }, "d1": { "run_command": { "command": [ "structure load nullblock ~-1 ~ ~", "structure load nullblock ~1 ~ ~" ] } }, "d2": { "run_command": { "command": [ "structure load nullblock ~ ~ ~-1", "structure load nullblock ~ ~ ~1" ] } }, "d3": { "run_command": { "command": [ "structure load nullblock ~ ~ ~1", "structure load nullblock ~ ~ ~-1" ] } }, "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, 180, 0 ], "minecraft:ticking": { "on_tick": { "event": "d0" }, "range": [ 0, 0 ], "looping": false } } }, { "condition": "query.block_property('bridge:block_rotation') == 3", "components": { "minecraft:rotation": [ 0, 0, 0 ], "minecraft:ticking": { "on_tick": { "event": "d1" }, "range": [ 0, 0 ], "looping": false } } }, { "condition": "query.block_property('bridge:block_rotation') == 4", "components": { "minecraft:rotation": [ 0, 270, 0 ], "minecraft:ticking": { "on_tick": { "event": "d2" }, "range": [ 0, 0 ], "looping": false } } }, { "condition": "query.block_property('bridge:block_rotation') == 5", "components": { "minecraft:rotation": [ 0, 90, 0 ], "minecraft:ticking": { "on_tick": { "event": "d3" }, "range": [ 0, 0 ], "looping": false } } } ] } }