//bridge-file-version: #10 { "minecraft:block": { "description": { "properties": { "bridge:block_rotation": [ 2, 3, 4, 5 ], "hf:active": [ 0, 1, 2, 3, 4, 5, 6, 7 ] }, "identifier": "hf:floormat" }, "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": "floormatbrown" } }, "minecraft:on_interact": { "event": "variant2", "condition": "query.get_equipped_item_name=='magicpen'" } } }, { "condition": "query.block_property('hf:active') == 2", "components": { "minecraft:material_instances": { "*": { "texture": "floormatcyan" } }, "minecraft:on_interact": { "event": "variant3", "condition": "query.get_equipped_item_name=='magicpen'" } } }, { "condition": "query.block_property('hf:active') == 3", "components": { "minecraft:material_instances": { "*": { "texture": "floormatgreen" } }, "minecraft:on_interact": { "event": "variant4", "condition": "query.get_equipped_item_name=='magicpen'" } } }, { "condition": "query.block_property('hf:active') == 4", "components": { "minecraft:material_instances": { "*": { "texture": "floormatred" } }, "minecraft:on_interact": { "event": "variant5", "condition": "query.get_equipped_item_name=='magicpen'" } } }, { "condition": "query.block_property('hf:active') == 5", "components": { "minecraft:material_instances": { "*": { "texture": "floormatwhite" } }, "minecraft:on_interact": { "event": "variant6", "condition": "query.get_equipped_item_name=='magicpen'" } } }, { "condition": "query.block_property('hf:active') == 6", "components": { "minecraft:material_instances": { "*": { "texture": "floormatblue" } } } } ], "components": { "minecraft:on_player_placing": { "event": "bridge:update_rotation" }, "minecraft:destroy_time": 4, "minecraft:entity_collision": { "origin": [ -8, 0, -5 ], "size": [ 16, 0.1, 10 ] }, "minecraft:pick_collision": { "origin": [ -8, 0, -5 ], "size": [ 16, 0.1, 10 ] }, "minecraft:material_instances": { "*": { "texture": "floormatblue", "render_method": "alpha_test" } }, "minecraft:geometry": "geometry.floormat", "minecraft:block_light_absorption": 0, "minecraft:on_interact": { "event": "variant", "condition": "query.get_equipped_item_name=='magicpen'" }, "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 }, "run_command": { "command": [ "playsound dig.soul_sand @p ~~~ 1 1", "particle minecraft:totem_particle ~~~" ] } }, "variant2": { "set_block_property": { "hf:active": 2 }, "run_command": { "command": [ "playsound dig.soul_sand @p ~~~ 1 1", "particle minecraft:totem_particle ~~~" ] } }, "variant3": { "set_block_property": { "hf:active": 3 }, "run_command": { "command": [ "playsound dig.soul_sand @p ~~~ 1 1", "particle minecraft:totem_particle ~~~" ] } }, "variant4": { "set_block_property": { "hf:active": 4 }, "run_command": { "command": [ "playsound dig.soul_sand @p ~~~ 1 1", "particle minecraft:totem_particle ~~~" ] } }, "variant5": { "set_block_property": { "hf:active": 5 }, "run_command": { "command": [ "playsound dig.soul_sand @p ~~~ 1 1", "particle minecraft:totem_particle ~~~" ] } }, "variant6": { "set_block_property": { "hf:active": 6 }, "run_command": { "command": [ "playsound dig.soul_sand @p ~~~ 1 1", "particle minecraft:totem_particle ~~~" ] } }, "variant7": { "set_block_property": { "hf:active": 7 }, "run_command": { "command": [ "playsound dig.soul_sand @p ~~~ 1 1", "particle minecraft:totem_particle ~~~" ] } } } }, "format_version": "1.17.0" }