Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /testrandom:
- permission: op
- trigger:
- if {randomdrops::*} does not contain player's tool:
- send "&a{randomdrops::*} does not contain that item!"
- wait 2 ticks
- send "&aMake sure to not add full stacks of items to it!"
- add 1 of player's tool to {randomdrops::*}
- else:
- send "&a{randomdrops::*} Already contains that item!"
- command /randomremove:
- permission: op
- trigger:
- remove player's tool from {randomdrops::*}
- send "&aYou have successfuly removed %player's tool% from {randomdrops::*}!"
- command /randomlist:
- permission: op
- # you can insert whatever perm you like there
- trigger:
- send "&cThis is the list of items you can get!"
- send "%{randomdrops::*}%"
- command /randomtoggle:
- trigger:
- if {droptoggle::%player's uuid%} is true:
- set {droptoggle::%player's uuid%} to false
- send "&cYou have set random drops to false" to player
- else:
- set {droptoggle::%player's uuid%} to true
- send "&aYou have set Random drops to true!"
- on inventory click:
- if {randomdrops::*} does not contain event-item:
- add 1 of event-item to {randomdrops::*}
- else:
- stop
- command /randomadd:
- permission: op
- permission message: &fUnknown command. Type "/help" for help.
- trigger:
- add 1 of player's tool to {randomdrops::*}
- send "&aYou have added %player's tool% to the random drops!"
- every 10 seconds:
- loop all players:
- make loop-player execute "/random reload"
- command /random <text>:
- trigger:
- if arg-1 is set:
- if arg-1 is "reload":
- if {droptoggle::%player's uuid%} is true:
- set {drop::%player's uuid%} to random element out of {randomdrops::*}
- give player {drop::%player's uuid%}
- else:
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement