Jhonattam_

Untitled

Jul 13th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. #PERMISSÕES: minerar.tp
  2.  
  3. options:
  4. min.x: -4500
  5. max.x: 4500
  6. min.z: -4500
  7. max.z: 4500
  8. avoid: air or water block or lava block or stone block or sandstone block or mossy cobblestone block or dirt block
  9. perm: minerar.tp
  10. permission message: Message to send if the player doesn't have the the required permissior
  11. cooldown: 5 minutes
  12.  
  13. on command "minerar":
  14. if player's world is not "worldminerar":
  15. cancel event
  16. send "&f[&6LS&f] &eVocê não está do mundo de minerar digite &c/warp minerar&e."
  17.  
  18. on command "minerar":
  19. if player's health is below 8:
  20. cancel event
  21. send "&f[&6LS&f] &eVocê precisa estar com a vida cheia para usar este comando."
  22.  
  23.  
  24. Command /minerar:
  25. permission: {@perm}
  26. permission message: &f[&6LS&f]&eVocê não tem acesso á este comando.
  27. trigger:
  28. set {_waited} to difference between {wild.%player%.lastused} and now
  29. if {_waited} is less than {@cooldown}:
  30. message "&f[&6LS&f] &eVocê precisa aguardar %difference between {@cooldown} and {_waited}% para usar o comando novamente." to player
  31. stop
  32.  
  33. send "&f[&6LS&f] &fTeleporte aleatório &6iniciando&f." to player
  34. wait 1 tick
  35. send "&f[&6LS&f] &fTeleportando em &c3 &fsegundos." to player
  36. wait 1 second
  37. send "&f[&6LS&f] &fTeleportando em &c2 &fsegundos." to player
  38. wait 1 second
  39. send "&f[&6LS&f] &fTeleportando em &c1 &fsegundo." to player
  40. wait 2 second
  41. apply resistance 100 to player for 6 seconds
  42. wait 1 tick
  43. set {_loc::old} to player's location
  44. while player's location is {_loc::old}:
  45. set {_loc::new} to location at random number between {@min.x} and {@max.x}, 0, random number between {@min.z} and {@max.z}
  46. loop blocks above {_loc::new}:
  47. if loop-block and block above loop-block are air:
  48. if block under loop-block is not {@avoid}:
  49. set {_loc::new} to location of loop-block
  50. teleport player to {_loc::new}
  51. stop loop
  52. wait 10 ticks
  53. set {wild.%player%.lastused} to now
Advertisement
Add Comment
Please, Sign In to add comment