knugi

Untitled

Dec 18th, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 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. #Tutaj dodajesz itemy jakie chcesz miec, mam nadzieje ze po przykladach bedziesz wiedzial jak to zrobic
  8. command /pandora:
  9. trigger:
  10. if player has 576 cobblestone:
  11. remove 576 cobblestone from player
  12. set {_r} to random integer from 1 to 3
  13. give {_r} dragon egg named "&6Cobble&4&lX" to the player
  14. on place of dragon egg:
  15. if name of player's tool is "&6Cobble&4&lX":
  16. set {dragonegg.%location of event-block%} to true
  17. on click on dragon egg:
  18. if {dragonegg.%location of event-block%} is set:
  19. cancel event
  20. set {_i} to size of {pandora::*}
  21. loop 10 times:
  22. if {_n} is set:
  23. exit loop
  24. loop {pandora::*}:
  25. chance of 100 / {_i}%:
  26. set {_n} to loop-value parsed as item
  27. exit loop
  28. give {_n} to the player
  29. set event-block to air
Advertisement
Add Comment
Please, Sign In to add comment