knugi

Untitled

Feb 23rd, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. options:
  2. Permission: skrzynka.skript
  3. Chance: 0.2
  4. Item1: diamond
  5. ItemC1: 25
  6. Item2: gold ingot
  7. ItemC2: 5
  8. Item3: tnt
  9. ItemC3: 5
  10. Item4: iron ingot
  11. ItemC4: 25
  12. Item5: obsidian
  13. ItemC5: 15
  14. Item6: paper
  15. ItemC6: 15
  16. Item7: sand
  17. ItemC7: 25
  18. cmd: knugi
  19. command /{@cmd}:
  20. trigger:
  21. if player has 500 cobblestone:
  22. remove 500 cobblestone from player
  23. wait 1 tick
  24. give 1 chest named "&9&lSkrzynka Niespodzianka" to the player
  25. send "&cDostales skrzynke niespodzianke!"
  26. stop
  27. send "&cNie posiadasz 500 cobblestone"
  28. stop
  29. on mine of stone:
  30. chance of {@Chance}%:
  31. if player has permission "{@Permission}":
  32. send "&aDostales &cSkrzynke Niespodzianke!"
  33. drop 1 chest named "&9&lSkrzynka Niespodzianka" at location of event-block
  34. on place of chest:
  35. if player's tool's name is "&9&lSkrzynka Niespodzianka":
  36. set the block to air
  37. launch creeper firework colored green at location of event-block timed 1
  38. launch ball large firework colored red at location of event-block timed 1
  39. launch star firework colored yellow at location of event-block timed 1
  40. loop 1000 times:
  41. chance of {@ItemC1}%:
  42. add {@Item1} to {_a::*}
  43. chance of {@ItemC2}%:
  44. add {@Item2} to {_a::*}
  45. chance of {@ItemC3}%:
  46. add {@Item3} to {_a::*}
  47. chance of {@ItemC4}%:
  48. add {@Item4} to {_a::*}
  49. chance of {@ItemC5}%:
  50. add {@Item5} to {_a::*}
  51. chance of {@ItemC6}%:
  52. add {@Item6} to {_a::*}
  53. chance of {@ItemC7}%:
  54. add {@Item7} to {_a::*}
  55. if size of {_a::*} is not 0:
  56. loop {_a::*}:
  57. set {_} to a random integer between 1 and 10
  58. drop {_} of loop-value at location of event-block
  59. send "&cWylosowales &6&l%{_}% %loop-value%"
  60. stop
Advertisement
Add Comment
Please, Sign In to add comment