Zaaxel

MegaGUI

Mar 1st, 2016
1,453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.44 KB | None | 0 0
  1. # Nazwa: MegaGUI
  2. # Opis: MegaGUI dodaje do gry Generator Kamienia, Generator Obsydianu,
  3. # BoyFarmer'a, SandFarmer'a, AutoFose oraz GUI z craftingami!
  4. # Posiada AutoCrafting!
  5. # Autor: Zaaxel
  6. # Wersja: 1.0
  7.  
  8. # Co jest w wersji 1.0?
  9. # W wersji 1.0 dostępne jest:
  10. # GUI craftingów
  11. # AutoCrafting
  12. # Stworzone bloki Generatora Kamienia, Generatora Obsydianu, BoyFarmer'a, SandFarmer'a i AutoFosy
  13. # Na ten czas nie dodane funkcje w.w. bloków
  14.  
  15. # Przy załadowaniu skryptu wczytuje crafting:
  16. on script load:
  17. # Generator Kamienia
  18. register new shaped recipe for emerald ore named "&aGenerator Kamienia" using stone, stone, stone, stone, emerald block, stone, stone, stone, stone
  19. # Generator Obsydianu
  20. register new shaped recipe for diamond ore named "&9Generator Obsydianu" using obsidian, obsidian, obsidian, obsidian, diamond block, obsidian, obsidian, obsidian, obsidian
  21. # BoyFarmer
  22. register new shaped recipe for end portal frame named "&6BoyFarmer" using obsidian, obsidian, obsidian, obsidian, golden apple, obsidian, obsidian, obsidian, obsidian
  23. # SandFarmer
  24. register new shaped recipe for sand named "&bSandFarmer" using sand, sand, sand, sand, golden apple, sand, sand, sand, sand
  25. # AutoFosa
  26. register new shaped recipe for end stone named "&5AutoFosa" using obsidian, obsidian, obsidian, obsidian, water bucket, obsidian, lava bucket, obsidian, lava bucket
  27.  
  28. # Opcja do ustalenia logo skryptu
  29. options:
  30. logo: &f&lMega&c&lGUI
  31.  
  32. # Komenda otwierająca GUI Craftingów
  33. command /gui:
  34. trigger:
  35. execute console command "mgui %player% craftingi"
  36.  
  37. # Komenda uruchamiana przez konsole, GUI
  38. command /mgui [<player>] [<text>]:
  39. executable by: console
  40. trigger:
  41. # Otwiera GUI graczowi z wyborem craftingu
  42. if arg 2 is "craftingi":
  43. wait 2 tick
  44. open chest with 1 rows named "&cCraftingi" to player-arg
  45. wait 2 tick
  46. format slot 0 of player-arg with 1 of emerald ore named "&aGenerator Kamienia" to run "mgui %player-arg% generatorkamienia"
  47. format slot 1 of player-arg with 1 of diamond ore named "&9Generator Obsydianu" to run "mgui %player-arg% generatorobsydianu"
  48. format slot 2 of player-arg with 1 of end portal frame named "&6BoyFarmer" to run "mgui %player-arg% boyfarmer"
  49. format slot 3 of player-arg with 1 of sand named "&bSandFarmer" to run "mgui %player-arg% sandfarmer"
  50. format slot 4 of player-arg with 1 of end stone named "&5AutoFosa" to run "mgui %player-arg% autofosa"
  51. format slot 8 of player-arg with 1 of iron door item named "&c&lWyjscie" to close
  52. # GUI dla Generator Kamienia
  53. if arg 2 is "generatorkamienia":
  54. wait 2 tick
  55. open chest with 3 rows named "&aGenerator Kamienia" to player-arg
  56. wait 2 tick
  57. format slot 0 of player-arg with 1 of stone to be unstealable
  58. format slot 1 of player-arg with 1 of stone to be unstealable
  59. format slot 2 of player-arg with 1 of stone to be unstealable
  60. format slot 9 of player-arg with 1 of stone to be unstealable
  61. format slot 10 of player-arg with 1 of emerald block to be unstealable
  62. format slot 11 of player-arg with 1 of stone to be unstealable
  63. format slot 12 of player-arg with 1 of emerald ore named "&aGenerator Kamienia" to be unstealable
  64. format slot 15 of player-arg with 1 of crafting table named "&6AutoCrafting" to run "amenu %player-arg% generatorkamienia"
  65. format slot 18 of player-arg with 1 of stone to be unstealable
  66. format slot 19 of player-arg with 1 of stone to be unstealable
  67. format slot 20 of player-arg with 1 of stone to be unstealable
  68. format slot 25 of player-arg with 1 of stone button named "&7Powrot do Craftingow" to run "mgui %player-arg% craftingi"
  69. format slot 26 of player-arg with 1 of iron door item named "&c&lWyjdz" to close
  70. # GUI dla Generator Obsydianu
  71. if arg 2 is "generatorobsydianu":
  72. wait 2 tick
  73. open chest with 3 rows named "&9Generator Obsydianu" to player-arg
  74. wait 2 tick
  75. format slot 0 of player-arg with 1 of obsidian to be unstealable
  76. format slot 1 of player-arg with 1 of obsidian to be unstealable
  77. format slot 2 of player-arg with 1 of obsidian to be unstealable
  78. format slot 9 of player-arg with 1 of obsidian to be unstealable
  79. format slot 10 of player-arg with 1 of diamond block to be unstealable
  80. format slot 11 of player-arg with 1 of obsidian to be unstealable
  81. format slot 12 of player-arg with 1 of diamond ore named "&9Generator Obsydianu" to be unstealable
  82. format slot 15 of player-arg with 1 of crafting table named "&6AutoCrafting" to run "agui %player-arg% generatorobsydianu"
  83. format slot 18 of player-arg with 1 of obsidian to be unstealable
  84. format slot 19 of player-arg with 1 of obsidian to be unstealable
  85. format slot 20 of player-arg with 1 of obsidian to be unstealable
  86. format slot 25 of player-arg with 1 of stone button named "&7Powrot do Craftingow" to run "mgui %player-arg% craftingi"
  87. format slot 26 of player-arg with 1 of iron door item named "&c&lWyjscie" to close
  88. # GUI dla BoyFarmer
  89. if arg 2 is "boyfarmer":
  90. wait 2 tick
  91. open chest with 3 rows named "&6BoyFarmer" to player-arg
  92. wait 2 tick
  93. format slot 0 of player-arg with 1 of obsidian to be unstealable
  94. format slot 1 of player-arg with 1 of obsidian to be unstealable
  95. format slot 2 of player-arg with 1 of obsidian to be unstealable
  96. format slot 9 of player-arg with 1 of obsidian to be unstealable
  97. format slot 10 of player-arg with 1 of golden apple to be unstealable
  98. format slot 11 of player-arg with 1 of obsidian to be unstealable
  99. format slot 12 of player-arg with 1 of end portal frame named "&6BoyFarmer" to be unstealable
  100. format slot 15 of player-arg with 1 of crafting table named "&6AutoCrafting" to run "agui %player-arg% boyfarmer"
  101. format slot 18 of player-arg with 1 of obsidian to be unstealable
  102. format slot 19 of player-arg with 1 of obsidian to be unstealable
  103. format slot 20 of player-arg with 1 of obsidian to be unstealable
  104. format slot 25 of player-arg with 1 of stone button named "&7Powrot do Craftingow" to run "mgui %player-arg% craftingi"
  105. format slot 26 of player-arg with 1 of iron door item named "&c&lWyjscie" to close
  106. # GUI dla SandFarmer
  107. if arg 2 is "sandfarmer":
  108. wait 2 tick
  109. open chest with 3 rows named "&bSandFarmer" to player-arg
  110. wait 2 tick
  111. format slot 0 of player-arg with 1 of sand to be unstealable
  112. format slot 1 of player-arg with 1 of sand to be unstealable
  113. format slot 2 of player-arg with 1 of sand to be unstealable
  114. format slot 9 of player-arg with 1 of sand to be unstealable
  115. format slot 10 of player-arg with 1 of golden apple to be unstealable
  116. format slot 11 of player-arg with 1 of sand to be unstealable
  117. format slot 12 of player-arg with 1 of sand named "&bSandFarmer" to be unstealable
  118. format slot 15 of player-arg with 1 of crafting table named "&6AutoCrafting" to run "agui %player-arg% sandfarmer"
  119. format slot 18 of player-arg with 1 of sand to be unstealable
  120. format slot 19 of player-arg with 1 of sand to be unstealable
  121. format slot 20 of player-arg with 1 of sand to be unstealable
  122. format slot 25 of player-arg with 1 of stone button named "&7Powrot do Craftingow" to run "mgui %player-arg% craftingi"
  123. format slot 26 of player-arg with 1 of iron door item named "&c&lWyjscie" to close
  124. # GUI dla AutoFosa
  125. if arg 2 is "autofosa":
  126. wait 2 tick
  127. open chest with 3 rows named "&5AutoFosa" to player-arg
  128. wait 2 tick
  129. format slot 0 of player-arg with 1 of obsidian to be unstealable
  130. format slot 1 of player-arg with 1 of obsidian to be unstealable
  131. format slot 2 of player-arg with 1 of obsidian to be unstealable
  132. format slot 9 of player-arg with 1 of obsidian to be unstealable
  133. format slot 10 of player-arg with 1 of water bucket to be unstealable
  134. format slot 11 of player-arg with 1 of obsidian to be unstealable
  135. format slot 12 of player-arg with 2 of end stone named "&5AutoFosa" to be unstealable
  136. format slot 15 of player-arg with 1 of crafting table named "&6AutoCrafting" to run "agui %player-arg% autofosa"
  137. format slot 18 of player-arg with 1 of lava bucket to be unstealable
  138. format slot 19 of player-arg with 1 of obsidian to be unstealable
  139. format slot 20 of player-arg with 1 of lava bucket to be unstealable
  140. format slot 25 of player-arg with 1 of stone button named "&7Powrot do Craftingow" to run "mgui %player-arg% craftingi"
  141. format slot 26 of player-arg with 1 of iron door item named "&c&lWyjscie" to close
  142.  
  143. # Komenda uruchamiana przez konsole, AutocCafting
  144. command /agui [<player>] [<text>]:
  145. executable by: console
  146. trigger:
  147. # AutoCrafting: Generator Kamienia
  148. if arg 2 is "generatorkamienia":
  149. if player-arg has 8 stone and 1 emerald block:
  150. send "{@logo}: &r&aZaakceptowano!"
  151. remove 8 stone and 1 emerald block from player-arg's inventory
  152. if player-arg can hold 1 emerald ore named "&aGenerator Kamienia":
  153. give 1 emerald ore named "&aGenerator Kamienia" to the player-arg
  154. send "{@logo}: &r&eOtrzymales &aGenerator Kamienia"
  155. else:
  156. give 8 stone and 1 emerald block to the player-arg
  157. send "{@logo}: &r&eNie masz miejsca w ekwipunku"
  158. else:
  159. send "{@logo}: &r&4Nie masz odpowiednich przedmiotow"
  160. # AutoCrafting: Generator Obsydianu
  161. if arg 2 is "generatorobsydianu":
  162. if player-arg has 8 obsidian and 1 diamond block:
  163. send "{@logo}: &r&aZaakceptowano!"
  164. remove 8 obsidian and 1 diamond block from player-arg's inventory
  165. if player-arg can hold 1 diamond ore named "&9Generator Obsydianu":
  166. give 1 diamond ore named "&9Generator Obsydianu" to the player-arg
  167. send "{@logo}: &r&eOtrzymales &9Generator Obsydianu"
  168. else:
  169. give 8 obsidian and 1 diamond block to the player-arg
  170. send "{@logo}: &r&eNie masz miejsca w ekwipunku"
  171. else:
  172. send "{@logo}: &r&4Nie masz odpowiednich przedmiotow"
  173. # AutoCrafting: BoyFarmer
  174. if arg 2 is "boyfarmer":
  175. if player-arg has 8 obsidian and 1 golden apple:
  176. send "{@logo}: &r&aZaakceptowano!"
  177. remove 8 obsidian and 1 golden apple from player-arg's inventory
  178. if player-arg can hold 1 end portal frame named "&6BoyFarmer":
  179. give 1 end portal frame named "&6BoyFarmer" to the player-arg
  180. send "{@logo}: &r&eOtrzymales &6BoyFarmer"
  181. else:
  182. give 8 obsidian and 1 golden apple to the player-arg
  183. send "{@logo}: &r&eNie masz miejsca w ekwipunku"
  184. else:
  185. send "{@logo}: &r&4Nie masz odpowiednich przedmiotow"
  186. # AutoCrafting: SandFarmer
  187. if arg 2 is "sandfarmer":
  188. if player-arg has 8 sand and 1 golden apple:
  189. send "{@logo}: &r&aZaakceptowano!"
  190. remove 8 sand and 1 golden apple from player-arg's inventory
  191. if player-arg can hold 1 sand named "&bSandFarmer":
  192. give 1 sand named "&bSandFarmer" to the player-arg
  193. send "{@logo}: &r&eOtrzymales &bSandFarmer"
  194. else:
  195. give 8 sand and 1 golden apple to the player-arg
  196. send "{@logo}: &r&eNie masz miejsca w ekwipunku"
  197. else:
  198. send "{@logo}: &r&4Nie masz odpowiednich przedmiotow"
  199. # AutoCrafting: AutoFosa
  200. if arg 2 is "autofosa":
  201. if player-arg has 2 lava bucket and 1 water bucket and 6 obsidian:
  202. send "{@logo}: &r&aZaakceptowano!"
  203. remove 2 lava bucket and 1 water bucket and 6 obsidian from player-arg's inventory
  204. if player-arg can hold 2 end stone named "&5AutoFosa":
  205. give 2 end stone named "&5AutoFosa" to the player-arg
  206. give 3 bucket to the player-arg
  207. send "{@logo}: &r&eOtrzymales &5AutoFose"
  208. else:
  209. give 2 lava bucket and 1 water bucket and 6 obsidian to the player-arg
  210. send "{@logo}: &r&eNie masz miejsca w ekwipunku"
  211. else:
  212. send "{@logo}: &r&4Nie masz odpowiednich przedmiotow"
  213.  
  214. # Komenda wyświetlająca Informacje o skrypcie
  215. command /megagui:
  216. trigger:
  217. send ""
  218. send "&9<&6*&9> &6========== {@logo} &6========== &9<&6*&9>"
  219. send "&9<&6*&9> &6Autor: &eZaaxel"
  220. send "&8<&6*&9> &6Specjalnie dla &eSkript.pl"
Advertisement
Add Comment
Please, Sign In to add comment