Advertisement
Guest User

Generator

a guest
Oct 31st, 2014
559
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 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. set {stone::%event-block%} to true
  64. send {@create}
  65. wait {@replace} seconds
  66. set event-block to stone
  67.  
  68. on break of stone:
  69. {stone::%event-block%} is true
  70. player's tool is gold pickaxe:
  71. delete {stone::%event-block%}
  72. drop {@block} named {@named}
  73. send {@delete}
  74. stop
  75. player's tool is not gold pickaxe:
  76. wait {@replace} seconds
  77. set event-block to stone
  78. add 1 to {uses:: %event-block%}
  79. {uses:: %event-block%} is more than {@iblock}:
  80. delete {stone::%event-block%}
  81. delete {uses::%event-block%}
  82. send {@end-generator}
  83.  
  84. # ==================================================#
  85.  
  86. # Komenda Która Daje Generator #
  87.  
  88. command /Generator:
  89. permission: generator.stone
  90. trigger:
  91. send "&7Dostales Darmowy Generator"
  92. give {@block} named {@named} to the player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement