Advertisement
AdamLam

Untitled

Jan 24th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.14 KB | None | 0 0
  1. function GuiFill(p: player):
  2. set {i.loop} to 0
  3. loop 27 times:
  4. create gui slot {i.loop} of {_p} with black stained glass pane named " " with lore " " to do nothing
  5. set {i.loop} to {i.loop}+1
  6. inventory click:
  7. if inventory name of current inventory of player contains "&4Enchant":
  8. cancel event
  9. on click on anvil:
  10. #=====================================================================================================
  11. if block below event-block is quartz block:
  12. if event-item is sword:
  13. cancel event
  14. open virtual chest with size 3 named "&4Enchant - sword" to event-player
  15. wait 5 ticks
  16. GuiFill(player)
  17. wait 5 ticks
  18. create gui slot 10 of event-player with red dye named "&6&lSharpness V" with lore "Price: 5 diamonds" to run:
  19. if player has 5 diamonds:
  20. remove 5 diamonds from player
  21. enchant the player's tool with sharpness 5
  22. send "wiadomosc z enchantem"
  23. else:
  24. send "wiadomosc z brakiem waluty"
  25. close player's inventory
  26. create gui slot 11 of event-player with green dye named "&6&lFire aspect III" with lore "Price: 5 diamonds" to run:
  27. if player has 5 diamonds:
  28. remove 5 diamonds from player
  29. enchant the player's tool with Fire aspect 3
  30. send "wiadomosc z enchantem"
  31. else:
  32. send "wiadomosc z brakiem waluty"
  33. close player's inventory
  34. create gui slot 12 of event-player with purple dye named "&6&lLooting III" with lore "Price: 5 diamonds" to run:
  35. if player has 5 diamonds:
  36. remove 5 diamonds from player
  37. enchant the player's tool with looting 3
  38. send "wiadomosc z enchantem"
  39. else:
  40. send "wiadomosc z brakiem waluty"
  41. close player's inventory
  42. create gui slot 13 of event-player with cyan dye named "&6&lUnbreaking III" with lore "Price: 5 diamonds" to run:
  43. if player has 5 diamonds:
  44. remove 5 diamonds from player
  45. enchant the player's tool with unbreaking 3
  46. send "wiadomosc z enchantem"
  47. else:
  48. send "wiadomosc z brakiem waluty"
  49. close player's inventory
  50. create gui slot 14 of event-player with light gray dye named "&6&lKnockback II" with lore "Price: 5 diamonds" to run:
  51. if player has 5 diamonds:
  52. remove 5 diamonds from player
  53. enchant the player's tool with knockback 2
  54. send "wiadomosc z enchantem"
  55. else:
  56. send "wiadomosc z brakiem waluty"
  57. close player's inventory
  58. create gui slot 15 of event-player with lime dye named "&6&lBane of Arthropods V" with lore "Price: 5 diamonds" to run:
  59. if player has 5 diamonds:
  60. remove 5 diamonds from player
  61. enchant the player's tool with bane of arthropods 5
  62. send "wiadomosc z enchantem"
  63. else:
  64. send "wiadomosc z brakiem waluty"
  65. close player's inventory
  66. create gui slot 16 of event-player with orange dye named "&6&lSmite" with lore "Price: 5 diamonds" to run:
  67. if player has 5 diamonds:
  68. remove 5 diamonds from player
  69. enchant the player's tool with smite 5
  70. send "wiadomosc z enchantem"
  71. else:
  72. send "wiadomosc z brakiem waluty"
  73. close player's inventory
  74. #=====================================================================================================
  75. if event-item is helmet:
  76. cancel event
  77. open virtual chest with size 3 named "&4Enchant - Helmet" to event-player
  78. wait 5 ticks
  79. GuiFill(player)
  80. wait 5 ticks
  81. create gui slot 10 of event-player with red dye named "&6&lProtection IV" with lore "Price: 5 diamonds" to run:
  82. if player has 5 diamonds:
  83. remove 5 diamonds from player
  84. enchant the player's tool with Protection 4
  85. send "wiadomosc z enchantem"
  86. else:
  87. send "wiadomosc z brakiem waluty"
  88. close player's inventory
  89. create gui slot 11 of event-player with green dye named "&6&lUnbreaking III" with lore "Price: 5 diamonds" to run:
  90. if player has 5 diamonds:
  91. remove 5 diamonds from player
  92. enchant the player's tool with Unbreaking 3
  93. send "wiadomosc z enchantem"
  94. else:
  95. send "wiadomosc z brakiem waluty"
  96. close player's inventory
  97. create gui slot 12 of event-player with orange dye named "&6&lBlast Protection" with lore "Price: 5 diamonds" to run:
  98. if player has 5 diamonds:
  99. remove 5 diamonds from player
  100. enchant the player's tool with Blast Protection 4
  101. send "wiadomosc z enchantem"
  102. else:
  103. send "wiadomosc z brakiem waluty"
  104. close player's inventory
  105. create gui slot 13 of event-player with purple dye named "&6&lThorns" with lore "Price: 5 diamonds" to run:
  106. if player has 5 diamonds:
  107. remove 5 diamonds from player
  108. enchant the player's tool with thorns 3
  109. send "wiadomosc z enchantem"
  110. else:
  111. send "wiadomosc z brakiem waluty"
  112. close player's inventory
  113. create gui slot 14 of event-player with light gray dye named "&6&lFire Protection" with lore "Price: 5 diamonds" to run:
  114. if player has 5 diamonds:
  115. remove 5 diamonds from player
  116. enchant the player's tool with fire protection 4
  117. send "wiadomosc z enchantem"
  118. else:
  119. send "wiadomosc z brakiem waluty"
  120. close player's inventory
  121. #=====================================================================================================
  122. if event-item is chestplate:
  123. cancel event
  124. open virtual chest with size 3 named "&4Enchant - Chestplate" to event-player
  125. wait 5 ticks
  126. GuiFill(player)
  127. wait 5 ticks
  128. create gui slot 10 of event-player with red dye named "&6&lProtection IV" with lore "Price: 5 diamonds" to run:
  129. if player has 5 diamonds:
  130. remove 5 diamonds from player
  131. enchant the player's tool with Protection 4
  132. send "wiadomosc z enchantem"
  133. else:
  134. send "wiadomosc z brakiem waluty"
  135. close player's inventory
  136. create gui slot 11 of event-player with green dye named "&6&lUnbreaking III" with lore "Price: 5 diamonds" to run:
  137. if player has 5 diamonds:
  138. remove 5 diamonds from player
  139. enchant the player's tool with Unbreaking 3
  140. send "wiadomosc z enchantem"
  141. else:
  142. send "wiadomosc z brakiem waluty"
  143. close player's inventory
  144. create gui slot 12 of event-player with orange dye named "&6&lBlast Protection" with lore "Price: 5 diamonds" to run:
  145. if player has 5 diamonds:
  146. remove 5 diamonds from player
  147. enchant the player's tool with Blast Protection 4
  148. send "wiadomosc z enchantem"
  149. else:
  150. send "wiadomosc z brakiem waluty"
  151. close player's inventory
  152. create gui slot 13 of event-player with purple dye named "&6&lThorns" with lore "Price: 5 diamonds" to run:
  153. if player has 5 diamonds:
  154. remove 5 diamonds from player
  155. enchant the player's tool with thorns 3
  156. send "wiadomosc z enchantem"
  157. else:
  158. send "wiadomosc z brakiem waluty"
  159. close player's inventory
  160. create gui slot 14 of event-player with light gray dye named "&6&lFire Protection" with lore "Price: 5 diamonds" to run:
  161. if player has 5 diamonds:
  162. remove 5 diamonds from player
  163. enchant the player's tool with fire protection 4
  164. send "wiadomosc z enchantem"
  165. else:
  166. send "wiadomosc z brakiem waluty"
  167. close player's inventory
  168. #=====================================================================================================
  169. if event-item is leggings:
  170. cancel event
  171. open virtual chest with size 3 named "&4Enchant - Leggings" to event-player
  172. wait 5 ticks
  173. GuiFill(player)
  174. wait 5 ticks
  175. create gui slot 10 of event-player with red dye named "&6&lProtection IV" with lore "Price: 5 diamonds" to run:
  176. if player has 5 diamonds:
  177. remove 5 diamonds from player
  178. enchant the player's tool with Protection 4
  179. send "wiadomosc z enchantem"
  180. else:
  181. send "wiadomosc z brakiem waluty"
  182. close player's inventory
  183. create gui slot 11 of event-player with green dye named "&6&lUnbreaking III" with lore "Price: 5 diamonds" to run:
  184. if player has 5 diamonds:
  185. remove 5 diamonds from player
  186. enchant the player's tool with Unbreaking 3
  187. send "wiadomosc z enchantem"
  188. else:
  189. send "wiadomosc z brakiem waluty"
  190. close player's inventory
  191. create gui slot 12 of event-player with orange dye named "&6&lBlast Protection" with lore "Price: 5 diamonds" to run:
  192. if player has 5 diamonds:
  193. remove 5 diamonds from player
  194. enchant the player's tool with Blast Protection 4
  195. send "wiadomosc z enchantem"
  196. else:
  197. send "wiadomosc z brakiem waluty"
  198. close player's inventory
  199. create gui slot 13 of event-player with purple dye named "&6&lThorns" with lore "Price: 5 diamonds" to run:
  200. if player has 5 diamonds:
  201. remove 5 diamonds from player
  202. enchant the player's tool with thorns 3
  203. send "wiadomosc z enchantem"
  204. else:
  205. send "wiadomosc z brakiem waluty"
  206. close player's inventory
  207. create gui slot 14 of event-player with light gray dye named "&6&lFire Protection" with lore "Price: 5 diamonds" to run:
  208. if player has 5 diamonds:
  209. remove 5 diamonds from player
  210. enchant the player's tool with fire protection 4
  211. send "wiadomosc z enchantem"
  212. else:
  213. send "wiadomosc z brakiem waluty"
  214. close player's inventory
  215. #=====================================================================================================
  216. if event-item is boots:
  217. cancel event
  218. open virtual chest with size 3 named "&4Enchant - Boots" to event-player
  219. wait 5 ticks
  220. GuiFill(player)
  221. wait 5 ticks
  222. create gui slot 10 of event-player with red dye named "&6&lProtection IV" with lore "Price: 5 diamonds" to run:
  223. if player has 5 diamonds:
  224. remove 5 diamonds from player
  225. enchant the player's tool with Protection 4
  226. send "wiadomosc z enchantem"
  227. else:
  228. send "wiadomosc z brakiem waluty"
  229. close player's inventory
  230. create gui slot 11 of event-player with green dye named "&6&lUnbreaking III" with lore "Price: 5 diamonds" to run:
  231. if player has 5 diamonds:
  232. remove 5 diamonds from player
  233. enchant the player's tool with Unbreaking 3
  234. send "wiadomosc z enchantem"
  235. else:
  236. send "wiadomosc z brakiem waluty"
  237. close player's inventory
  238. create gui slot 12 of event-player with orange dye named "&6&lBlast Protection" with lore "Price: 5 diamonds" to run:
  239. if player has 5 diamonds:
  240. remove 5 diamonds from player
  241. enchant the player's tool with Blast Protection 4
  242. send "wiadomosc z enchantem"
  243. else:
  244. send "wiadomosc z brakiem waluty"
  245. close player's inventory
  246. create gui slot 13 of event-player with purple dye named "&6&lThorns" with lore "Price: 5 diamonds" to run:
  247. if player has 5 diamonds:
  248. remove 5 diamonds from player
  249. enchant the player's tool with thorns 3
  250. send "wiadomosc z enchantem"
  251. else:
  252. send "wiadomosc z brakiem waluty"
  253. close player's inventory
  254. create gui slot 14 of event-player with light gray dye named "&6&lFire Protection" with lore "Price: 5 diamonds" to run:
  255. if player has 5 diamonds:
  256. remove 5 diamonds from player
  257. enchant the player's tool with fire protection 4
  258. send "wiadomosc z enchantem"
  259. else:
  260. send "wiadomosc z brakiem waluty"
  261. close player's inventory
  262. #=====================================================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement