Guest User

StoneGenerator - by EmsonGames

a guest
Apr 24th, 2014
3,141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. #================= StoneGenerator - by EmsonGames ================
  2.  
  3. # ===================== KOD/CODE ======================
  4.  
  5. on script load:
  6. register new shaped recipe for emerald ore named "&aMagiczna stoniarka" using stone, stone, stone, stone, emerald, stone, stone, stone, stone
  7. on place of emerald ore:
  8. if name of the player's tool is "&aMagiczna stoniarka":
  9. send "&7Postawiles: &aMagiczna stoniarke"
  10. set {s.%event-block%} to true
  11. wait 1 second
  12. set event-block to stone
  13. stop
  14. on break of stone:
  15. if {s.%event-block%} is true:
  16. if player is holding gold pickaxe:
  17. cancel event
  18. send "&7Zniszczyles: &aMagiczna stoniarke"
  19. set event-block to air
  20. if player can hold 1 emerald ore named "&aMagiczna stoniarka":
  21. give 1 emerald ore named "&aMagiczna stoniarka" to the player
  22. stop
  23. else:
  24. drop 1 emerald ore named "&aMagiczna stoniarka"
  25. stop
  26. else:
  27. wait 1 second
  28. set event-block to stone
  29. stop
Advertisement
Add Comment
Please, Sign In to add comment