Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let val = false
- let poss = player.position()
- player.onChat(";activate", function () {
- loops.pause(55000)
- player.execute("title @a title §aGO!")
- val = true
- })
- loops.forever(function () {
- if (val == true) {
- loops.pause(1000)
- poss = player.position()
- let xx = poss.getValue(Axis.X)%10
- let zz = poss.getValue(Axis.Z)%10
- if (xx >= 0) {
- xx = (poss.getValue(Axis.X)-xx)
- } else {
- xx = (poss.getValue(Axis.X)-xx)-10
- }
- if (zz >= 0) {
- zz = (poss.getValue(Axis.Z)-zz)
- } else {
- zz = (poss.getValue(Axis.Z)-zz)-10
- }
- player.execute('title "PlayerNameHere" actionbar §7Tracked Position: §f§l('+xx+'|'+(xx+10)+', '+(zz)+'|'+(zz+10)+')')
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement