Guest User

Enchant !

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