Advertisement
fleft17

Untitled

Aug 20th, 2014
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. options:
  2.  
  3. P: &8[&bClutter8]&r
  4.  
  5.  
  6. command /clutter [<text>] [<player>]:
  7. trigger:
  8. if arg-1 is "on" or "enable":
  9. command sender is op
  10. if {clutter} is true:
  11. message "{@P} Already enabled!"
  12. stop trigger
  13. set {clutter} to true
  14. broadcast "{@P} Enabled by &e%command sender%!"
  15. command "/clutter aps"
  16. if arg-1 is "off" or "false":
  17. command sender is op
  18. if {clutter} is false:
  19. message "{@P} Already disabled!"
  20. stop trigger
  21. set {clutter} to false
  22. delete {clutter.block}
  23. broadcast "{@P} Disabled by &e%command sender%!"
  24. command "/clutter aps"
  25. if arg-1 is "toggle" or "switch":
  26. command sender is op
  27. if {clutter} is not set:
  28. message "{@P} Set Clutter to true or false first!"
  29. stop trigger
  30. if {clutter} is true:
  31. command sender command "/clutter off"
  32. stop trigger
  33. if {clutter} is false:
  34. command sender command "/clutter on"
  35. stop trigger
  36. if arg-1 is "aps":
  37. loop all players:
  38. execute console command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
  39. if arg-1 is "all":
  40. loop all players:
  41. execute console command "/clutter set %loop-player%"
  42.  
  43. if arg-1 is "set":
  44. if arg-2 is set:
  45. set {_player} to ("%arg-2%" parsed as offlineplayer)
  46. loop items in {_player}'s inventory:
  47. add loop-item to {_new.inv.%{_player}%::*}
  48. remove loop-item from {_player}'s inventory
  49. set {_size} to size of {_new.inv.%{_player}%::*}
  50. loop {_size} times:
  51. set {_item} to a random element out of {_new.inv.%{_player}%::*}
  52. give {_item} to {_player}
  53. remove {_item} from {_new.inv.%{_player}%::*}
  54.  
  55. if {_player}'s inventory has space for 1 gold ingot:
  56. give 1 gold ingot to {_player}
  57. else:
  58. drop 1 gold ingot at {_player}
  59. message "{@P} Your inventory was cluttered!" to {_player}
  60.  
  61.  
  62. every 3 minutes:
  63. {clutter} is true:
  64. execute console command "/clutter all"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement