Advertisement
GalSergey

tp from score | macros

Aug 7th, 2023
1,595
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.51 KB | None | 0 0
  1. # load function
  2. scoreboard objectives add Pos dummy
  3.  
  4. # tick function
  5. execute as @a run function example:macro/init
  6.  
  7. # function example:macro/init
  8. execute store result storage example:data Pos.X int 1 run scoreboard players get X Pos
  9. execute store result storage example:data Pos.Y int 1 run scoreboard players get Y Pos
  10. execute store result storage example:data Pos.Z int 1 run scoreboard players get Z Pos
  11. function example:macro/tp with storage example:data Pos
  12.  
  13. # function example:macro/tp
  14. $tp @s $(X) $(Y) $(Z)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement