Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # load function
- scoreboard objectives add Pos dummy
- data merge storage example:data {score:{Pos:[0d,0d,0d]}}
- # tick function
- execute as @a run function example:old/init
- # function example:old/init
- tag @s add this
- execute store result storage example:data score.Pos[0] double 1 run scoreboard players get X Pos
- execute store result storage example:data score.Pos[1] double 1 run scoreboard players get Y Pos
- execute store result storage example:data score.Pos[2] double 1 run scoreboard players get Z Pos
- execute summon area_effect_cloud run function example:old/tp
- tag @s remove this
- # function example:old/tp
- data modify entity @s Pos set from storage example:data score.Pos
- execute at @s as @a[tag=this] run tp @s ~ ~ ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement