Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #Minimum amount of blocks farm from X cord to tp to
- min.x: -2000
- #maximum amount of blocks farm from X cord to tp to
- max.x: 2000
- #Minimum amount of blocks farm from Z cord to tp to
- min.z: -2000
- #maximum amount of blocks farm from Z cord to tp to
- max.z: 2000
- #Amount of time before the player will be allowed to use the command again
- cooldown: 5 minutes
- #Avoid spawning in lava, water and air
- avoid: air or water block or lava block
- #To add worlds it would look like
- # worlds: "world" or "world_nether" or "world_the_end"
- worlds: "world3"
- #Permission
- permission: randomtp.use
- #No permission message
- PermMsg: &4You do not have permission to use this command!
- #Can not execute command in this world message
- NoWorldMsg: &4You canβt use this command in this world!
- #Cooldown message
- SpamMsg: &cPlease do not spam this command! You must wait 5 minutes!
- Command /randomtp:
- description: Teleports player to random location not in water
- permission: {@permission}
- permission message: {@PermMsg}
- aliases: /rtp, /wild, /random
- trigger:
- if world is not {@worlds}:
- message "{@NoWorldMsg}"
- else:
- if difference between {cooldowns::randomtp::%player%} and now < {@cooldown}:
- send "{@SpamMsg}"
- else:
- 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}
- if light level at player <= 2:
- set block at player to ground torch
- set {cooldowns::randomtp::%player%} to now
- stop loop
- wait 10 ticks
- command /testlogins:
- trigger:
- send "&b%{logins}% &8- &7Unique Logins"
- send "&c%{online}% &8- &7Total Logins"
- stop
- #Filler#
- on quit:
- broadcast "&7[&c-&7] &7%player%"
- on join:
- add 1 to {online}
- broadcast "&7[&a+&7] &7%player% "
- on first join:
- wait 50 ticks
- add 1 to {logins}
- execute console command "/spawn %player%"
- execute console command "/kit starter %player%"
- broadcast "&b%player% &7joined for the first time! &7(&b%{logins}%&7 Unique Logins)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement