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 move the whole multiblock to the current position.
Context:
This function needs to run as the root of the multiblock instance that you want to edit.
It also needs to run at the new position for the multiblock.
Note
You can use the selector @e[type=minecraft:block_display,tag=<namespace>-<multiblock_id>,tag=mtb.root] to find the root
Example:
# Reposition the multiblock when the player clicks with a new schematic item, in the right menu# The implementing datapack uses a player ID system to link the multiblocks with the playerscoreboardplayersoperation#searchtbs.ID=@stbs.IDexecuteifscore@sschematic.menumatches2ifscore@sschematic.clickmatches1..as@e[type=minecraft:block_display,tag=tech_datapack-industrial_furnace,tag=mtb.root,tag=td.currently_placing,predicate=tech_datapack:match_player_id]runfunction#mtb-generated:tech_datapack/industrial_furnace/move/set_pos