Advertisement
Guest User

works

a guest
Apr 1st, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. command /testrandom:
  2. permission: op
  3. trigger:
  4. if {randomdrops::*} does not contain player's tool:
  5. send "&a{randomdrops::*} does not contain that item!"
  6. wait 2 ticks
  7. send "&aMake sure to not add full stacks of items to it!"
  8. add 1 of player's tool to {randomdrops::*}
  9. else:
  10. send "&a{randomdrops::*} Already contains that item!"
  11.  
  12. command /randomremove:
  13. permission: op
  14. trigger:
  15. remove player's tool from {randomdrops::*}
  16. send "&aYou have successfuly removed %player's tool% from {randomdrops::*}!"
  17. command /randomlist:
  18. permission: op
  19. # you can insert whatever perm you like there
  20. trigger:
  21. send "&cThis is the list of items you can get!"
  22. send "%{randomdrops::*}%"
  23. command /randomtoggle:
  24. trigger:
  25. if {droptoggle::%player's uuid%} is true:
  26. set {droptoggle::%player's uuid%} to false
  27. send "&cYou have set random drops to false" to player
  28. else:
  29. set {droptoggle::%player's uuid%} to true
  30. send "&aYou have set Random drops to true!"
  31. command /randomadd:
  32. permission: op
  33. permission message: &fUnknown command. Type "/help" for help.
  34. trigger:
  35. add 1 of player's tool to {randomdrops::*}
  36. send "&aYou have added %player's tool% to the random drops!"
  37. every 10 seconds:
  38. loop all players:
  39. make loop-player execute "/random reload"
  40. command /random <text>:
  41. trigger:
  42. if arg-1 is set:
  43. if arg-1 is "reload":
  44. if {droptoggle::%player's uuid%} is true:
  45. set {drop::%player's uuid%} to random element out of {randomdrops::*}
  46. give player {drop::%player's uuid%}
  47. else:
  48. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement