Skip to content

Function: remove instance

theblackswitch edited this page May 15, 2026 · 3 revisions

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

This function is used to remove the entire multiblock. This includes all displays that show the blueprint or block displays that make up the border

Context:

This function needs to run as the root marker of the multiblock instance that you want to remove.

Note

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

Example:

# Remove the multiblock when complete (runs during the on complete event)

function #mtb-generated:tech_datapack/industrial_furnace/remove_instance

Clone this wiki locally