Advertisement
Guest User

A

a guest
Jun 17th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 39.04 KB | None | 0 0
  1. on rightclick on enchantment table:
  2. cancel event
  3. if player's tool is any pickaxe or any Axe or any shovel or any hoe:
  4. open chest with 4 rows named "&c&lEnchant" to player
  5. set {itemencahnt.%player%} to player's tool
  6. wait 1 ticks
  7. format slot 0 of player with 1 of Enchanted Book named "&4&lEFFICIENCY I" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant efficiency 1 %player%"]
  8. format slot 1 of player with 1 of Enchanted Book named "&4&lEFFICIENCY II" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant efficiency 2 %player%"]
  9. format slot 2 of player with 1 of Enchanted Book named "&4&lEFFICIENCY III" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant efficiency 3 %player%"]
  10. format slot 3 of player with 1 of Enchanted Book named "&4&lEFFICIENCY IV" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant efficiency 4 %player%"]
  11. format slot 4 of player with 1 of Enchanted Book named "&4&lEFFICIENCY V" with lore " &8» &eKoszt: &a35 lvl" to close then run [execute console command "/ienchant efficiency 5 %player%"]
  12. format slot 9 of player with 1 of Enchanted Book named "&4&lUNBREAKING I" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant unbreaking 1 %player%"]
  13. format slot 10 of player with 1 of Enchanted Book named "&4&lUNBREAKING II" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant unbreaking 2 %player%"]
  14. format slot 11 of player with 1 of Enchanted Book named "&4&lUNBREAKING III" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant unbreaking 3 %player%"]
  15. format slot 18 of player with 1 of Enchanted Book named "&4&lFORTUNE I" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant fortune 1 %player%"]
  16. format slot 19 of player with 1 of Enchanted Book named "&4&lFORTUNE II" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant fortune 2 %player%"]
  17. format slot 20 of player with 1 of Enchanted Book named "&4&lFORTUNE III" with lore " &8» &eKoszt: &a45 lvl" to close then run [execute console command "/ienchant fortune 3 %player%"]
  18. format slot 27 of player with 1 of Enchanted Book named "&4&lSILK TOUCH I" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant silktouch 1 %player%"]
  19. stop
  20. if player's tool is any sword:
  21. set {itemencahnt.%player%} to player's tool
  22. open chest with 5 rows named "&c&lEnchant" to player
  23. wait 1 ticks
  24. format slot 0 of player with 1 of Enchanted Book named "&4&lSHARPNESS I" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant sharpness 1 %player%"]
  25. format slot 1 of player with 1 of Enchanted Book named "&4&lSHARPNESS II" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant sharpness 2 %player%"]
  26. format slot 2 of player with 1 of Enchanted Book named "&4&lSHARPNESS III" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant sharpness 3 %player%"]
  27. format slot 3 of player with 1 of Enchanted Book named "&4&lSHARPNESS IV" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant sharpness 4 %player%"]
  28. format slot 4 of player with 1 of Enchanted Book named "&4&lSHARPNESS V" with lore " &8» &eKoszt: &a35 lvl" to close then run [execute console command "/ienchant sharpness 5 %player%"]
  29. format slot 9 of player with 1 of Enchanted Book named "&4&lUNBREAKING I" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant unbreaking 1 %player%"]
  30. format slot 10 of player with 1 of Enchanted Book named "&4&lUNBREAKING II" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant unbreaking 2 %player%"]
  31. format slot 11 of player with 1 of Enchanted Book named "&4&lUNBREAKING III" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant unbreaking 3 %player%"]
  32. format slot 27 of player with 1 of Enchanted Book named "&4&lFIRE ASPECT I" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant fireaspect 1 %player%"]
  33. format slot 28 of player with 1 of Enchanted Book named "&4&lFIRE ASPECT II" with lore " &8» &eKoszt: &a40 lvl" to close then run [execute console command "/ienchant fireaspect 2 %player%"]
  34. format slot 18 of player with 1 of Enchanted Book named "&4&lLOOTING I" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant looting 1 %player%"]
  35. format slot 19 of player with 1 of Enchanted Book named "&4&lLOOTING II" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant looting 2 %player%"]
  36. format slot 20 of player with 1 of Enchanted Book named "&4&lLOOTING III" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant looting 3 %player%"]
  37. format slot 36 of player with 1 of Enchanted Book named "&4&lKNOCKBACK 1" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant knock 1 %player%"]
  38. format slot 37 of player with 1 of Enchanted Book named "&4&lKNOCKBACK 2" with lore " &8» &eKoszt: &a50 lvl" to close then run [execute console command "/ienchant knock 2 %player%"]
  39. stop
  40. if player's tool is any helmet or any chestplate or any leggings:
  41. set {itemencahnt.%player%} to player's tool
  42. open chest with 4 rows named "&c&lEnchant" to player
  43. wait 1 ticks
  44. format slot 0 of player with 1 of Enchanted Book named "&4&lPROTECTION I" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant protection 1 %player%"]
  45. format slot 1 of player with 1 of Enchanted Book named "&4&lPROTECTION II" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant protection 2 %player%"]
  46. format slot 2 of player with 1 of Enchanted Book named "&4&lPROTECTION III" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant protection 3 %player%"]
  47. format slot 3 of player with 1 of Enchanted Book named "&4&lPROTECTION IV" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant protection 4 %player%"]
  48. format slot 9 of player with 1 of Enchanted Book named "&4&lUNBREAKING I" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant unbreaking 1 %player%"]
  49. format slot 10 of player with 1 of Enchanted Book named "&4&lUNBREAKING II" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant unbreaking 2 %player%"]
  50. format slot 11 of player with 1 of Enchanted Book named "&4&lUNBREAKING III" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant unbreaking 3 %player%"]
  51. stop
  52. if player's tool is any boots:
  53. set {itemencahnt.%player%} to player's tool
  54. open chest with 4 rows named "&c&lEnchant" to player
  55. wait 1 ticks
  56. format slot 0 of player with 1 of Enchanted Book named "&4&lPROTECTION I" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant protection 1 %player%"]
  57. format slot 1 of player with 1 of Enchanted Book named "&4&lPROTECTION II" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant protection 2 %player%"]
  58. format slot 2 of player with 1 of Enchanted Book named "&4&lPROTECTION III" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant protection 3 %player%"]
  59. format slot 3 of player with 1 of Enchanted Book named "&4&lPROTECTION IV" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant protection 4 %player%"]
  60. format slot 18 of player with 1 of Enchanted Book named "&4&lUNBREAKING I" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant unbreaking 1 %player%"]
  61. format slot 19 of player with 1 of Enchanted Book named "&4&lUNBREAKING II" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant unbreaking 2 %player%"]
  62. format slot 20 of player with 1 of Enchanted Book named "&4&lUNBREAKING III" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant unbreaking 3 %player%"]
  63. format slot 9 of player with 1 of Enchanted Book named "&4&lFEATHER FALLING I" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant featherfalling 1 %player%"]
  64. format slot 10 of player with 1 of Enchanted Book named "&4&lFEATHER FALLING II" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant featherfalling 2 %player%"]
  65. format slot 11 of player with 1 of Enchanted Book named "&4&lFEATHER FALLING III" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant featherfalling 3 %player%"]
  66. format slot 12 of player with 1 of Enchanted Book named "&4&lFEATHER FALLING IV" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant featherfalling 4 %player%"]
  67. stop
  68. if player's tool is bow:
  69. set {itemencahnt.%player%} to player's tool
  70. open chest with 4 rows named "&c&lEnchant" to player
  71. wait 1 ticks
  72. format slot 0 of player with 1 of Enchanted Book named "&4&lPOWER I" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant power 1 %player%"]
  73. format slot 1 of player with 1 of Enchanted Book named "&4&lPOWER II" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant power 2 %player%"]
  74. format slot 2 of player with 1 of Enchanted Book named "&4&lPOWER III" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant power 3 %player%"]
  75. format slot 3 of player with 1 of Enchanted Book named "&4&lPOWER IV" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant power 4 %player%"]
  76. format slot 4 of player with 1 of Enchanted Book named "&4&lPOWER V" with lore " &8» &eKoszt: &a35 lvl" to close then run [execute console command "/ienchant power 5 %player%"]
  77. format slot 9 of player with 1 of Enchanted Book named "&4&lUNBREAKING I" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant unbreaking 1 %player%"]
  78. format slot 10 of player with 1 of Enchanted Book named "&4&lUNBREAKING II" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant unbreaking 2 %player%"]
  79. format slot 11 of player with 1 of Enchanted Book named "&4&lUNBREAKING III" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant unbreaking 3 %player%"]
  80. format slot 18 of player with 1 of Enchanted Book named "&4&lINFINITY I" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant infinity 1 %player%"]
  81. format slot 27 of player with 1 of Enchanted Book named "&4&lFLAME I" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant flame 1 %player%"]
  82. stop
  83. else:
  84. send "&4BLAD: &cKliknij lewym przyciskiem myszy na enchant przedmiotem ktory chcesz enchantowac." to player
  85.  
  86. command /ienchant [<text>] [<text>] [<player>]:
  87. permission: kithc.cmd.ienchant
  88. trigger:
  89. if player-arg's tool is not {itemencahnt.%player-arg%}:
  90. send "&cBLAD: &4zly przedmiot wejdz do enchantu jeszcze raz nie zmieniajac przedmiotu." to player-arg
  91. stop
  92. if player-arg's tool is {itemencahnt.%player-arg%}:
  93. if arg-1 is "efficiency":
  94. if arg-2 is "1":
  95. if arg-3 is set:
  96. if player-arg's level is greater than 4:
  97. enchant the player-arg's tool with efficiency 1
  98. remove 5 from player-arg's level
  99. send "&aPomyslnie dodano enchant." to player-arg
  100. stop
  101. else:
  102. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  103. stop
  104. if arg-2 is "2":
  105. if arg-3 is set:
  106. if player-arg's level is greater than 9:
  107. enchant the player-arg's tool with efficiency 2
  108. remove 10 from player-arg's level
  109. send "&aPomyslnie dodano enchant." to player-arg
  110. stop
  111. else:
  112. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  113. stop
  114. if arg-2 is "3":
  115. if arg-3 is set:
  116. if player-arg's level is greater than 14:
  117. enchant the player-arg's tool with efficiency 3
  118. remove 15 from player-arg's level
  119. send "&aPomyslnie dodano enchant." to player-arg
  120. stop
  121. else:
  122. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  123. stop
  124. if arg-2 is "4":
  125. if arg-3 is set:
  126. if player-arg's level is greater than 24:
  127. enchant the player-arg's tool with efficiency 4
  128. remove 25 from player-arg's level
  129. send "&aPomyslnie dodano enchant." to player-arg
  130. stop
  131. else:
  132. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  133. stop
  134. if arg-2 is "5":
  135. if arg-3 is set:
  136. if player-arg's level is greater than 34:
  137. enchant the player-arg's tool with efficiency 5
  138. remove 35 from player-arg's level
  139. send "&aPomyslnie dodano enchant." to player-arg
  140. stop
  141. else:
  142. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  143. stop
  144. if arg-1 is "unbreaking":
  145. if arg-2 is "1":
  146. if arg-3 is set:
  147. if player-arg's level is greater than 4:
  148. enchant the player-arg's tool with unbreaking 1
  149. remove 5 from player-arg's level
  150. send "&aPomyslnie dodano enchant." to player-arg
  151. stop
  152. else:
  153. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  154. stop
  155. if arg-2 is "2":
  156. if arg-3 is set:
  157. if player-arg's level is greater than 14:
  158. enchant the player-arg's tool with unbreaking 2
  159. remove 15 from player-arg's level
  160. send "&aPomyslnie dodano enchant." to player-arg
  161. stop
  162. else:
  163. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  164. stop
  165. if arg-2 is "3":
  166. if arg-3 is set:
  167. if player-arg's level is greater than 24:
  168. enchant the player-arg's tool with unbreaking 3
  169. remove 25 from player-arg's level
  170. send "&aPomyslnie dodano enchant." to player-arg
  171. stop
  172. else:
  173. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  174. stop
  175. if arg-1 is "fortune":
  176. if arg-2 is "1":
  177. if arg-3 is set:
  178. if player-arg's level is greater than 14:
  179. if player-arg's tool is pickaxe of silk touch 1:
  180. send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg
  181. stop
  182. if player-arg's tool is shovel of silk touch 1:
  183. send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg
  184. stop
  185. if player-arg's tool is hoe of silk touch 1:
  186. send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg
  187. stop
  188. if player-arg's tool is axe of silk touch 1:
  189. send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg
  190. stop
  191. else:
  192. enchant the player-arg's tool with fortune 1
  193. remove 15 from player-arg's level
  194. send "&aPomyslnie dodano enchant." to player-arg
  195. stop
  196. else:
  197. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  198. stop
  199. if arg-2 is "2":
  200. if arg-3 is set:
  201. if player-arg's level is greater than 29:
  202. if player-arg's tool is pickaxe of silk touch 1:
  203. send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg
  204. stop
  205. if player-arg's tool is shovel of silk touch 1:
  206. send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg
  207. stop
  208. if player-arg's tool is hoe of silk touch 1:
  209. send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg
  210. stop
  211. if player-arg's tool is axe of silk touch 1:
  212. send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg
  213. stop
  214. else:
  215. enchant the player-arg's tool with fortune 2
  216. remove 30 from player-arg's level
  217. send "&aPomyslnie dodano enchant." to player-arg
  218. stop
  219. else:
  220. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  221. stop
  222. if arg-2 is "3":
  223. if arg-3 is set:
  224. if player-arg's level is greater than 44:
  225. if player-arg's tool is pickaxe of silk touch 1:
  226. send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg
  227. stop
  228. if player-arg's tool is shovel of silk touch 1:
  229. send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg
  230. stop
  231. if player-arg's tool is hoe of silk touch 1:
  232. send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg
  233. stop
  234. if player-arg's tool is axe of silk touch 1:
  235. send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg
  236. stop
  237. else:
  238. enchant the player-arg's tool with fortune 3
  239. remove 45 from player-arg's level
  240. send "&aPomyslnie dodano enchant." to player-arg
  241. stop
  242. else:
  243. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  244. stop
  245. if arg-1 is "silktouch":
  246. if arg-2 is "1":
  247. if arg-3 is set:
  248. if player-arg's level is greater than 29:
  249. if player-arg's tool is pickaxe of fortune 1:
  250. send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg
  251. stop
  252. if player-arg's tool is shovel of fortune 1:
  253. send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg
  254. stop
  255. if player-arg's tool is hoe of fortune 1:
  256. send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg
  257. stop
  258. if player-arg's tool is axe of fortune 1:
  259. send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg
  260. stop
  261. if player-arg's tool is pickaxe of fortune 2:
  262. send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg
  263. stop
  264. if player-arg's tool is shovel of fortune 2:
  265. send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg
  266. stop
  267. if player-arg's tool is hoe of fortune 2:
  268. send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg
  269. stop
  270. if player-arg's tool is axe of fortune 2:
  271. send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg
  272. stop
  273. if player-arg's tool is pickaxe of fortune 3:
  274. send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg
  275. stop
  276. if player-arg's tool is shovel of fortune 3:
  277. send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg
  278. stop
  279. if player-arg's tool is hoe of fortune 3:
  280. send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg
  281. stop
  282. if player-arg's tool is axe of fortune 3:
  283. send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg
  284. stop
  285. else:
  286. enchant the player-arg's tool with silk touch 1
  287. remove 30 from player-arg's level
  288. send "&aPomyslnie dodano enchant." to player-arg
  289. stop
  290. else:
  291. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  292. stop
  293. if arg-1 is "sharpness":
  294. if arg-2 is "1":
  295. if arg-3 is set:
  296. if player-arg's level is greater than 4:
  297. enchant the player-arg's tool with sharpness 1
  298. remove 5 from player-arg's level
  299. send "&aPomyslnie dodano enchant." to player-arg
  300. stop
  301. else:
  302. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  303. stop
  304. if arg-2 is "2":
  305. if arg-3 is set:
  306. if player-arg's level is greater than 9:
  307. enchant the player-arg's tool with sharpness 2
  308. remove 10 from player-arg's level
  309. send "&aPomyslnie dodano enchant." to player-arg
  310. stop
  311. else:
  312. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  313. stop
  314. if arg-2 is "3":
  315. if arg-3 is set:
  316. if player-arg's level is greater than 14:
  317. enchant the player-arg's tool with sharpness 3
  318. remove 15 from player-arg's level
  319. send "&aPomyslnie dodano enchant." to player-arg
  320. stop
  321. else:
  322. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  323. stop
  324. if arg-2 is "4":
  325. if arg-3 is set:
  326. if player-arg's level is greater than 24:
  327. enchant the player-arg's tool with sharpness 4
  328. remove 25 from player-arg's level
  329. send "&aPomyslnie dodano enchant." to player-arg
  330. stop
  331. else:
  332. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  333. stop
  334. if arg-2 is "5":
  335. if arg-3 is set:
  336. if player-arg's level is greater than 34:
  337. enchant the player-arg's tool with sharpness 5
  338. remove 35 from player-arg's level
  339. send "&aPomyslnie dodano enchant." to player-arg
  340. stop
  341. else:
  342. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  343. stop
  344. if arg-1 is "fireaspect":
  345. if arg-2 is "1":
  346. if arg-3 is set:
  347. if player-arg's level is greater than 19:
  348. enchant the player-arg's tool with fire aspect 1
  349. remove 20 from player-arg's level
  350. send "&aPomyslnie dodano enchant." to player-arg
  351. stop
  352. else:
  353. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  354. stop
  355. if arg-2 is "2":
  356. if arg-3 is set:
  357. if player-arg's level is greater than 39:
  358. enchant the player-arg's tool with fire aspect 2
  359. remove 40 from player-arg's level
  360. send "&aPomyslnie dodano enchant." to player-arg
  361. stop
  362. else:
  363. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  364. stop
  365. if arg-1 is "looting":
  366. if arg-2 is "1":
  367. if arg-3 is set:
  368. if player-arg's level is greater than 9:
  369. enchant the player-arg's tool with looting 1
  370. remove 10 from player-arg's level
  371. send "&aPomyslnie dodano enchant." to player-arg
  372. stop
  373. else:
  374. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  375. stop
  376. if arg-2 is "2":
  377. if arg-3 is set:
  378. if player-arg's level is greater than 19:
  379. enchant the player-arg's tool with looting 2
  380. remove 20 from player-arg's level
  381. send "&aPomyslnie dodano enchant." to player-arg
  382. stop
  383. else:
  384. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  385. stop
  386. if arg-2 is "3":
  387. if arg-3 is set:
  388. if player-arg's level is greater than 29:
  389. enchant the player-arg's tool with looting 3
  390. remove 30 from player-arg's level
  391. send "&aPomyslnie dodano enchant." to player-arg
  392. stop
  393. else:
  394. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  395. stop
  396. if arg-1 is "protection":
  397. if arg-2 is "1":
  398. if arg-3 is set:
  399. if player-arg's level is greater than 4:
  400. enchant the player-arg's tool with protection 1
  401. remove 5 from player-arg's level
  402. send "&aPomyslnie dodano enchant." to player-arg
  403. stop
  404. else:
  405. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  406. stop
  407. if arg-2 is "2":
  408. if arg-3 is set:
  409. if player-arg's level is greater than 9:
  410. enchant the player-arg's tool with protection 2
  411. remove 10 from player-arg's level
  412. send "&aPomyslnie dodano enchant." to player-arg
  413. stop
  414. else:
  415. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  416. stop
  417. if arg-2 is "3":
  418. if arg-3 is set:
  419. if player-arg's level is greater than 19:
  420. enchant the player-arg's tool with protection 3
  421. remove 20 from player-arg's level
  422. send "&aPomyslnie dodano enchant." to player-arg
  423. stop
  424. else:
  425. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  426. stop
  427. if arg-2 is "4":
  428. if arg-3 is set:
  429. if player-arg's level is greater than 29:
  430. enchant the player-arg's tool with protection 4
  431. remove 30 from player-arg's level
  432. send "&aPomyslnie dodano enchant." to player-arg
  433. stop
  434. else:
  435. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  436. stop
  437. if arg-1 is "featherfalling":
  438. if arg-2 is "1":
  439. if arg-3 is set:
  440. if player-arg's level is greater than 4:
  441. enchant the player-arg's tool with feather falling 1
  442. remove 5 from player-arg's level
  443. send "&aPomyslnie dodano enchant." to player-arg
  444. stop
  445. else:
  446. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  447. stop
  448. if arg-2 is "2":
  449. if arg-3 is set:
  450. if player-arg's level is greater than 9:
  451. enchant the player-arg's tool with feather falling 2
  452. remove 10 from player-arg's level
  453. send "&aPomyslnie dodano enchant." to player-arg
  454. stop
  455. else:
  456. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  457. stop
  458. if arg-2 is "3":
  459. if arg-3 is set:
  460. if player-arg's level is greater than 19:
  461. enchant the player-arg's tool with feather falling 3
  462. remove 20 from player-arg's level
  463. send "&aPomyslnie dodano enchant." to player-arg
  464. stop
  465. else:
  466. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  467. stop
  468. if arg-2 is "4":
  469. if arg-3 is set:
  470. if player-arg's level is greater than 29:
  471. enchant the player-arg's tool with feather falling 4
  472. remove 30 from player-arg's level
  473. send "&aPomyslnie dodano enchant." to player-arg
  474. stop
  475. else:
  476. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  477. stop
  478. if arg-1 is "power":
  479. if arg-2 is "1":
  480. if arg-3 is set:
  481. if player-arg's level is greater than 4:
  482. enchant the player-arg's tool with power 1
  483. remove 5 from player-arg's level
  484. send "&aPomyslnie dodano enchant." to player-arg
  485. stop
  486. else:
  487. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  488. stop
  489. if arg-2 is "2":
  490. if arg-3 is set:
  491. if player-arg's level is greater than 9:
  492. enchant the player-arg's tool with power 2
  493. remove 10 from player-arg's level
  494. send "&aPomyslnie dodano enchant." to player-arg
  495. stop
  496. else:
  497. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  498. stop
  499. if arg-2 is "3":
  500. if arg-3 is set:
  501. if player-arg's level is greater than 14:
  502. enchant the player-arg's tool with power 3
  503. remove 15 from player-arg's level
  504. send "&aPomyslnie dodano enchant." to player-arg
  505. stop
  506. else:
  507. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  508. stop
  509. if arg-2 is "4":
  510. if arg-3 is set:
  511. if player-arg's level is greater than 24:
  512. enchant the player-arg's tool with power 4
  513. remove 25 from player-arg's level
  514. send "&aPomyslnie dodano enchant." to player-arg
  515. stop
  516. else:
  517. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  518. stop
  519. if arg-2 is "5":
  520. if arg-3 is set:
  521. if player-arg's level is greater than 34:
  522. enchant the player-arg's tool with power 5
  523. remove 35 from player-arg's level
  524. send "&aPomyslnie dodano enchant." to player-arg
  525. stop
  526. else:
  527. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  528. stop
  529. if arg-1 is "infinity":
  530. if arg-2 is "1":
  531. if arg-3 is set:
  532. if player-arg's level is greater than 29:
  533. enchant the player-arg's tool with infinity 1
  534. remove 30 from player-arg's level
  535. send "&aPomyslnie dodano enchant." to player-arg
  536. stop
  537. else:
  538. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  539. stop
  540. if arg-1 is "flame":
  541. if arg-2 is "1":
  542. if arg-3 is set:
  543. if player-arg's level is greater than 29:
  544. enchant the player-arg's tool with flame 1
  545. remove 30 from player-arg's level
  546. send "&aPomyslnie dodano enchant." to player-arg
  547. stop
  548. else:
  549. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  550. stop
  551. if arg-1 is "knock":
  552. if arg-2 is "1":
  553. if arg-3 is set:
  554. if player-arg's level is greater than 24:
  555. enchant the player-arg's tool with knockback 1
  556. remove 25 from player-arg's level
  557. send "&aPomyslnie dodano enchant." to player-arg
  558. stop
  559. else:
  560. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  561. stop
  562. if arg-2 is "2":
  563. if arg-3 is set:
  564. if player-arg's level is greater than 49:
  565. enchant the player-arg's tool with knockback 2
  566. remove 50 from player-arg's level
  567. send "&aPomyslnie dodano enchant." to player-arg
  568. stop
  569. else:
  570. send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg
  571. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement