Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- procent: 10
- item1: diamond
- item2: dirt
- item3: wood
- item4: diamond sword
- item5: enchanted golden apple
- item6: 5 diamond
- item7: 8 diamond
- item8: 11 diamond
- item9: diamond of infinity 10
- item10: 30 egg
- item11: 1 gold block
- item12: diamond axe of efficiency 4 and sharpness 5 named "&7Tomahawk"
- item13: diamond pickaxe of efficiency 5 and unbreaking 5 and fortune 5 named "&6Kifol Zwycienscy"
- item14: apple of sharpness 5 named "Jabółko"
- item15: 7 golden sword
- on script load:
- clear {chest::*}
- add {@item1} to {chest::*}
- add {@item2} to {chest::*}
- add {@item3} to {chest::*}
- add {@item4} to {chest::*}
- add {@item5} to {chest::*}
- add {@item6} to {chest::*}
- add {@item7} to {chest::*}
- add {@item8} to {chest::*}
- add {@item9} to {chest::*}
- add {@item10} to {chest::*}
- add {@item11} to {chest::*}
- add {@item12} to {chest::*}
- add {@item13} to {chest::*}
- add {@item14} to {chest::*}
- add {@item15} to {chest::*}
- stop
- on rightclick on a chest:
- if {chest.%location of event-block%} is true:
- spawn 150 of particle enchantment table:1 at the targeted block to the player
- set {chest.%location of event-block%} to false
- set {_x} to event-block
- set {_item} to a random item out of {chest::*}
- add {_item} to {_x}
- send "%{_item}%"
- wait 5 second
- remove {_item} from {_x}
- spawn 50 of particle witch Magic:1 offset by 0.5, 1, 0.5 at the targeted block to the player
- set clicked block to air
- stop
- on mine:
- if {chest.%location of event-block%} is true:
- cancel event
- else:
- if chance of {@procent}%:
- set {chest.%location of event-block%} to true
- spawn 80 of particle happy villager:1 offset by 0.5, 1, 0.5 at the targeted block to the player
- set event-block to chest
Advertisement
Add Comment
Please, Sign In to add comment