Skip to content

Function: is mirrored

theblackswitch edited this page May 15, 2026 · 2 revisions

#mtb-generated:<namespace>/<multiblock_id>/is_mirrored

This function is used to check whether the multiblock is mirrored.

Context:

This function needs to run as the root of the multiblock instance you want inspect.

Note

You can use the selector @e[type=minecraft:block_display,tag=<namespace>-<multiblock_id>,tag=mtb.root] to find the root

Return:

is mirrored: 1 when mirrored, else fail

Example:

# Reset the mirrored state of the structure (run as the multiblock instance root)

execute store success score #mirrored temp run function #mtb-generated:tech_datapack/industrial_furnace/is_mirrored

execute if score #mirrored temp matches 0 run return 0
execute if score #mirrored temp matches 1 run function #mtb-generated:tech_datapack/industrial_furnace/mirror

Clone this wiki locally