on rightclick on workbench: close player's inventory wait 1 tick open chest with 6 rows named "&6Crafting &8> &eRozne" to player wait 1 tick format slot 1 of player with 1 of compass named "&4&lMC&f&lRUST &8> &5Kity" to close then run [make player execute command "kit"] format slot 4 of player with 1 of iron axe named "&4&lMC&f&lRUST &8> &5&lNarzedia" to close then run [make player execute command "jck2"] format slot 7 of player with 1 of diamond sword named "&4&lMC&f&lRUST &8> &5&lZbroje" to close then run [make player execute command "jck3"] format slot 19 of player with 1 of book named "&4&lMC&f&lRUST &8> &5&lPlan Budowy" to close then run [make player execute command "jck4"] format slot 20 of player with 1 of sponge named "&4&lMC&f&lRUST &8> &5&lCuboid" to close then run [make player execute command "jck5"] format slot 21 of player with 1 of gold axe named "&4&lMC&f&lRUST &8> &5&lMlot" to close then run [make player execute command "jck6"] format slot 22 of player with 1 of 355:0 named "&4&lMC&f&lRUST &8> &5&lLozko" to close then run [make player execute command "jck7"] format slot 23 of player with 1 of ladder named "&4&lMC&f&lRUST &8> &5&lDrabina" to close then run [make player execute command "jck8"] format slot 24 of player with 1 of oak sapling named "&4&lMC&f&lRUST &8> &5&lSadzonki" to close then run [make player execute command "jck9"] format slot 25 of player with 1 of torch named "&4&lMC&f&lRUST &8> &5&lPochodnia" to close then run [make player execute command "jck10"] format slot 28 of player with 1 of fence named "&4&lMC&f&lRUST &8> &5&lPlot" to close then run [make player execute command "jck11"] format slot 29 of player with 1 of chest named "&4&lMC&f&lRUST &8> &5&lSkrzynia" to close then run [make player execute command "jck12"] format slot 30 of player with 1 of 61 named "&4&lMC&f&lRUST &8> &5&lPiec" to close then run [make player execute command "jck13"] format slot 31 of player with 1 of anvil named "&4&lMC&f&lRUST &8> &5&lKowadlo" to close then run [make player execute command "jck14"] format slot 32 of player with 1 of enchantment table named "&4&lMC&f&lRUST &8> &5&lEnchant" to close then run [make player execute command "jck15"] format slot 33 of player with 1 of tnt named "&4&lMC&f&lRUST &8> &5&lC4" to close then run [make player execute command "jck16"] format slot 34 of player with 1 of 324 named "&4&lMC&f&lRUST &8> &5&lDrzwi" to close then run [make player execute command "jck17"] format slot 40 of player with 1 of red stained glass pane named "&4&lWYJSCIE!" to close command /jck4: trigger: wait 4 tick open chest with 1 rows named "&6Rozne &8> &5&lPlan Budowy" to player wait 2 tick loop 4 times: format slot 0 of player with 1 of paper named "&4Koszt &8> %12 * loop-number% drewna!" to close then run [make player execute command "pla%11 + loop-number%"] command /pla12: trigger: if player has 12 log: remove 12 log from player wait 2 tick loop 10 times: set action bar of player to "&c>> &6Plan Budowy &7[%10 - loop-number%]" wait 1 second give 1 paper named "&4&lMC&f&lRUST &5&lPlan budowy" to player stop else: message "&4&lMC&f&lRUST &cNie masz tyle przedmiotow!" to player command /pla13: trigger: if player has 24 log: remove 24 log from player wait 2 tick loop 10 times: set action bar of player to "&c>> &6Plan Budowy &7[%10 - loop-number%]" wait 1 second give 1 paper named "&4&lMC&f&lRUST &5&lPlan budowy" to player stop else: message "&4&lMC&f&lRUST &cNie masz tyle przedmiotow!" to player command /pla14: trigger: if player has 48 log: remove 48 log from player wait 2 tick loop 10 times: set action bar of player to "&c>> &6Plan Budowy &7[%10 - loop-number%]" wait 1 second give 1 paper named "&4&lMC&f&lRUST &5&lPlan budowy" to player stop else: message "&4&lMC&f&lRUST &cNie masz tyle przedmiotow!" to player command /pla15: trigger: if player has 96 log: remove 96 log from player wait 2 tick loop 10 times: set action bar of player to "&c>> &6Plan Budowy &7[%10 - loop-number%]" wait 1 second give 1 paper named "&4&lMC&f&lRUST &5&lPlan budowy" to player stop else: message "&4&lMC&f&lRUST &cNie masz tyle przedmiotow!" to player on place of cobblestone or sand or 17 or dirt or grass: cancel event message "&4&lMC&f&lRUST &cTego bloku nie mozna polozyc na ziemi!" to player on break stone or cobblestone or dirt or grass or sand or gravel: cancel event message "&4&lMC&f&lRUST &cTego bloku nie mozesz wykopac!" to player on craft of wooden slab or cobblestone slab or wooden pressure plate or button: cancel event message "&4&lMC&f&lRUST &cTego bloku/przedmiotu nie mozna craftowac!" to player