knugi

SkriptA

Jan 30th, 2015
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. options:
  2. Permission: skrzynka.skript
  3. Chance: 0.1
  4. Item1: diamond
  5. ItemC1: 50
  6. Item2: gold ingot
  7. ItemC2: 50
  8. Item3: tnt
  9. ItemC3: 50
  10. Item4: iron ingot
  11. ItemC4: 50
  12. on mine of stone:
  13. chance of {@Chance}%:
  14. if player has permission "{@Permission}":
  15. send "&aDostales &cSkrzynke Niespodzianke!"
  16. drop 1 chest named "&9&lSkrzynka Niespodzianka" at location of event-block
  17. on place of chest:
  18. if player's tool's name is "&9&lSkrzynka Niespodzianka":
  19. set the block to air
  20. launch creeper firework colored green at location of event-block timed 1
  21. launch ball large firework colored red at location of event-block timed 1
  22. launch star firework colored yellow at location of event-block timed 1
  23. loop 1000 times:
  24. chance of {@ItemC1}%:
  25. add {@Item1} to {_a::*}
  26. chance of {@ItemC2}%:
  27. add {@Item2} to {_a::*}
  28. chance of {@ItemC3}%:
  29. add {@Item3} to {_a::*}
  30. chance of {@ItemC4}%:
  31. add {@Item4} to {_a::*}
  32. if size of {_a::*} is not 0:
  33. loop {_a::*}:
  34. set {_} to a random integer between 1 and 3
  35. drop {_} of loop-value at location of event-block
  36. send "&cWylosowales &6&l%{_}% %loop-value%"
  37. stop
Advertisement
Add Comment
Please, Sign In to add comment