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 currently showing it's blueprint.
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:
visible: 1 when blueprint is visible, else fail
Example:
# Play a sound when the player toggles the blueprint of this multiblock (run as the multiblock root)executestoresuccessscore#blueprinttemprunfunction#mtb-generated:tech_datapack/industrial_furnace/blueprint/is_visibleexecuteifentity@s[tag=td.blueprint]ifscore#blueprinttempmatches0runplaysoundminecraft:block.crafter.failmaster@a~~~10.5executeifentity@s[tag=!td.blueprint]ifscore#blueprinttempmatches1runplaysoundminecraft:block.crafter.failmaster@a~~~10.7executeif#blueprinttempmatches1runtag@saddtd.blueprintexecuteif#blueprinttempmatches0runtag@sremovetd.blueprint