command /kowal: trigger: if name of player's held item contains "&6&lBRUSH": set {_i} to name of player's tool open chest with 3 rows named "&6Kowal" to player set slot (integers between 0 and 30) of player's current inventory to black stained glass set slot 12 of player's current inventory to blaze rod named {_i} with lore "&c&lTwój Brush" set slot 14 of player's current inventory to blaze rod named {_i} with lore "&3&lWciśnij aby ulepszyć!" and "&e&lSzansa na ulepszenie wynosi 35%%!" else: send "&cNie trzymasz przedmiotu który mogę ulepszyć" to player on inventory click: if inventory name of player's current inventory is "&6Kowal": cancel event if clicked slot is 14: if player is holding blaze rod named "&6&lBRUSH &e&l2x2": chance of 35%: remove blaze rod named "&6&lBRUSH &e&l2x2" from player give player blaze rod named "&6&lBRUSH &e&l4x4" with lore "&6Magiczny przedmiot!" and "" and "&7Uderz w blok, a w jego zasiegu" and "&7zostanie wykopane 4x4 innych bloków!" and "" and "&9+ Ułatwia kopanie" send "&c&lUdało ci się ulepszyć item!" close player's inventory else: remove blaze rod named "&6&lBRUSH &e&l2x2" from player send "&c&lTwój przedmiot się spalił!" close player's inventory if player is holding blaze rod named "&6&lBRUSH &e&l4x4": chance of 35%: remove blaze rod named "&6&lBRUSH &e&l4x4" from player give player blaze rod named "&6&lBRUSH &e&l6x6" with lore "&6Magiczny przedmiot!" and "" and "&7Uderz w blok, a w jego zasiegu" and "&7zostanie wykopane 6x6 innych bloków!" and "" and "&9+ Ułatwia kopanie" send "&c&lUdało ci się ulepszyć item!" close player's inventory else: remove blaze rod named "&6&lBRUSH &e&l4x4" from player send "&c&lTwój przedmiot się spalił!" close player's inventory