Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on script load:
- set {nagroda::1} to 30 sand
- set {nagroda::2} to 1 diamond block
- set {nagroda::3} to 3 diamond
- set {nagroda::4} to 2 pig spawn egg
- set {nagroda::5} to 3 emerald
- set {nagroda::6} to 1 emerald block
- set {nagroda::7} to 64 cobblestone
- set {block::1} to sponge
- on break of cobblestone:
- if player's gamemode is survival:
- chance of 3%:
- give sponge named "&6&lLucky Block" to player
- on place of sponge:
- if name of player's tool is "&6&lLucky Block":
- set {_b} to random integer from 1 to size of {block::*}
- wait 1 tick
- set event-block to {block::%{_b}%}
- set {block.%location of event-block%} to true
- stop
- on break:
- if {block.%location of event-block%} is true:
- if player's gamemode is survival:
- clear {block.%location of event-block%}
- set {_n} to random integer from -1 to size of {nagroda::*}
- cancel event
- set event-block to air
- if {_n} is -1:
- send "&7Uwazaj, szkielety."
- spawn 5 wither skeleton
- stop
- if {_n} is 0:
- send "&6Puff"
- create a fake explosion at player
- stop
- give {nagroda::%{_n}%} to player
- send "&7Dostales: &6%{nagroda::%{_n}%}%"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement