Advertisement
Guest User

Generator v.2

a guest
Oct 31st, 2014
1,214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. options:
  2.  
  3. # ==================================================#
  4.  
  5. # Informacje O Stowniarce #
  6.  
  7. # Block który ma zastepowac stowniarke #
  8. block: emerald ore
  9.  
  10. # Nazwa Stowniarki #
  11. named: "&6Generator"
  12.  
  13. # Czas po jakim odnawia sie stone #
  14. replace: 3 # W Sekundach #
  15.  
  16. # Ilosc Bloków Po Którym Niszczy Sie Generator #
  17. iblock: 1000
  18.  
  19. # ==================================================#
  20.  
  21. # Crafting Stowniarki #
  22.  
  23. # Poszczegulne Sloty w craftingu #
  24.  
  25. # 1|2|3
  26. # 4|5|6
  27. # 7|8|9
  28.  
  29. # Brak Itemu To ( None ) #
  30.  
  31. slot-1: Stone
  32. slot-2: Stone
  33. slot-3: Stone
  34. slot-4: Stone
  35. slot-5: Piston
  36. slot-6: Stone
  37. slot-7: Stone
  38. slot-8: Stone
  39. slot-9: Stone
  40.  
  41. # ==================================================#
  42.  
  43. # Wiadomosci #
  44.  
  45. create: "&7Stworzyles generator stone!"
  46. delete: "&cUsuneles generator stone!"
  47. end-generator: "&6Generator stone wyczerpal sie!"
  48. error: "&cBlad"
  49.  
  50. # ==================================================#
  51.  
  52. # Kod Na Crafting #
  53.  
  54. on script load:
  55. register new shapeless recipe for {@block} named {@named} using {@slot-1}, {@slot-2}, {@slot-3}, {@slot-4}, {@slot-5}, {@slot-6}, {@slot-7}, {@slot-8}, {@slot-9}
  56.  
  57. # ==================================================#
  58.  
  59. # Kod Na Stowniarke #
  60.  
  61. on place:
  62. player is holding {@block} named {@named}:
  63. log "Gracz %player% Postawił Generator Na Koradch: x - %x-coordinate of event-block% y - %y-coordinate of event-block% z - %z-coordinate of event-block% to "Generator/Postaw.log"
  64. set {stone::%event-block%} to true
  65. send {@create}
  66. wait {@replace} seconds
  67. set event-block to stone
  68.  
  69. on break of stone:
  70. {stone::%event-block%} is true
  71. player's tool is gold pickaxe:
  72. delete {stone::%event-block%}
  73. drop {@block} named {@named}
  74. send {@delete}
  75. stop
  76. player's tool is not gold pickaxe:
  77. wait {@replace} seconds
  78. set event-block to stone
  79. add 1 to {uses:: %event-block%}
  80. {uses:: %event-block%} is more than {@iblock}:
  81. delete {stone::%event-block%}
  82. delete {uses::%event-block%}
  83. send {@end-generator}
  84.  
  85. # ==================================================#
  86.  
  87. # Komendy #
  88.  
  89. command /generator:
  90. permission: generator.*
  91. trigger:
  92. arg 1 is "Darmowy":
  93. send "&7Dostales Darmowy Generator"
  94. give {@block} named {@named} to the player
  95. arg 1 is "reset":
  96. send "&7Usunełes Wszystkie Generatory Na Swiecie"
  97. clear {uses::%event-block%}
  98. clear {{stone::%event-block%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement