Skip to content

Function: hide blueprint

theblackswitch edited this page May 15, 2026 · 6 revisions

#mtb-generated:<namespace>/<multiblock_id>/blueprint/hide

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 player
scoreboard players operation #search tbs.ID = @s tbs.ID


execute unless items entity @s armor.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] run function #mtb-generated:tech_datapack/industrial_furnace/blueprint/hide```

Clone this wiki locally