knugi

Untitled

Dec 19th, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. on script load:
  2. delete {pandora::*}
  3. if {pandora::*} is not set:
  4. add "16 diamond" to {pandora::*}
  5. add "enderchest" to {pandora::*}
  6. add "5 gold ingot" to {pandora::*}
  7. command /pandora:
  8. trigger:
  9. if player has 576 cobblestone:
  10. remove 576 cobblestone from player
  11. set {_r} to "%random integer from 1 to 3%" parsed as integer
  12. set {_n} to dragon egg
  13. set {_item} to "%{_r}% %{_n}%" parsed as item
  14. give {_item} named "&6Cobble&4&lX" to the player
  15. stop
  16. send "&cNie posiadasz 9 stackow cobla!"
  17. stop
  18. on place of dragon egg:
  19. if name of player's tool is "&6Cobble&4&lX":
  20. set {dragonegg.%location of event-block%} to true
  21. on click on dragon egg:
  22. if {dragonegg.%location of event-block%} is set:
  23. clear {dragonegg.%location of event-block%}
  24. cancel event
  25. set {_i} to size of {pandora::*}
  26. loop 10 times:
  27. if {_n} is set:
  28. exit loop
  29. loop {pandora::*}:
  30. chance of 100 / {_i}%:
  31. set {_n} to loop-value parsed as item
  32. exit loop
  33. give {_n} to the player
  34. set event-block to air
Advertisement
Add Comment
Please, Sign In to add comment