Skip to content

Function: summon instance

theblackswitch edited this page May 8, 2026 · 1 revision

#mtb-generated:<namespace>/<multiblock_id>/summon_instance {args:{<arguments>}}

This function is used to summon a new instance of your multiblock. It will only summon the marker. The position of the marker will vary depending on the placement mode selected.

Context:

This function needs to run at the location where you want to place your multiblock

arguments:

  • mirrored (optional): boolean | Whether the multiblock should be in a mirrored state when summoned.
  • rotation (optional): int | The initial rotation of the multiblock. Can be: 0, 90, 180, 270

Example:

# Place a multiblock when the player clicks in front of them (placement mode facing)
execute if entity @s[y_rotation=-45..45] run return run function #mtb-generated:tech_datapack/industrial_furnace/summon_instance {args:{"rotation":0}}
execute if entity @s[y_rotation=45..135] run return run function #mtb-generated:tech_datapack/industrial_furnace/summon_instance {args:{"rotation":90}}
execute if entity @s[y_rotation=135..225] run return run function #mtb-generated:tech_datapack/industrial_furnace/summon_instance {args:{"rotation":180}}
execute if entity @s[y_rotation=225..315] run return run function #mtb-generated:tech_datapack/industrial_furnace/summon_instance {args:{"rotation":270}}

Clone this wiki locally