Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #PERMISSÕES: minerar.tp
- options:
- min.x: -4500
- max.x: 4500
- min.z: -4500
- max.z: 4500
- avoid: air or water block or lava block or stone block or sandstone block or mossy cobblestone block or dirt block
- perm: minerar.tp
- permission message: Message to send if the player doesn't have the the required permissior
- cooldown: 5 minutes
- on command "minerar":
- if player's world is not "worldminerar":
- cancel event
- send "&f[&6LS&f] &eVocê não está do mundo de minerar digite &c/warp minerar&e."
- on command "minerar":
- if player's health is below 8:
- cancel event
- send "&f[&6LS&f] &eVocê precisa estar com a vida cheia para usar este comando."
- Command /minerar:
- permission: {@perm}
- permission message: &f[&6LS&f]&eVocê não tem acesso á este comando.
- trigger:
- set {_waited} to difference between {wild.%player%.lastused} and now
- if {_waited} is less than {@cooldown}:
- message "&f[&6LS&f] &eVocê precisa aguardar %difference between {@cooldown} and {_waited}% para usar o comando novamente." to player
- stop
- send "&f[&6LS&f] &fTeleporte aleatório &6iniciando&f." to player
- wait 1 tick
- send "&f[&6LS&f] &fTeleportando em &c3 &fsegundos." to player
- wait 1 second
- send "&f[&6LS&f] &fTeleportando em &c2 &fsegundos." to player
- wait 1 second
- send "&f[&6LS&f] &fTeleportando em &c1 &fsegundo." to player
- wait 2 second
- apply resistance 100 to player for 6 seconds
- wait 1 tick
- set {_loc::old} to player's location
- while player's location is {_loc::old}:
- set {_loc::new} to location at random number between {@min.x} and {@max.x}, 0, random number between {@min.z} and {@max.z}
- loop blocks above {_loc::new}:
- if loop-block and block above loop-block are air:
- if block under loop-block is not {@avoid}:
- set {_loc::new} to location of loop-block
- teleport player to {_loc::new}
- stop loop
- wait 10 ticks
- set {wild.%player%.lastused} to now
Advertisement
Add Comment
Please, Sign In to add comment