Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &8[&bClutter8]&r
- command /clutter [<text>] [<player>]:
- trigger:
- if arg-1 is "on" or "enable":
- command sender is op
- if {clutter} is true:
- message "{@P} Already enabled!"
- stop trigger
- set {clutter} to true
- broadcast "{@P} Enabled by &e%command sender%!"
- command "/clutter aps"
- if arg-1 is "off" or "false":
- command sender is op
- if {clutter} is false:
- message "{@P} Already disabled!"
- stop trigger
- set {clutter} to false
- delete {clutter.block}
- broadcast "{@P} Disabled by &e%command sender%!"
- command "/clutter aps"
- if arg-1 is "toggle" or "switch":
- command sender is op
- if {clutter} is not set:
- message "{@P} Set Clutter to true or false first!"
- stop trigger
- if {clutter} is true:
- command sender command "/clutter off"
- stop trigger
- if {clutter} is false:
- command sender command "/clutter on"
- stop trigger
- if arg-1 is "aps":
- loop all players:
- execute console command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
- if arg-1 is "all":
- loop all players:
- execute console command "/clutter set %loop-player%"
- if arg-1 is "set":
- if arg-2 is set:
- set {_player} to ("%arg-2%" parsed as offlineplayer)
- loop items in {_player}'s inventory:
- add loop-item to {_new.inv.%{_player}%::*}
- remove loop-item from {_player}'s inventory
- set {_size} to size of {_new.inv.%{_player}%::*}
- loop {_size} times:
- set {_item} to a random element out of {_new.inv.%{_player}%::*}
- give {_item} to {_player}
- remove {_item} from {_new.inv.%{_player}%::*}
- if {_player}'s inventory has space for 1 gold ingot:
- give 1 gold ingot to {_player}
- else:
- drop 1 gold ingot at {_player}
- message "{@P} Your inventory was cluttered!" to {_player}
- every 3 minutes:
- {clutter} is true:
- execute console command "/clutter all"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement