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 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 playerscoreboardplayersoperation#searchtbs.ID=@stbs.IDexecuteifscore@sschematic.menumatches3ifscore@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/rotate/counter_clockwise