#----------------------------------------------------- # # Autor: Kamill0s # # Skrypt zrobiony na potrzeby jednego z uzytkownikow skript.pl # Prosze o nie usuwanie tych linijek. # # Skrypt nie jest napisany na 100% moich mozliwosci, # napisalem go w taki sposob, poniewaz nie mam za duzo czasu, # oraz robie to bezinteresownie ;) # # Kontakt: kamill0s.yt@gmail.com # #------------------------------------------------------ options: materialy: &6Potrzebne materialy:|| brak materialow: &4BLAD: &cNie posiadasz odpowiednich materialow do stworzenia tego przedmiotu. #- tutaj ustawiasz wiadomosc o braku materialow wytworzono: &2* &aPomyslnie wytworzono przedmiot. #- tutaj ustawiasz wiadomosc o wytworzonym przedmiocie brak miejsca: &4BLAD: &cNie masz miejsca w ekwipunku! #- tutaj ustawiasz wiadomosc o braku miejsca w eq nazwa GUI: &8&lCrafting #- tutaj ustawiasz jaka nazwe ma wyswietlac glowne GUI. materialy GUI: &8&lMaterialy #- tutaj ustawiasz jaka nazwe ma wyswietlac GUI z materialami. amunicja GUI: &8&lAmunicja #- tutaj ustawiasz jaka nazwe ma wyswietlac GUI z amunicja. narzedzia GUI: &8&lNarzedzia #- tutaj ustawiasz jaka nazwe ma wyswietlac GUI z narzedziami. tnt GUI: &8&lWybuchowe #- tutaj ustawiasz jaka nazwe ma wyswietlac GUI z wybuchowe. bronie GUI: &8&lBronie #- tutaj ustawiasz jaka nazwe ma wyswietlac GUI z bronmi. zbroje GUI: &8&lZbroje #- tutaj ustawiasz jaka nazwe ma wyswietlac GUI ze zbrojami. s zbroje GUI: &8&lSkorzane Zbroje #- tutaj ustawiasz nazwe jaka ma sie wyswietlac w GUI ze skorzanym eq zl zbroje GUI: &8&lZlote Zbroje #- tutaj ustawiasz nazwe jaka ma sie wyswietlac w GUI ze zlotym eq z zbroje GUI: &8&lZelazne Zbroje #- tutaj ustawiasz nazwe jaka ma sie wyswietlac w GUI z zelaznym eq d zbroje GUI: &8&lDiamenotwe Zbroje #- tutaj ustawiasz nazwe jaka ma sie wyswietlac w GUI z diamentowym eq 5.56: gold nugget named "&f&l5.56" with lore "&7Amunicja: &c5.56" #- tutaj ustawiasz itemek i nazwe dla amunicji 5.56 7.62: gold nugget named "&f&l7.62" with lore "&7Amunicja: &c7.62" #- tutaj ustawiasz itemek i nazwe dla amunicji 7.62 9mm: gold nugget named "&f&l9mm" with lore "&7Amunicja: &c9mm" #- tutaj ustawiasz itemek i nazwe dla amunicji 9mm # ----[ GUI ]---- on right click on crafting table: cancel event open chest with 1 row named "{@nazwa GUI}" to player wait 1 tick set player's current inventory's slot 0 to string named "&f&lMaterialy" with lore "&8- &7materialy" set player's current inventory's slot 1 to arrow named "&f&lAmunicja" with lore "&8- &7amunicja" set player's current inventory's slot 2 to tnt named "&f&lWybuchowe" with lore "&8- &7wybuchowe" set player's current inventory's slot 3 to iron pickaxe named "&f&lNarzedzia" with lore "&8- &7narzedzia" set player's current inventory's slot 4 to diamond sword named "&f&lBron" with lore "&8- &7bron" set player's current inventory's slot 5 to diamond chestplate named "&f&lZbroje" with lore "&8- &7zbroje" set player's current inventory's slot 8 to book named "&9&lAutor" with lore "&7Autor Skryptu: &cKamill0s||&7Kontakt: &ckamill0s.yt@gmail.com" # ----[ System ]---- on inventory click: if "%inventory name of player's current inventory%" contains "{@nazwa GUI}": if clicked slot is 0: cancel event close player's inventory open chest with 1 row named "{@materialy GUI}" to player wait 1 tick set player's current inventory's slot 3 to string named "&f&lNitka" with lore "{@materialy} &7&o2x &c&oskóra" set player's current inventory's slot 5 to bottle named "&f&lButelka" with lore "{@materialy} &7&o1x &c&okwarc" stop if clicked slot is 1: cancel event close player's inventory open chest with 1 row named "{@amunicja GUI}" to player wait 1 tick set player's current inventory's slot 2 to gold nugget named "&f&l5.56" with lore "{@materialy} &7&o3x &c&ojasnopył|| &7&o2x &c&ożelazo" set player's current inventory's slot 4 to gold nugget named "&f&l7.62" with lore "{@materialy} &7&o2x &c&ojasnopył|| &7&o1x &c&ożelazo" set player's current inventory's slot 6 to gold nugget named "&f&l9mm" with lore "{@materialy} &7&o1x &c&ojasnopył|| &7&o1x &c&ożelazo" stop if clicked slot is 2: cancel event close player's inventory open chest with 1 row named "{@tnt GUI}" to player wait 1 tick set player's current inventory's slot 3 to tnt named "&f&lTNT" with lore "{@materialy} &7&o30x &c&oredstone|| &7&o33x &c&oszmaragd|| &7&o25x &c&ozłoto" set player's current inventory's slot 5 to redstone block named "&f&lBlok Redstone" with lore "{@materialy} &7&o128x &c&oredstone" stop if clicked slot is 3: cancel event close player's inventory open chest with 4 rows named "{@narzedzia GUI}" to player wait 1 tick set player's current inventory's slot 3 to diamond pickaxe named "&f&lDiamentowy Kilof" with lore "{@materialy} &7&o4x &c&odiament|| &7&o3x &c&opatyk" set player's current inventory's slot 5 to diamond axe named "&f&lDiamentowa Siekiera" with lore "{@materialy} &7&o4x &c&odiament|| &7&o3x &c&opatyk" set player's current inventory's slot 12 to iron pickaxe named "&f&lZelazny Kilof" with lore "{@materialy} &7&o4x &c&ożelazo|| &7&o3x &c&opatyk" set player's current inventory's slot 14 to iron axe named "&f&lZelazna Siekiera" with lore "{@materialy} &7&o4x &c&ożelazo|| &7&o3x &c&opatyk" set player's current inventory's slot 21 to stone pickaxe named "&f&lKamienny Kilof" with lore "{@materialy} &7&o4x &c&obruk|| &7&o3x &c&opatyk" set player's current inventory's slot 23 to stone axe named "&f&lKamienna Siekiera" with lore "{@materialy} &7&o4x &c&obruk|| &7&o3x &c&opatyk" set player's current inventory's slot 30 to wooden pickaxe named "&f&lDrewniany Kilof" with lore "{@materialy} &7&o4x &c&odeska|| &7&o3x &c&opatyk" set player's current inventory's slot 32 to wooden axe named "&f&lDrewniana Siekiera" with lore "{@materialy} &7&o4x &c&odeska|| &7&o3x &c&opatyk" stop if clicked slot is 4: cancel event close player's inventory open chest with 1 row named "{@bronie GUI}" to player wait 1 tick set player's current inventory's slot 1 to diamond sword named "&f&lDiamentowy Miecz" with lore "{@materialy} &7&o3x &c&odiament|| &7&o1x &c&opatyk" set player's current inventory's slot 3 to iron sword named "&f&lZelazny Miecz" with lore "{@materialy} &7&o3x &c&ożelazo|| &7&o1x &c&opatyk" set player's current inventory's slot 5 to stone sword named "&f&lKamienny Miecz" with lore "{@materialy} &7&o3x &c&obruk|| &7&o1x &c&opatyk" set player's current inventory's slot 7 to wooden sword named "&f&lDrewniany Miecz" with lore "{@materialy} &7&o3x &c&odeska|| &7&o1x &c&opatyk" stop if clicked slot is 5: cancel event close player's inventory open chest with 1 row named "{@zbroje GUI}" to player wait 1 tick set player's current inventory's slot 1 to diamond chestplate named "&f&lDiamentowy Set" with lore "&7&oKliknij, aby otworzyć crafting." set player's current inventory's slot 3 to iron chestplate named "&f&lZelazny Set" with lore "&7&oKliknij, aby otworzyć crafting." set player's current inventory's slot 5 to gold chestplate named "&f&lZloty Set" with lore "&7&oKliknij, aby otworzyć crafting." set player's current inventory's slot 7 to leather chestplate named "&f&lSkorzany Set" with lore "&7&oKliknij, aby otworzyć crafting." stop if clicked slot is 8: cancel event if "%inventory name of player's current inventory%" contains "{@materialy GUI}": if clicked slot is 3: cancel event if player has 2 leather: if player can hold string: remove 2 leather from the player's inventory give string to player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 5: cancel event if player has quartz: if player can hold bottle: remove quartz from the player's inventory give bottle to player's inventory else: send "{@brak miejsca}" to player send "{@wytworzono}" to player else: send "{@brak materialow}" to player if "%inventory name of player's current inventory%" contains "{@amunicja GUI}": if clicked slot is 2: cancel event if player has 3 glowstone and 2 iron ingot: if player can hold {@5.56}: remove 3 glowstone and 2 iron ingot from the player's inventory give {@5.56} to player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 4: cancel event if player has 2 glowstone and 1 iron ingot: if player can hold {@5.56}: remove 2 glowstone and 1 iron ingot from the player's inventory give {@5.56} to player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 6: cancel event if player has 2 glowstone and 1 iron ingot: if player can hold {@9mm}: remove 2 glowstone and 1 iron ingot from the player's inventory give {@9mm} to player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if "%inventory name of player's current inventory%" contains "{@tnt GUI}": if clicked slot is 3: cancel event if player has 30 redstone and 33 emerald and 25 gold ingot: if player can hold tnt: remove 30 redstone and 33 emerald and 25 gold ingot from the player's inventory add 1 tnt to player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 5: cancel event if player has 128 redstone: if player can hold redstone block: remove 128 redstone from the player's inventory add 1 redstone block to player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if "%inventory name of player's current inventory%" contains "{@narzedzia GUI}": if clicked slot is 3: cancel event if player has 4 diamond and 3 stick: if player can hold diamond pickaxe: remove 4 diamond and 3 stick from the player's inventory give diamond pickaxe to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 5: cancel event if player has 4 diamond and 3 stick: if player can hold diamond axe: remove 4 diamond and 3 stick from the player's inventory give diamond axe to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 12: cancel event if player has 4 iron ingot and 3 stick: if player can hold iron pickaxe: remove 4 iron ingot and 3 stick from the player's inventory give iron pickaxe to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 14: cancel event if player has 4 iron ingot and 3 stick: if player can hold iron axe: remove 4 iron ingot and 3 stick from the player's inventory give iron axe to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 21: cancel event if player has 4 cobblestone and 3 stick: if player can hold stone pickaxe: remove 4 cobblestone and 3 stick from the player's inventory give stone pickaxe to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 23: cancel event if player has 4 cobblestone and 3 stick: if player can hold stone axe: remove 4 cobblestone and 3 stick from the player's inventory give stone axe to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 30: cancel event if player has 4 5 and 3 stick: if player can hold wood pickaxe: remove 4 5 and 3 stick from the player's inventory give wood pickaxe to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 32: cancel event if player has 4 5 and 3 stick: if player can hold wood axe: remove 4 5 and 3 stick from the player's inventory give wood axe to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if "%inventory name of player's current inventory%" contains "{@bronie GUI}": if clicked slot is 1: cancel event if player has 3 diamond and 3 stick: if player can hold diamond sword: remove 3 diamond and 3 stick from the player's inventory give diamond sword to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 3: cancel event if player has 3 iron ingot and 3 stick: if player can hold iron sword: remove 3 iron ingot and 3 stick from the player's inventory give iron sword to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 5: cancel event if player has 3 cobblestone and 3 stick: if player can hold stone sword: remove 3 cobblestone and 3 stick from the player's inventory give stone sword to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 7: cancel event if player has 3 5 and 3 stick: if player can hold wood sword: remove 3 5 and 3 stick from the player's inventory give wood sword to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if "%inventory name of player's current inventory%" contains "{@zbroje GUI}": if clicked slot is 1: cancel event close player's inventory open chest with 1 row named "{@d zbroje GUI}" to player wait 1 tick set player's current inventory's slot 1 to diamond helmet named "&f&lDiamentowy Helm" with lore "{@materialy} &7&o5x &c&odiament" set player's current inventory's slot 3 to diamond chestplate named "&f&lDiamentowa Klata" with lore "{@materialy} &7&o5x &c&odiament" set player's current inventory's slot 5 to diamond leggings named "&f&lDiamentowe Spodnie" with lore "{@materialy} &7&o5x &c&odiament" set player's current inventory's slot 7 to diamond boots named "&f&lDiamentowe Buty" with lore "{@materialy} &7&o5x &c&odiament" stop if clicked slot is 3: cancel event close player's inventory open chest with 1 row named "{@z zbroje GUI}" to player wait 1 tick set player's current inventory's slot 1 to iron helmet named "&f&lZelazny Helm" with lore "{@materialy} &7&o5x &c&ożelazo" set player's current inventory's slot 3 to iron chestplate named "&f&lZelazna Klata" with lore "{@materialy} &7&o5x &c&ożelazo" set player's current inventory's slot 5 to iron leggings named "&f&lZelazne Spodnie" with lore "{@materialy} &7&o5x &c&ożelazo" set player's current inventory's slot 7 to iron boots named "&f&lZelazny Helm" with lore "{@materialy} &7&o5x &c&ożelazo" stop if clicked slot is 5: cancel event close player's inventory open chest with 1 row named "{@zl zbroje GUI}" to player wait 1 tick set player's current inventory's slot 1 to gold helmet named "&f&lZloty Helm" with lore "{@materialy} &7&o5x &c&ozłoto" set player's current inventory's slot 3 to gold chestplate named "&f&lZlota Klata" with lore "{@materialy} &7&o5x &c&ozłoto" set player's current inventory's slot 5 to gold leggings named "&f&lZlote Spodnie" with lore "{@materialy} &7&o5x &c&ozłoto" set player's current inventory's slot 7 to gold boots named "&f&lZlote Buty" with lore "{@materialy} &7&o5x &c&ozłoto" stop if clicked slot is 7: cancel event close player's inventory open chest with 1 row named "{@s zbroje GUI}" to player wait 1 tick set player's current inventory's slot 1 to leather helmet named "&f&lSkorzany Helm" with lore "{@materialy} &7&o5x &c&oskóra" set player's current inventory's slot 3 to leather chestplate named "&f&lSkorzany Helm" with lore "{@materialy} &7&o5x &c&oskóra" set player's current inventory's slot 5 to leather leggings named "&f&lSkorzany Helm" with lore "{@materialy} &7&o5x &c&oskóra" set player's current inventory's slot 7 to leather boots named "&f&lSkorzany Helm" with lore "{@materialy} &7&o5x &c&oskóra" stop if "%inventory name of player's current inventory%" contains "{@s zbroje GUI}": if clicked slot is 1: cancel event if player has 5 leather: if player can hold leather helmet: remove 5 leather from the player's inventory give leather helmet to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 3: cancel event if player has 5 leather: if player can hold leather chestplate: remove 5 leather from the player's inventory give leather chestplate to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 5: cancel event if player has 5 leather: if player can hold leather leggings: remove 5 leather from the player's inventory give leather leggings to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 7: cancel event if player has 5 leather: if player can hold leather boots: remove 5 leather from the player's inventory give leather boots to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if "%inventory name of player's current inventory%" contains "{@zl zbroje GUI}": if clicked slot is 1: cancel event if player has 5 gold ingot: if player can hold gold helmet: remove 5 gold ingot from the player's inventory give gold helmet to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 3: cancel event if player has 5 gold ingot: if player can hold gold chestplate: remove 5 gold ingot from the player's inventory give gold chestplate to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 5: cancel event if player has 5 gold ingot: if player can hold gold leggings: remove 5 gold ingot from the player's inventory give gold leggings to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 7: cancel event if player has 5 gold ingot: if player can hold gold boots: remove 5 gold ingot from the player's inventory give gold boots to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if "%inventory name of player's current inventory%" contains "{@z zbroje GUI}": if clicked slot is 1: cancel event if player has 5 iron ingot: if player can hold iron helmet: remove 5 iron ingot from the player's inventory give iron helmet to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 3: cancel event if player has 5 iron ingot: if player can hold iron chestplate: remove 5 iron ingot from the player's inventory give iron chestplate to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 5: cancel event if player has 5 iron ingot: if player can hold iron leggings: remove 5 iron ingot from the player's inventory give iron leggings to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 7: cancel event if player has 5 iron ingot: if player can hold iron boots: remove 5 iron ingot from the player's inventory give iron boots to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if "%inventory name of player's current inventory%" contains "{@d zbroje GUI}": if clicked slot is 1: cancel event if player has 5 diamond: if player can hold diamond: remove 5 diamond from the player's inventory give diamond helmet to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 3: cancel event if player has 5 diamond: if player can hold diamond chestplate: remove 5 diamond from the player's inventory give diamond chestplate to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 5: cancel event if player has 5 diamond: if player can hold diamond leggings: remove 5 diamond from the player's inventory give diamond leggings to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player if clicked slot is 7: cancel event if player has 5 diamond: if player can hold diamond boots: remove 5 diamond from the player's inventory give diamond boots to the player's inventory send "{@wytworzono}" to player else: send "{@brak miejsca}" to player else: send "{@brak materialow}" to player #To juz koniec ;)