You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)executestoresuccessscore#mirroredtemprunfunction#mtb-generated:tech_datapack/industrial_furnace/is_mirroredexecuteifscore#mirroredtempmatches0runreturn0executeifscore#mirroredtempmatches1runfunction#mtb-generated:tech_datapack/industrial_furnace/mirror