on rightclick on enchantment table: cancel event if player's tool is any pickaxe or any Axe or any shovel or any hoe: open chest with 4 rows named "&8&lEnchant" to player set {itemencahnt.%player%} to player's tool wait 1 ticks format slot 0 of player with 1 of Enchanted Book named "&a&lWYDAJNOSC 1" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant efficiency 1 %player%"] format slot 1 of player with 1 of Enchanted Book named "&a&lWYDAJNOSC 2" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant efficiency 2 %player%"] format slot 2 of player with 1 of Enchanted Book named "&a&lWYDAJNOSC 3" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant efficiency 3 %player%"] format slot 3 of player with 1 of Enchanted Book named "&a&lWYDAJNOSC 4" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant efficiency 4 %player%"] format slot 4 of player with 1 of Enchanted Book named "&a&lWYDAJNOSC 5" with lore " &8» &eKoszt: &a55 lvl" to close then run [execute console command "/ienchant efficiency 5 %player%"] format slot 9 of player with 1 of Enchanted Book named "&a&lNIEZNISZCZALNOSC 1" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant unbreaking 1 %player%"] format slot 10 of player with 1 of Enchanted Book named "&a&lNIEZNISZCZALNOSC 2" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant unbreaking 2 %player%"] format slot 11 of player with 1 of Enchanted Book named "&a&lNIEZNISZCZALNOSC 3" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant unbreaking 3 %player%"] format slot 18 of player with 1 of Enchanted Book named "&a&lSZCZESCIE 1" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant fortune 1 %player%"] format slot 19 of player with 1 of Enchanted Book named "&a&lSZCZESCIE 2" with lore " &8» &eKoszt: &a45 lvl" to close then run [execute console command "/ienchant fortune 2 %player%"] format slot 20 of player with 1 of Enchanted Book named "&a&lSZCZESCIE 3" with lore " &8» &eKoszt: &a60 lvl" to close then run [execute console command "/ienchant fortune 3 %player%"] format slot 27 of player with 1 of Enchanted Book named "&a&lJEDWABNY DOTYK 1" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant silktouch 1 %player%"] format slot 35 of player with 1 of Enchanted Book named "&a&lNAPRAWA" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant mending 1 %player%"] stop if player's tool is any sword: set {itemencahnt.%player%} to player's tool open chest with 6 rows named "&8&lEnchant" to player wait 1 ticks format slot 0 of player with 1 of Enchanted Book named "&a&lOSTROSC 1" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant sharpness 1 %player%"] format slot 1 of player with 1 of Enchanted Book named "&a&lOSTROSC 2" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant sharpness 2 %player%"] format slot 2 of player with 1 of Enchanted Book named "&a&lOSTROSC 3" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant sharpness 3 %player%"] format slot 3 of player with 1 of Enchanted Book named "&a&lOSTROSC 4" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant sharpness 4 %player%"] format slot 4 of player with 1 of Enchanted Book named "&a&lOSTROSC 5" with lore " &8» &eKoszt: &a55 lvl" to close then run [execute console command "/ienchant sharpness 5 %player%"] format slot 9 of player with 1 of Enchanted Book named "&a&lNIEZNISZCZALNOSC 1" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant unbreaking 1 %player%"] format slot 10 of player with 1 of Enchanted Book named "&a&lNIEZNISZCZALNOSC 2" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant unbreaking 2 %player%"] format slot 11 of player with 1 of Enchanted Book named "&a&lNIEZNISZCZALNOSC 3" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant unbreaking 3 %player%"] format slot 27 of player with 1 of Enchanted Book named "&a&lZAKLETY OGIEN 1" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant fireaspect 1 %player%"] format slot 28 of player with 1 of Enchanted Book named "&a&lZAKLETY OGIEN 2" with lore " &8» &eKoszt: &a40 lvl" to close then run [execute console command "/ienchant fireaspect 2 %player%"] format slot 18 of player with 1 of Enchanted Book named "&a&lGRABIERZ 1" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant looting 1 %player%"] format slot 19 of player with 1 of Enchanted Book named "&a&lGRABIERZ 2" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant looting 2 %player%"] format slot 20 of player with 1 of Enchanted Book named "&a&lGRABIERZ 3" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant looting 3 %player%"] format slot 36 of player with 1 of Enchanted Book named "&a&lODZRZUT 1" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant knock 1 %player%"] format slot 37 of player with 1 of Enchanted Book named "&a&lODZRZUT 2" with lore " &8» &eKoszt: &a50 lvl" to close then run [execute console command "/ienchant knock 2 %player%"] format slot 45 of player with 1 of Enchanted Book named "&a&lSZEROKIE OSTRZE 1" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant sweepingedge 1 %player%"] format slot 46 of player with 1 of Enchanted Book named "&a&lSZEROKIE OSTRZE 2" with lore " &8» &eKoszt: &a40 lvl" to close then run [execute console command "/ienchant sweepingedge 2 %player%"] format slot 47 of player with 1 of Enchanted Book named "&a&lSZEROKIE OSTRZE 3" with lore " &8» &eKoszt: &a60 lvl" to close then run [execute console command "/ienchant sweepingedge 3 %player%"] format slot 53 of player with 1 of Enchanted Book named "&a&lNAPRAWA" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant mending 1 %player%"] stop if player's tool is trident: set {itemencahnt.%player%} to player's tool open chest with 5 rows named "&8&lEnchant" to player wait 1 ticks format slot 0 of player with 1 of Enchanted Book named "&a&lTORPEDA 1" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant riptide 1 %player%"] format slot 1 of player with 1 of Enchanted Book named "&a&lTORPEDA 2" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant riptide 2 %player%"] format slot 2 of player with 1 of Enchanted Book named "&a&lTORPEDA 3" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant riptide 3 %player%"] format slot 9 of player with 1 of Enchanted Book named "&a&lNIEZNISZCZALNOSC I" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant unbreaking 1 %player%"] format slot 10 of player with 1 of Enchanted Book named "&a&lNIEZNISZCZALNOSC II" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant unbreaking 2 %player%"] format slot 11 of player with 1 of Enchanted Book named "&a&lNIEZNISZCZALNOSC III" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant unbreaking 3 %player%"] format slot 18 of player with 1 of Enchanted Book named "&a&lLOJALNOSC 1" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant loyalty 1 %player%"] format slot 19 of player with 1 of Enchanted Book named "&a&lLOJALNOSC 2" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant loyalty 2 %player%"] format slot 20 of player with 1 of Enchanted Book named "&a&lLOJALNOSC 3" with lore " &8» &eKoszt: &a50 lvl" to close then run [execute console command "/ienchant loyalty 3 %player%"] format slot 27 of player with 1 of Enchanted Book named "&a&lPORAZENIE" with lore " &8» &eKoszt: &a35 lvl" to close then run [execute console command "/ienchant channeling %player%"] format slot 36 of player with 1 of Enchanted Book named "&a&lPRZEBICIE 1" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant impaling 1 %player%"] format slot 37 of player with 1 of Enchanted Book named "&a&lPRZEBICIE 2" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant impaling 2 %player%"] format slot 38 of player with 1 of Enchanted Book named "&a&lPRZEBICIE 3" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant impaling 3 %player%"] format slot 39 of player with 1 of Enchanted Book named "&a&lPRZEBICIE 4" with lore " &8» &eKoszt: &a45 lvl" to close then run [execute console command "/ienchant impaling 4 %player%"] format slot 40 of player with 1 of Enchanted Book named "&a&lPRZEBICIE 5" with lore " &8» &eKoszt: &a60 lvl" to close then run [execute console command "/ienchant impaling 5 %player%"] format slot 44 of player with 1 of Enchanted Book named "&a&lNAPRAWA" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant mending 1 %player%"] stop if player's tool is any helmet or any chestplate or any leggings or turtle helmet: set {itemencahnt.%player%} to player's tool open chest with 4 rows named "&8&lEnchant" to player wait 1 ticks format slot 0 of player with 1 of Enchanted Book named "&a&lOCHRONA 1" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant protection 1 %player%"] format slot 1 of player with 1 of Enchanted Book named "&a&lOCHRONA 2" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant protection 2 %player%"] format slot 2 of player with 1 of Enchanted Book named "&a&lOCHRONA 2" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant protection 3 %player%"] format slot 3 of player with 1 of Enchanted Book named "&a&lOCHRONA 4" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant protection 4 %player%"] format slot 9 of player with 1 of Enchanted Book named "&a&lNIEZNISZCZALNOSC 1" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant unbreaking 1 %player%"] format slot 10 of player with 1 of Enchanted Book named "&a&lNIEZNISZCZALNOSC 2" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant unbreaking 2 %player%"] format slot 11 of player with 1 of Enchanted Book named "&a&lNIEZNISZCZALNOSC 3" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant unbreaking 3 %player%"] format slot 18 of player with 1 of Enchanted Book named "&a&lCIERNIE 1" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant thorns 1 %player%"] format slot 19 of player with 1 of Enchanted Book named "&a&lCIERNIE 2" with lore " &8» &eKoszt: &a35 lvl" to close then run [execute console command "/ienchant thorns 2 %player%"] format slot 20 of player with 1 of Enchanted Book named "&a&lCIERNIE 3" with lore " &8» &eKoszt: &a45 lvl" to close then run [execute console command "/ienchant thorns 3 %player%"] format slot 27 of player with 1 of Enchanted Book named "&a&lODDYCHANIE 1" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant respiration 1 %player%"] format slot 28 of player with 1 of Enchanted Book named "&a&lODDYCHANIE 2" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant respiration 2 %player%"] format slot 29 of player with 1 of Enchanted Book named "&a&lODDYCHANIE 3" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant respiration 3 %player%"] format slot 35 of player with 1 of Enchanted Book named "&a&lNAPRAWA" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant mending 1 %player%"] stop if player's tool is any boots: set {itemencahnt.%player%} to player's tool open chest with 6 rows named "&8&lEnchant" to player wait 1 ticks format slot 0 of player with 1 of Enchanted Book named "&a&lOCHRONA 1" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant protection 1 %player%"] format slot 1 of player with 1 of Enchanted Book named "&a&lOCHRONA 2" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant protection 2 %player%"] format slot 2 of player with 1 of Enchanted Book named "&a&lOCHRONA 3" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant protection 3 %player%"] format slot 3 of player with 1 of Enchanted Book named "&a&lOCHRONA 4" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant protection 4 %player%"] format slot 18 of player with 1 of Enchanted Book named "&a&lNIEZNISZCZALNOSC 1" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant unbreaking 1 %player%"] format slot 19 of player with 1 of Enchanted Book named "&a&lNIEZNISZCZALNOSC 2" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant unbreaking 2 %player%"] format slot 20 of player with 1 of Enchanted Book named "&a&lNIEZNISZCZALNOSC 3" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant unbreaking 3 %player%"] format slot 9 of player with 1 of Enchanted Book named "&a&lPOWOLNE OPADANIE 1" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant featherfalling 1 %player%"] format slot 10 of player with 1 of Enchanted Book named "&a&lPOWOLNE OPADANIE 2" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant featherfalling 2 %player%"] format slot 11 of player with 1 of Enchanted Book named "&a&lPOWOLNE OPADANIE 3" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant featherfalling 3 %player%"] format slot 12 of player with 1 of Enchanted Book named "&a&lPOWOLNE OPADANIE 4" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant featherfalling 4 %player%"] format slot 27 of player with 1 of Enchanted Book named "&a&lCIERNIE 1" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant thorns 1 %player%"] format slot 28 of player with 1 of Enchanted Book named "&a&lCIERNIE 2" with lore " &8» &eKoszt: &a35 lvl" to close then run [execute console command "/ienchant thorns 2 %player%"] format slot 29 of player with 1 of Enchanted Book named "&a&lCIERNIE 3" with lore " &8» &eKoszt: &a45 lvl" to close then run [execute console command "/ienchant thorns 3 %player%"] format slot 36 of player with 1 of Enchanted Book named "&a&lGLEBINOWY WEDROWIEC 1" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant depthstrider 1 %player%"] format slot 37 of player with 1 of Enchanted Book named "&a&lGLEBINOWY WEDROWIEC 2" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant depthstrider 2 %player%"] format slot 38 of player with 1 of Enchanted Book named "&a&lGLEBINOWY WEDROWIEC 3" with lore " &8» &eKoszt: &a35 lvl" to close then run [execute console command "/ienchant depthstrider 3 %player%"] format slot 45 of player with 1 of Enchanted Book named "&a&lMROZNY PIECHUR 1" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant frostwalker 1 %player%"] format slot 46 of player with 1 of Enchanted Book named "&a&lMROZNY PIECHUR 2" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant frostwalker 2 %player%"] format slot 53 of player with 1 of Enchanted Book named "&a&lNAPAWA" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant mending 1 %player%"] stop if player's tool is bow: set {itemencahnt.%player%} to player's tool open chest with 6 rows named "&8&lEnchant" to player wait 1 ticks format slot 0 of player with 1 of Enchanted Book named "&a&lMOC 1" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant power 1 %player%"] format slot 1 of player with 1 of Enchanted Book named "&a&lMOC 2" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant power 2 %player%"] format slot 2 of player with 1 of Enchanted Book named "&a&lMOC 3" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant power 3 %player%"] format slot 3 of player with 1 of Enchanted Book named "&a&lMOC 4" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant power 4 %player%"] format slot 4 of player with 1 of Enchanted Book named "&a&lMOC 5" with lore " &8» &eKoszt: &a35 lvl" to close then run [execute console command "/ienchant power 5 %player%"] format slot 9 of player with 1 of Enchanted Book named "&a&lNIEZNISZCZALNOSC 1" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant unbreaking 1 %player%"] format slot 10 of player with 1 of Enchanted Book named "&a&lNIEZNISZCZALNOSC 2" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant unbreaking 2 %player%"] format slot 11 of player with 1 of Enchanted Book named "&a&lNIEZNISZCZALNOSC 3" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant unbreaking 3 %player%"] format slot 18 of player with 1 of Enchanted Book named "&a&lNIESKACZONOSC 1" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant infinity 1 %player%"] format slot 27 of player with 1 of Enchanted Book named "&a&lPLOMIEN 1" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant flame 1 %player%"] format slot 36 of player with 1 of Enchanted Book named "&a&lGRABIERZ 1" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant looting 1 %player%"] format slot 37 of player with 1 of Enchanted Book named "&a&lGRABIERZ 2" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant looting 2 %player%"] format slot 38 of player with 1 of Enchanted Book named "&a&lGRABIERZ 3" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant looting 3 %player%"] format slot 45 of player with 1 of Enchanted Book named "&a&lUDERZENIE 1" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant punch 1 %player%"] format slot 46 of player with 1 of Enchanted Book named "&a&lUDERZENIE 2" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant punch 2 %player%"] format slot 53 of player with 1 of Enchanted Book named "&a&lNAPRAWA" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant mending 1 %player%"] stop else: send "&4BLAD: &cKliknij prawym przyciskiem myszy na enchant przedmiotem ktory chcesz enchantowac." to player command /ienchant [] [] []: permission: cmd.ienchant trigger: if player-arg's tool is not {itemencahnt.%player-arg%}: send "&cBLAD: &4zly przedmiot wejdz do enchantu jeszcze raz nie zmieniajac przedmiotu." to player-arg stop if player-arg's tool is {itemencahnt.%player-arg%}: if arg-1 is "efficiency": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 4: enchant the player-arg's tool with efficiency 1 remove 5 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "2": if arg-3 is set: if player-arg's level is greater than 9: enchant the player-arg's tool with efficiency 2 remove 10 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "3": if arg-3 is set: if player-arg's level is greater than 14: enchant the player-arg's tool with efficiency 3 remove 15 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "4": if arg-3 is set: if player-arg's level is greater than 24: enchant the player-arg's tool with efficiency 4 remove 25 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "5": if arg-3 is set: if player-arg's level is greater than 54: enchant the player-arg's tool with efficiency 5 remove 55 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-1 is "unbreaking": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 4: enchant the player-arg's tool with unbreaking 1 remove 5 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "2": if arg-3 is set: if player-arg's level is greater than 14: enchant the player-arg's tool with unbreaking 2 remove 15 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "3": if arg-3 is set: if player-arg's level is greater than 24: enchant the player-arg's tool with unbreaking 3 remove 25 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-1 is "fortune": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 14: if player-arg's tool is pickaxe of silk touch 1: send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg stop if player-arg's tool is shovel of silk touch 1: send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg stop if player-arg's tool is hoe of silk touch 1: send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg stop if player-arg's tool is axe of silk touch 1: send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg stop else: enchant the player-arg's tool with fortune 1 remove 15 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "2": if arg-3 is set: if player-arg's level is greater than 29: if player-arg's tool is pickaxe of silk touch 1: send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg stop if player-arg's tool is shovel of silk touch 1: send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg stop if player-arg's tool is hoe of silk touch 1: send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg stop if player-arg's tool is axe of silk touch 1: send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg stop else: enchant the player-arg's tool with fortune 2 remove 30 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "3": if arg-3 is set: if player-arg's level is greater than 59: if player-arg's tool is pickaxe of silk touch 1: send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg stop if player-arg's tool is shovel of silk touch 1: send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg stop if player-arg's tool is hoe of silk touch 1: send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg stop if player-arg's tool is axe of silk touch 1: send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg stop else: enchant the player-arg's tool with fortune 3 remove 60 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-1 is "silktouch": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 29: if player-arg's tool is pickaxe of fortune 1: send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg stop if player-arg's tool is shovel of fortune 1: send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg stop if player-arg's tool is hoe of fortune 1: send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg stop if player-arg's tool is axe of fortune 1: send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg stop if player-arg's tool is pickaxe of fortune 2: send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg stop if player-arg's tool is shovel of fortune 2: send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg stop if player-arg's tool is hoe of fortune 2: send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg stop if player-arg's tool is axe of fortune 2: send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg stop if player-arg's tool is pickaxe of fortune 3: send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg stop if player-arg's tool is shovel of fortune 3: send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg stop if player-arg's tool is hoe of fortune 3: send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg stop if player-arg's tool is axe of fortune 3: send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg stop else: enchant the player-arg's tool with silk touch 1 remove 30 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-1 is "sharpness": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 4: enchant the player-arg's tool with sharpness 1 remove 5 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "2": if arg-3 is set: if player-arg's level is greater than 9: enchant the player-arg's tool with sharpness 2 remove 10 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "3": if arg-3 is set: if player-arg's level is greater than 14: enchant the player-arg's tool with sharpness 3 remove 15 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "4": if arg-3 is set: if player-arg's level is greater than 24: enchant the player-arg's tool with sharpness 4 remove 25 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "5": if arg-3 is set: if player-arg's level is greater than 54: enchant the player-arg's tool with sharpness 5 remove 55 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-1 is "fireaspect": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 19: enchant the player-arg's tool with fire aspect 1 remove 20 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "2": if arg-3 is set: if player-arg's level is greater than 39: enchant the player-arg's tool with fire aspect 2 remove 40 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-1 is "looting": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 9: enchant the player-arg's tool with looting 1 remove 10 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "2": if arg-3 is set: if player-arg's level is greater than 19: enchant the player-arg's tool with looting 2 remove 20 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "3": if arg-3 is set: if player-arg's level is greater than 29: enchant the player-arg's tool with looting 3 remove 30 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-1 is "protection": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 4: enchant the player-arg's tool with protection 1 remove 5 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "2": if arg-3 is set: if player-arg's level is greater than 9: enchant the player-arg's tool with protection 2 remove 10 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "3": if arg-3 is set: if player-arg's level is greater than 19: enchant the player-arg's tool with protection 3 remove 20 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "4": if arg-3 is set: if player-arg's level is greater than 29: enchant the player-arg's tool with protection 4 remove 30 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-1 is "featherfalling": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 4: enchant the player-arg's tool with feather falling 1 remove 5 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "2": if arg-3 is set: if player-arg's level is greater than 9: enchant the player-arg's tool with feather falling 2 remove 10 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "3": if arg-3 is set: if player-arg's level is greater than 19: enchant the player-arg's tool with feather falling 3 remove 20 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "4": if arg-3 is set: if player-arg's level is greater than 29: enchant the player-arg's tool with feather falling 4 remove 30 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-1 is "power": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 4: enchant the player-arg's tool with power 1 remove 5 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "2": if arg-3 is set: if player-arg's level is greater than 9: enchant the player-arg's tool with power 2 remove 10 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "3": if arg-3 is set: if player-arg's level is greater than 14: enchant the player-arg's tool with power 3 remove 15 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "4": if arg-3 is set: if player-arg's level is greater than 24: enchant the player-arg's tool with power 4 remove 25 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "5": if arg-3 is set: if player-arg's level is greater than 34: enchant the player-arg's tool with power 5 remove 35 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-1 is "infinity": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 29: enchant the player-arg's tool with infinity 1 remove 30 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-1 is "flame": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 29: enchant the player-arg's tool with flame 1 remove 30 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-1 is "knock": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 24: enchant the player-arg's tool with knockback 1 remove 25 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "2": if arg-3 is set: if player-arg's level is greater than 49: enchant the player-arg's tool with knockback 2 remove 50 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-1 is "sweepingedge": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 24: enchant the player-arg's tool with sweeping edge 1 remove 25 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "2": if arg-3 is set: if player-arg's level is greater than 39: enchant the player-arg's tool with sweeping edge 2 remove 40 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "3": if arg-3 is set: if player-arg's level is greater than 59: enchant the player-arg's tool with sweeping edge 3 remove 60 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-1 is "mending": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 19: enchant the player-arg's tool with mending 1 remove 20 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-1 is "thorns": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 19: enchant the player-arg's tool with thorns 1 remove 20 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "2": if arg-3 is set: if player-arg's level is greater than 34: enchant the player-arg's tool with thorns 2 remove 35 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "3": if arg-3 is set: if player-arg's level is greater than 44: enchant the player-arg's tool with thorns 3 remove 45 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-1 is "respiration": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 9: enchant the player-arg's tool with respiration 1 remove 10 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "2": if arg-3 is set: if player-arg's level is greater than 19: enchant the player-arg's tool with respiration 2 remove 20 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "3": if arg-3 is set: if player-arg's level is greater than 29: enchant the player-arg's tool with respiration 3 remove 30 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-1 is "depthstrider": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 14: enchant the player-arg's tool with depth strider 1 remove 15 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "2": if arg-3 is set: if player-arg's level is greater than 24: enchant the player-arg's tool with depth strider 2 remove 25 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "3": if arg-3 is set: if player-arg's level is greater than 34: enchant the player-arg's tool with depth strider 3 remove 35 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-1 is "frostwalker": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 19: enchant the player-arg's tool with frost walker 1 remove 20 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "2": if arg-3 is set: if player-arg's level is greater than 29: enchant the player-arg's tool with frost walker 2 remove 30 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-1 is "loyalty": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 19: enchant the player-arg's tool with loyalty 1 remove 20 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "2": if arg-3 is set: if player-arg's level is greater than 29: enchant the player-arg's tool with loyalty 2 remove 30 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "3": if arg-3 is set: if player-arg's level is greater than 49: enchant the player-arg's tool with loyalty 3 remove 50 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-1 is "riptide": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 4: enchant the player-arg's tool with riptide 1 remove 5 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "2": if arg-3 is set: if player-arg's level is greater than 9: enchant the player-arg's tool with riptide 2 remove 10 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "3": if arg-3 is set: if player-arg's level is greater than 14: enchant the player-arg's tool with riptide 3 remove 15 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-1 is "chaneling": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 34: enchant the player-arg's tool with channeling 1 remove 35 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-1 is "impaling": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 4: enchant the player-arg's tool with impaling 1 remove 5 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "2": if arg-3 is set: if player-arg's level is greater than 14: enchant the player-arg's tool with impaling 2 remove 15 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "3": if arg-3 is set: if player-arg's level is greater than 29: enchant the player-arg's tool with impaling 3 remove 30 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "4": if arg-3 is set: if player-arg's level is greater than 44: enchant the player-arg's tool with impaling 4 remove 45 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "5": if arg-3 is set: if player-arg's level is greater than 59: enchant the player-arg's tool with impaling 5 remove 60 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-1 is "punch": if arg-2 is "1": if arg-3 is set: if player-arg's level is greater than 14: enchant the player-arg's tool with punch 1 remove 15 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop if arg-2 is "2": if arg-3 is set: if player-arg's level is greater than 29: enchant the player-arg's tool with punch 2 remove 30 from player-arg's level send "&aPomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop