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 1 of player with 1 of Enchanted Book named "&2&lWYDAJNOSC I" with lore " &8» &7Koszt: &65 lvl" to close then run [execute console command "/ienchant efficiency 1 %player%"] format slot 2 of player with 1 of Enchanted Book named "&2&lWYDAJNOSC II" with lore " &8» &7Koszt: &610 lvl" to close then run [execute console command "/ienchant efficiency 2 %player%"] format slot 3 of player with 1 of Enchanted Book named "&2&lWYDAJNOSC III" with lore " &8» &7Koszt: &615 lvl" to close then run [execute console command "/ienchant efficiency 3 %player%"] format slot 4 of player with 1 of Enchanted Book named "&2&lWYDAJNOSC IV" with lore " &8» &7Koszt: &625 lvl" to close then run [execute console command "/ienchant efficiency 4 %player%"] format slot 5 of player with 1 of Enchanted Book named "&2&lWYDAJNOSC V" with lore " &8» &7Koszt: &635 lvl" to close then run [execute console command "/ienchant efficiency 5 %player%"] format slot 10 of player with 1 of Enchanted Book named "&2&lNIEZNISZCZALNOSC I" with lore " &8» &7Koszt: &65 lvl" to close then run [execute console command "/ienchant unbreaking 1 %player%"] format slot 11 of player with 1 of Enchanted Book named "&2&lNIEZNISZCZALNOSC II" with lore " &8» &7Koszt: &615 lvl" to close then run [execute console command "/ienchant unbreaking 2 %player%"] format slot 12 of player with 1 of Enchanted Book named "&2&lNIEZNISZCZALNOSC III" with lore " &8» &7Koszt: &625 lvl" to close then run [execute console command "/ienchant unbreaking 3 %player%"] format slot 19 of player with 1 of Enchanted Book named "&2&lSZCZESCIE I" with lore " &8» &7Koszt: &615 lvl" to close then run [execute console command "/ienchant fortune 1 %player%"] format slot 20 of player with 1 of Enchanted Book named "&2&lSZCZESCIE II" with lore " &8» &7Koszt: &630 lvl" to close then run [execute console command "/ienchant fortune 2 %player%"] format slot 21 of player with 1 of Enchanted Book named "&2&lSZCZESCIE III" with lore " &8» &7Koszt: &645 lvl" to close then run [execute console command "/ienchant fortune 3 %player%"] format slot 28 of player with 1 of Enchanted Book named "&2&lJEDWABNY DOTYK I" with lore " &8» &7Koszt: &630 lvl" to close then run [execute console command "/ienchant silktouch 1 %player%"] format slot 0 of player with bookshelf to be unstealable format slot 8 of player with bookshelf to be unstealable format slot 9 of player with bookshelf to be unstealable format slot 17 of player with bookshelf to be unstealable format slot 18 of player with bookshelf to be unstealable format slot 26 of player with bookshelf to be unstealable format slot 27 of player with bookshelf to be unstealable format slot 35 of player with bookshelf to be unstealable stop if player's tool is any sword: set {itemencahnt.%player%} to player's tool open chest with 5 rows named "&8&lEnchant" to player wait 1 ticks format slot 1 of player with 1 of Enchanted Book named "&2&lOSTROSC I" with lore " &8» &7Koszt: &65 lvl" to close then run [execute console command "/ienchant sharpness 1 %player%"] format slot 2 of player with 1 of Enchanted Book named "&2&lOSTROSC II" with lore " &8» &7Koszt: &610 lvl" to close then run [execute console command "/ienchant sharpness 2 %player%"] format slot 3 of player with 1 of Enchanted Book named "&2&lOSTROSC III" with lore " &8» &7Koszt: &615 lvl" to close then run [execute console command "/ienchant sharpness 3 %player%"] format slot 4 of player with 1 of Enchanted Book named "&2&lOSTROSC IV" with lore " &8» &7Koszt: &625 lvl" to close then run [execute console command "/ienchant sharpness 4 %player%"] format slot 5 of player with 1 of Enchanted Book named "&2&lOSTROSC V" with lore " &8» &7Koszt: &635 lvl" to close then run [execute console command "/ienchant sharpness 5 %player%"] format slot 10 of player with 1 of Enchanted Book named "&2&lNIEZNISZCZALNOSC I" with lore " &8» &7Koszt: &65 lvl" to close then run [execute console command "/ienchant unbreaking 1 %player%"] format slot 11 of player with 1 of Enchanted Book named "&2&lNIEZNISZCZALNOSC II" with lore " &8» &7Koszt: &615 lvl" to close then run [execute console command "/ienchant unbreaking 2 %player%"] format slot 12 of player with 1 of Enchanted Book named "&2&lNIEZNISZCZALNOSC III" with lore " &8» &7Koszt: &625 lvl" to close then run [execute console command "/ienchant unbreaking 3 %player%"] format slot 28 of player with 1 of Enchanted Book named "&2&lZAKLETY OGIEN I" with lore " &8» &7Koszt: &620 lvl" to close then run [execute console command "/ienchant fireaspect 1 %player%"] format slot 29 of player with 1 of Enchanted Book named "&2&lZAKLETY OGIEN II" with lore " &8» &7Koszt: &640 lvl" to close then run [execute console command "/ienchant fireaspect 2 %player%"] format slot 19 of player with 1 of Enchanted Book named "&2&lGRABIERZ I" with lore " &8» &7Koszt: &610 lvl" to close then run [execute console command "/ienchant looting 1 %player%"] format slot 20 of player with 1 of Enchanted Book named "&2&lGRABIERZ II" with lore " &8» &7Koszt: &620 lvl" to close then run [execute console command "/ienchant looting 2 %player%"] format slot 21 of player with 1 of Enchanted Book named "&2&lGRABIERZ III" with lore " &8» &7Koszt: &630 lvl" to close then run [execute console command "/ienchant looting 3 %player%"] format slot 37 of player with 1 of Enchanted Book named "&2&lODZRZUT 1" with lore " &8» &7Koszt: &625 lvl" to close then run [execute console command "/ienchant knock 1 %player%"] format slot 38 of player with 1 of Enchanted Book named "&2&lODZRZUT 2" with lore " &8» &7Koszt: &650 lvl" to close then run [execute console command "/ienchant knock 2 %player%"] format slot 0 of player with bookshelf to be unstealable format slot 8 of player with bookshelf to be unstealable format slot 9 of player with bookshelf to be unstealable format slot 17 of player with bookshelf to be unstealable format slot 18 of player with bookshelf to be unstealable format slot 26 of player with bookshelf to be unstealable format slot 27 of player with bookshelf to be unstealable format slot 35 of player with bookshelf to be unstealable format slot 36 of player with bookshelf to be unstealable format slot 44 of player with bookshelf to be unstealable stop if player's tool is any helmet or any chestplate or any leggings: set {itemencahnt.%player%} to player's tool open chest with 4 rows named "&8&lEnchant" to player wait 1 ticks format slot 1 of player with 1 of Enchanted Book named "&2&lOCHRONA I" with lore " &8» &7Koszt: &65 lvl" to close then run [execute console command "/ienchant protection 1 %player%"] format slot 2 of player with 1 of Enchanted Book named "&2&lOCHRONA II" with lore " &8» &7Koszt: &610 lvl" to close then run [execute console command "/ienchant protection 2 %player%"] format slot 3 of player with 1 of Enchanted Book named "&2&lOCHRONA III" with lore " &8» &7Koszt: &620 lvl" to close then run [execute console command "/ienchant protection 3 %player%"] format slot 4 of player with 1 of Enchanted Book named "&2&lOCHRONA IV" with lore " &8» &7Koszt: &630 lvl" to close then run [execute console command "/ienchant protection 4 %player%"] format slot 10 of player with 1 of Enchanted Book named "&2&lNIEZNISZCZALNOSC I" with lore " &8» &7Koszt: &65 lvl" to close then run [execute console command "/ienchant unbreaking 1 %player%"] format slot 11 of player with 1 of Enchanted Book named "&2&lNIEZNISZCZALNOSC II" with lore " &8» &7Koszt: &615 lvl" to close then run [execute console command "/ienchant unbreaking 2 %player%"] format slot 12 of player with 1 of Enchanted Book named "&2&lNIEZNISZCZALNOSC III" with lore " &8» &7Koszt: &625 lvl" to close then run [execute console command "/ienchant unbreaking 3 %player%"] format slot 0 of player with bookshelf to be unstealable format slot 8 of player with bookshelf to be unstealable format slot 9 of player with bookshelf to be unstealable format slot 17 of player with bookshelf to be unstealable format slot 18 of player with bookshelf to be unstealable format slot 26 of player with bookshelf to be unstealable format slot 27 of player with bookshelf to be unstealable format slot 35 of player with bookshelf to be unstealable stop if player's tool is any boots: set {itemencahnt.%player%} to player's tool open chest with 4 rows named "&8&lEnchant" to player wait 1 ticks format slot 1 of player with 1 of Enchanted Book named "&2&lOCHRONA I" with lore " &8» &7Koszt: &65 lvl" to close then run [execute console command "/ienchant protection 1 %player%"] format slot 2 of player with 1 of Enchanted Book named "&2&lOCHRONA II" with lore " &8» &7Koszt: &610 lvl" to close then run [execute console command "/ienchant protection 2 %player%"] format slot 3 of player with 1 of Enchanted Book named "&2&lOCHRONA III" with lore " &8» &7Koszt: &620 lvl" to close then run [execute console command "/ienchant protection 3 %player%"] format slot 4 of player with 1 of Enchanted Book named "&2&lOCHRONA IV" with lore " &8» &7Koszt: &630 lvl" to close then run [execute console command "/ienchant protection 4 %player%"] format slot 19 of player with 1 of Enchanted Book named "&2&lNIEZNISZCZALNOSC I" with lore " &8» &7Koszt: &65 lvl" to close then run [execute console command "/ienchant unbreaking 1 %player%"] format slot 20 of player with 1 of Enchanted Book named "&2&lNIEZNISZCZALNOSC II" with lore " &8» &7Koszt: &615 lvl" to close then run [execute console command "/ienchant unbreaking 2 %player%"] format slot 21 of player with 1 of Enchanted Book named "&2&lNIEZNISZCZALNOSC III" with lore " &8» &7Koszt: &625 lvl" to close then run [execute console command "/ienchant unbreaking 3 %player%"] format slot 10 of player with 1 of Enchanted Book named "&2&lPOWOLNE OPADANIE I" with lore " &8» &7Koszt: &65 lvl" to close then run [execute console command "/ienchant featherfalling 1 %player%"] format slot 11 of player with 1 of Enchanted Book named "&2&lPOWOLNE OPADANIE II" with lore " &8» &7Koszt: &610 lvl" to close then run [execute console command "/ienchant featherfalling 2 %player%"] format slot 12 of player with 1 of Enchanted Book named "&2&lPOWOLNE OPADANIE III" with lore " &8» &7Koszt: &620 lvl" to close then run [execute console command "/ienchant featherfalling 3 %player%"] format slot 13 of player with 1 of Enchanted Book named "&2&lPOWOLNE OPADANIE IV" with lore " &8» &7Koszt: &630 lvl" to close then run [execute console command "/ienchant featherfalling 4 %player%"] format slot 0 of player with bookshelf to be unstealable format slot 8 of player with bookshelf to be unstealable format slot 9 of player with bookshelf to be unstealable format slot 17 of player with bookshelf to be unstealable format slot 18 of player with bookshelf to be unstealable format slot 26 of player with bookshelf to be unstealable format slot 27 of player with bookshelf to be unstealable format slot 35 of player with bookshelf to be unstealable stop if player's tool is bow: set {itemencahnt.%player%} to player's tool open chest with 4 rows named "&8&lEnchant" to player wait 1 ticks format slot 1 of player with 1 of Enchanted Book named "&2&lMOC I" with lore " &8» &7Koszt: &65 lvl" to close then run [execute console command "/ienchant power 1 %player%"] format slot 2 of player with 1 of Enchanted Book named "&2&lMOC II" with lore " &8» &7Koszt: &610 lvl" to close then run [execute console command "/ienchant power 2 %player%"] format slot 3 of player with 1 of Enchanted Book named "&2&lMOC III" with lore " &8» &7Koszt: &615 lvl" to close then run [execute console command "/ienchant power 3 %player%"] format slot 4 of player with 1 of Enchanted Book named "&2&lMOC IV" with lore " &8» &7Koszt: &625 lvl" to close then run [execute console command "/ienchant power 4 %player%"] format slot 5 of player with 1 of Enchanted Book named "&2&lMOC V" with lore " &8» &7Koszt: &635 lvl" to close then run [execute console command "/ienchant power 5 %player%"] format slot 10 of player with 1 of Enchanted Book named "&2&lNIEZNISZCZALNOSC I" with lore " &8» &7Koszt: &65 lvl" to close then run [execute console command "/ienchant unbreaking 1 %player%"] format slot 11 of player with 1 of Enchanted Book named "&2&lNIEZNISZCZALNOSC II" with lore " &8» &7Koszt: &615 lvl" to close then run [execute console command "/ienchant unbreaking 2 %player%"] format slot 12 of player with 1 of Enchanted Book named "&2&lNIEZNISZCZALNOSC III" with lore " &8» &7Koszt: &625 lvl" to close then run [execute console command "/ienchant unbreaking 3 %player%"] format slot 19 of player with 1 of Enchanted Book named "&2&lNIESKACZONOSC I" with lore " &8» &7Koszt: &630 lvl" to close then run [execute console command "/ienchant infinity 1 %player%"] format slot 28 of player with 1 of Enchanted Book named "&2&lPLOMIEN I" with lore " &8» &7Koszt: &630 lvl" to close then run [execute console command "/ienchant flame 1 %player%"] format slot 0 of player with bookshelf to be unstealable format slot 8 of player with bookshelf to be unstealable format slot 9 of player with bookshelf to be unstealable format slot 17 of player with bookshelf to be unstealable format slot 18 of player with bookshelf to be unstealable format slot 26 of player with bookshelf to be unstealable format slot 27 of player with bookshelf to be unstealable format slot 35 of player with bookshelf to be unstealable stop else: send "&4BLAD: &cKliknij lewym 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 efficiency 5 remove 35 from player-arg's level send "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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: 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 45 from player-arg's level send "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 sharpness 5 remove 35 from player-arg's level send "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie 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 "&6Pomyslnie dodano enchant." to player-arg stop else: send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg stop