variables: {magicznypiec::%player%} = 0 options: #nazwa pieca# item-name = &5&lMagiczny Piecyk. #lore pieca item-lore = &lMagiczny item którym wszystko przepalisz od razu! #Wiadomosc po utworzeniu pieca# wiadomosc1 = &b&l» &aUtworzyles &5&lMagiczny Piec. #Blokowanie stawiania pieca# wiadomosc2 = &b&l» &c&mNie mozesz Tego postawic! #Wiadomosc po zniszczeniu rudy wiadomosc3 = &b&l» &aMasz w ekwipunku Magiczny Piec, automatycznie przepalono&l! #wlaczenie wlaczpiec = &aWlączono opcję magicznego pieca! #wylaczenie wylaczpiec = &cWylaczono opcje magicznego pieca! #crafting #slot 1 craft-slot1 = emerald block #slot 2 craft-slot2 = gold block #slot 3 craft-slot3 = emerald block #slot 4 craft-slot4 = diamond block #slot 5 craft-slot5 = furnace #slot 6 craft-slot6 = diamond block #slot 7 craft-slot7 = emerald block #slot 8 craft-slot8 = gold block #slot 9 craft-slot9 = emerald block #ilosc piecy (ile ma sie craftowac)# craft-count = 1 on script load: register new shaped recipe for {craft-count} furnace named "{item-name}" with lore "{item-lore}" using {craft-slot1}, {craft-slot2}, {craft-slot3}, {craft-slot4}, {craft-slot5} , {craft-slot6}, {craft-slot7}, {craft-slot8}, {craft-slot9} on break of iron ore: if {magicznypiec::%player%} is 1: cancel event set block to air drop a iron ingot send "{wiadomosc3}" to player play raw sound "random.pop" at player with pitch 1 volume 1 on break of gold ore: if {magicznypiec::%player%} is 1: cancel event set block to air drop a gold ingot send "{wiadomosc3}" play raw sound "random.pop" at player with pitch 1 volume 1 on place furnace: if name of player's tool is "{item-name}": stop send "{wiadomosc2}" play raw sound "random.pop" at player with pitch 5 volume 5 on craft furnace: if name of player's tool is "{item-name}": send "{wiadomosc1}" play raw sound "random.pop" at player with pitch 1 volume 5 command /magicznypiec []: trigger: if name of player's tool is "{item-name}": if arg 1 is "on" set {magicznypiec::%player%} to 1 send "{wlaczpiec}" to player if arg 1 is "off" set {magicznypiec::%player%} to 0 send "{wylaczpiec}" to player