Advertisement
BobMe

Minecraft Manhunt

Jul 8th, 2020
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. let val = false
  2. let poss = player.position()
  3.  
  4. player.onChat(";activate", function () {
  5. loops.pause(55000)
  6. player.execute("title @a title §aGO!")
  7. val = true
  8. })
  9.  
  10.  
  11. loops.forever(function () {
  12. if (val == true) {
  13. loops.pause(1000)
  14. poss = player.position()
  15. let xx = poss.getValue(Axis.X)%10
  16. let zz = poss.getValue(Axis.Z)%10
  17. if (xx >= 0) {
  18. xx = (poss.getValue(Axis.X)-xx)
  19. } else {
  20. xx = (poss.getValue(Axis.X)-xx)-10
  21. }
  22. if (zz >= 0) {
  23. zz = (poss.getValue(Axis.Z)-zz)
  24. } else {
  25. zz = (poss.getValue(Axis.Z)-zz)-10
  26. }
  27. player.execute('title "PlayerNameHere" actionbar §7Tracked Position: §f§l('+xx+'|'+(xx+10)+', '+(zz)+'|'+(zz+10)+')')
  28. }
  29. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement