command /ench [] []: trigger: if arg 1 is "eff": if arg 2 is "1" or "2" or "3" or "4" or "5": if player's level is bigger than 9: set {_iexp} to "10*arg-2" remove {_iexp} from player's level execute console command "enchant %player% efficiency %arg-2%" send "&cUlepszono" stop else: send "&4BLAD: &cNie masz tyle LvL!" stop if arg 1 is "for": if arg 2 is "1" or "2" or "3": if player's level is bigger than 19: set {_iexp} to "20*arg-2" remove {_iexp} from player's level execute console command "enchant %player% fortune %arg-2%" send "&cUlepszono" stop else: send "&4BLAD: &cNie masz tyle LvL!" stop if arg 1 is "unb": if arg 2 is "1" or "2" or "3": if player's level is bigger than 9: set {_iexp} to "10*arg-2" remove {_iexp} from player's level execute console command "enchant %player% unbreaking %arg-2%" send "&cUlepszono" stop else: send "&4BLAD: &cNie masz tyle LvL!" stop if arg 1 is "silk": if player's level is bigger than 39: remove 40 from player's level execute console command "enchant %player% silk touch 1" send "&cUlepszono" stop else: send "&4BLAD: &cNie masz tyle LvL!" stop on rightclick on enchantment table: if player's tool is iron pickaxe or gold pickaxe or diamond pickaxe or iron axe or gold axe or diamond axe or iron shovel or gold shovel or diamond shovel: cancel event wait a tick new Inventory "&c&lWYBIERZ ENCHANTY: "; "&c&lWYBIERZ ENCHANTY: ".Inventory.setRow{6}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{1, bookshelf}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{10, bookshelf}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{19, bookshelf}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{28, bookshelf}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{37, bookshelf}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{46, bookshelf}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{9, bookshelf}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{18, bookshelf}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{27, bookshelf}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{36, bookshelf}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{45, bookshelf}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{54, bookshelf}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{2, enchanted book named "&9&lEFFICIENCY 1" with lore "&c10 LVL"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setCommand{2, "ench eff 1"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setExecutor{2, "player"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{3, enchanted book named "&9&lEFFICIENCY 2" with lore "&c20 LVL"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setCommand{3, "ench eff 2"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setExecutor{3, "player"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{4, enchanted book named "&9&lEFFICIENCY 3" with lore "&c30 LVL"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setCommand{4, "ench eff 3"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setExecutor{4, "player"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{5, enchanted book named "&9&lEFFICIENCY 4" with lore "&c40 LVL"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setCommand{5, "ench eff 4"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setExecutor{5, "player"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{6, enchanted book named "&9&lEFFICIENCY 5" with lore "&c50 LVL"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setCommand{6, "ench eff 5"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setExecutor{6, "player"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{11, enchanted book named "&9&lFORTUNE 1" with lore "&c20 LVL"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setCommand{11, "ench for 1"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setExecutor{11, "player"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{12, enchanted book named "&9&lFORTUNE 2" with lore "&c40 LVL"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setCommand{12, "ench for 2"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setExecutor{12, "player"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{13, enchanted book named "&9&lFORTUNE 3" with lore "&c60 LVL"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setCommand{13, "ench for 3"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setExecutor{13, "player"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{20, enchanted book named "&9&lUNBREAKING 1" with lore "&c10 LVL"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setCommand{20, "ench unb 1"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setExecutor{20, "player"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{21, enchanted book named "&9&lUNBREAKING 2" with lore "&c20 LVL"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setCommand{21, "ench unb 2"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setExecutor{21, "player"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{22, enchanted book named "&9&lUNBREAKING 3" with lore "&c30 LVL"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setCommand{22, "ench unb 3"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setExecutor{22, "player"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setItem{29, enchanted book named "&9&lSILK TOUCH" with lore "&c40 LVL"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setCommand{29, "ench silk"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.setExecutor{29, "player"}; "&c&lWYBIERZ ENCHANTY: ".Inventory.display{player}; stop else: cancel event send "&cMozesz Enchantowac Tylko Zelazne, Zlote i Diamentowe Narzedzia!" on break: chance of 15%: set {_a} to random integer from 1 to 3 add {_a} to {punktyench::%player%} command /punkty []: trigger: if arg 1 is not set: send "&aTwoje Punkty Enchantowania To: %{punktyench::%player%}%" stop