Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Permission: skrzynka.skript
- Chance: 0.1
- Item1: diamond
- ItemC1: 50
- Item2: gold ingot
- ItemC2: 50
- Item3: tnt
- ItemC3: 50
- Item4: iron ingot
- ItemC4: 50
- on mine of stone:
- chance of {@Chance}%:
- if player has permission "{@Permission}":
- send "&aDostales &cSkrzynke Niespodzianke!"
- drop 1 chest named "&9&lSkrzynka Niespodzianka" at location of event-block
- on place of chest:
- if player's tool's name is "&9&lSkrzynka Niespodzianka":
- set the block to air
- launch creeper firework colored green at location of event-block timed 1
- launch ball large firework colored red at location of event-block timed 1
- launch star firework colored yellow at location of event-block timed 1
- loop 1000 times:
- chance of {@ItemC1}%:
- add {@Item1} to {_a::*}
- chance of {@ItemC2}%:
- add {@Item2} to {_a::*}
- chance of {@ItemC3}%:
- add {@Item3} to {_a::*}
- chance of {@ItemC4}%:
- add {@Item4} to {_a::*}
- if size of {_a::*} is not 0:
- loop {_a::*}:
- set {_} to a random integer between 1 and 3
- drop {_} of loop-value at location of event-block
- send "&cWylosowales &6&l%{_}% %loop-value%"
- stop
Advertisement
Add Comment
Please, Sign In to add comment