Skip to content

Function: rotate counter clockwise

theblackswitch edited this page May 15, 2026 · 2 revisions

#mtb-generated:<namespace>/<multiblock_id>/rotate/counter_clockwise

This function is used to rotate the blueprint counter-clockwise. This will also rotate all the included blockstates accordingly.

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:

# rotate the multiblock when the player clicks with an item in the right menu

# The implementing datapack uses a player ID system to link the multiblocks with the player
scoreboard players operation #search tbs.ID = @s tbs.ID

execute if score @s schematic.menu matches 3 if score @s schematic.click matches 1.. as @e[type=minecraft:block_display,tag=tech_datapack-industrial_furnace,tag=mtb.root,tag=td.currently_placing,predicate=tech_datapack:match_player_id] run function #mtb-generated:tech_datapack/industrial_furnace/rotate/counter_clockwise

Clone this wiki locally