Guest User

Stoniarka

a guest
Aug 27th, 2014
815
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.56 KB | None | 0 0
  1. options:
  2. prefix: &a[&bStone&a] &7 #Prefix na wiadomosciach
  3. block: end stone #Block (staly) jaki ma byc uzywany za stoniarke
  4. named: &1Stoniarka #Nazwa bloku stoniarki
  5. chance: 100% #Szansa na wypadniecie stoniarki z zniszczonego bloku
  6.  
  7. #Opcja dodatek jest nie tylko ciekawa jak i zawierajaca bugi w dalszych opcjach
  8. #Poniewaz dodatek WildSkript umozliwia ustawienie ilosci itemu, lecz SK+ nie
  9. #Więc jak macie sk+ i ustawicie ilość itemu to do mnie nie piszcie że nie działa, bo tylko jeden można dać, na crafting
  10. #Sk+ nie posiada ustawienia ilości itemu na crafting !!!
  11. #Przy reloadzie bedziecie mieli bledy gdy macie WS to bedziecie mieli 1 blad "Understand condition" nie wnikajcie w to, lecz skrypt będzie działał poprawnie
  12. #Przy reloadzie, gdy macie SK+ też nie wnikajcie w błędy bo to nie ma zależności przy poprawnym funkcjonowaniu skryptu
  13. #Możecie także wyłączyć tą usługę wpisując w dodatku byle co i wtedy crafting nie będzie uznawany na serwerze
  14.  
  15.  
  16. dodatek: true #true - wildskript / WS false - sk+ / Skript+
  17.  
  18. replace: 3 #Czas po jakim ma się odrodzić stone
  19.  
  20. 1.slot.ilosc: 1 #Ilosc itemu w slocie 1
  21. 1.slot.item: redstone #Item jaki ma byc ustawiony w craftingu w slocie 1
  22.  
  23. 2.slot.ilosc: 1 #Ilosc itemu w slocie 2
  24. 2.slot.item: stone #Item jaki ma byc ustawiony w craftingu w slocie 2
  25.  
  26. 3.slot.ilosc: 1
  27. 3.slot.item: redstone
  28.  
  29. 4.slot.ilosc: 1
  30. 4.slot.item: stone
  31.  
  32. 5.slot.ilosc: 1
  33. 5.slot.item: piston base
  34.  
  35. 6.slot.ilosc: 1
  36. 6.slot.item: stone
  37.  
  38. 7.slot.ilosc: 1
  39. 7.slot.item: redstone
  40.  
  41. 8.slot.ilosc: 1
  42. 8.slot.item: stone
  43.  
  44. 9.slot.ilosc: 1
  45. 9.slot.item: redstone
  46.  
  47.  
  48. on place:
  49. player is holding {@block} named "{@named}":
  50. add location of event-block to {stone::*}
  51. add location of block above event-block to {ston::*}
  52. set block above event-block to stone
  53. send "{@prefix}Utworzyles stoniarke"
  54.  
  55. on break of {@block}:
  56. loop {stone::*}:
  57. cancel event
  58. set event-block to air
  59. set block above event-block to air
  60. remove location of event-block from {stone::*}
  61. loop {ston::*}:
  62. remove location of block above event-block from {ston::*}
  63. chance of {@chance}:
  64. drop {@block} named "{@named}"
  65. loop 1 times:
  66. send "{@prefix}Usunales stoniarke"
  67. stop
  68. on break of stone:
  69. loop {ston::*}:
  70. if location of event-block is loop-value:
  71. loop {@replace} times:
  72. wait 1 second
  73. if block below event-block is not {@block}:
  74. stop
  75. set event-block to stone
  76.  
  77. command /stone [<text>]:
  78. aliases: stoniarka
  79. trigger:
  80. arg 1 is not set:
  81. send "{@prefix}Informacje:"
  82. send "&7Jest to skrypt stworzony przez &3knugi&7."
  83. send "&7Dziala na takiej zasadzie ze:"
  84. send "&7Jezeli polozysz blok &a{@block} &7o nazwie &b{@named}"
  85. send "&7To utworzysz stoniarke. Stone bedzie sie generowal nad &a{@block}"
  86. stop
  87. arg 1 is set:
  88. player has permission "stone.admin":
  89. arg 1 is "reset":
  90. loop {stone::*}:
  91. set block at loop-value to air
  92. loop {ston::*}:
  93. set block at loop-value to air
  94. clear {stone::*}
  95. clear {ston::*}
  96. send "{@prefix}Zrestartowales wszystkie stoniarki"
  97. stop
  98. send "{@prefix}Komendy:"
  99. send "&7/stone reset &8- restartuje wszystkie stoniarki"
  100. stop
  101. send "{@prefix}Informacje:"
  102. send "&7Jest to skrypt stworzony przez &3knugi&7."
  103. send "&7Dziala na takiej zasadzie ze:"
  104. send "&7Jezeli polozysz blok &a{@block} &7o nazwie &b{@named}"
  105. send "&7To utworzysz stoniarke. Stone bedzie sie generowal nad &a{@block}"
  106. stop
  107. on script load:
  108. {@dodatek} is true:
  109. set {_stone} to "Stone"
  110. Recipe.new{ {_stone} }
  111. {_stone}.Recipe.registerIngredient{1, {@1.slot.ilosc} {@1.slot.item}}
  112. {_stone}.Recipe.registerIngredient{2, {@2.slot.ilosc} {@2.slot.item}}
  113. {_stone}.Recipe.registerIngredient{3, {@3.slot.ilosc} {@3.slot.item}}
  114. {_stone}.Recipe.registerIngredient{4, {@4.slot.ilosc} {@4.slot.item}}
  115. {_stone}.Recipe.registerIngredient{5, {@5.slot.ilosc} {@5.slot.item}}
  116. {_stone}.Recipe.registerIngredient{6, {@6.slot.ilosc} {@6.slot.item}}
  117. {_stone}.Recipe.registerIngredient{7, {@7.slot.ilosc} {@7.slot.item}}
  118. {_stone}.Recipe.registerIngredient{8, {@8.slot.ilosc} {@8.slot.item}}
  119. {_stone}.Recipe.registerIngredient{9, {@9.slot.ilosc} {@9.slot.item}}
  120. {_stone}.Recipe.registerResult{1 {@block} named "{@named}"}
  121. {_stone}.Recipe.register
  122. {@dodatek} is false:
  123. register new shaped recipe for {@block} named "{@named}" using {@1.slot.item}, {@2.slot.item}, {@3.slot.item}, {@4.slot.item}, {@5.slot.item}, {@6.slot.item}, {@7.slot.item}, {@8.slot.item}, {@9.slot.item}
Advertisement
Add Comment
Please, Sign In to add comment