Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- chanceChest: 50
- nameChest: &7&m------&r &6Skrzynka &7&m------
- chanceKey: 50
- nameKey: &7&m------&r &6Klucz &7&m------
- on mine of stone:
- chance of {@chanceChest}%:
- give 1 chest named "{@nameChest}" to the player
- chance of {@chanceKey}%:
- give 1 clock named "{@nameKey}" to the player
- on place:
- if name of player's tool is "{@nameChest}":
- cancel event
- send "&6Uzyj klucza."
- stop
- on script load:
- delete {chest.nagrody::*}
- add diamond to {chest.nagrody::*}
- add dirt to {chest.nagrody::*}
- #add nazwa_przedmiotu to {chest.nagrody::*}
- on rightclick:
- if name of player's tool is "{@nameKey}":
- if player has chest named "{@nameChest}":
- remove 1 chest named "{@nameChest}" from player
- remove 1 clock named "{@nameKey}" from player
- set {_n} to size of {chest.nagrody::*}
- loop {chest.nagrody::*}:
- chance of 100 / {_n}%:
- give loop-value to the player
- exit loop
- chance of 100 / {_n}%:
- give loop-value to the player
- exit loop
- chance of 100 / {_n}%:
- give loop-value to the player
- exit loop
- chance of 100 / {_n}%:
- give loop-value to the player
- exit loop
Advertisement
Add Comment
Please, Sign In to add comment