Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #MYSTERY BOX#
- #MADE BY SKRIPTINFLUFFY#
- #v:0.1#
- on rightclick on sign:
- if line 1 is "Mystery Box" or "MB":
- if line 2 is "%{mb.price}%":
- set {_mb} to clicked block
- if block under {_mb} is a chest:
- if {balance.%player%} is more than or equal to 950:
- set {_clicked} to {_mb}
- remove 950 from {balance.%player%}
- message "Starting Mystery Box!"
- set {_ritem} to a random element out of {mb.items::*}
- wait 1 second
- if size of {mb.items::*} is 0:
- message "No Items Set!"
- else:
- give 1 of {_ritem} to player
- message "You got %{_ritem}%!"
- command /mb [<text>] [<item>] [<number>]:
- trigger:
- if arg 1 is "add":
- if player has permission "mb.additem":
- message "Added %arg 2% to Mystery Box!"
- add arg 2 to {mb.items::*}
- if arg 1 is "remove":
- if player has permission "mb.removeitem":
- message "Removed %arg 2% from Mystery Box!"
- remove arg 2 from {mb.items::*}
- if arg 1 is "list":
- if arg 2 is not set:
- message "LIST:"
- message "%{mb.items::*}%"
- if arg 1 is "setp":
- set {mb.price} to arg 3
- message "Price set to: %arg 3%"
- if arg 1 is "help":
- message "/mb setp (price) - To set Mystery Box price!"
- message "/mb list - For list of all items, you added to Mystery Box!"
- message "/mb remove (item) - To remove item from Mystery Box!"
- message "/mb add (item) - To add item to Mystery Box!"
- message "/mb help - For help!"
- #IF YOU DONT HAVE MONEY SKRIPT/PLUGIN - IF YOU HAVE, JUST DELETE CODE BELOW
Advertisement
Add Comment
Please, Sign In to add comment