Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # load function
- scoreboard objectives add Pos dummy
- # tick function
- execute as @a run function example:macro/init
- # function example:macro/init
- execute store result storage example:data Pos.X int 1 run scoreboard players get X Pos
- execute store result storage example:data Pos.Y int 1 run scoreboard players get Y Pos
- execute store result storage example:data Pos.Z int 1 run scoreboard players get Z Pos
- function example:macro/tp with storage example:data Pos
- # function example:macro/tp
- $tp @s $(X) $(Y) $(Z)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement