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 hide the blueprint. Take a look at show blueprint for more info about blueprints.
Context:
This function needs to run as the root of the multiblock instance you want to edit.
Note
You can use the selector @e[type=minecraft:block_display,tag=<namespace>-<multiblock_id>,tag=mtb.root] to find the root
Example:
# Hide the multiblock blueprint when the player takes off their engineering goggles (a custom equippable item)# The implementing datapack uses a custom player ID system to link the multiblock with the playerscoreboardplayersoperation#searchtbs.ID=@stbs.IDexecuteunlessitemsentity@sarmor.head*[minecraft:custom_data~{"goggles":true}]as@e[type=minecraft:block_display,tag=tech_datapack-industrial_furnace,tag=mtb.root,predicate=tech_datapack:match_player_id]runfunction#mtb-generated:tech_datapack/industrial_furnace/blueprint/hide```