on rightclick on a furnace: if {piec.%event-block%} is false: cancel event if player is holding a iron ore named "&3Ruda Stali" with lore " ||&6Opis:|| &7Troche ciezkie! Przepal to w piecu!": open chest with 1 rows named "&5Piec" to player set {przepalanie.%player%} to 1 wait 5 tick if {przepalanie.%player%} is 1: format slot 0 of the player with 1 of red wool named "&cPrzepalanie" to be unstealable wait 5 tick if {przepalanie.%player%} is 1: format slot 1 of the player with 1 of red wool named "&cPrzepalanie" to be unstealable wait 5 tick if {przepalanie.%player%} is 1: format slot 2 of the player with 1 of red wool named "&cPrzepalanie" to be unstealable wait 5 tick if {przepalanie.%player%} is 1: format slot 3 of the player with 1 of red wool named "&cPrzepalanie" to be unstealable wait 5 tick if {przepalanie.%player%} is 1: format slot 4 of the player with 1 of red wool named "&cPrzepalanie" to be unstealable wait 5 tick if {przepalanie.%player%} is 1: format slot 5 of the player with 1 of red wool named "&cPrzepalanie" to be unstealable wait 5 tick if {przepalanie.%player%} is 1: format slot 6 of the player with 1 of red wool named "&cPrzepalanie" to be unstealable wait 5 tick if {przepalanie.%player%} is 1: format slot 7 of the player with 1 of red wool named "&cPrzepalanie" to be unstealable wait 5 tick if {przepalanie.%player%} is 1: format slot 8 of the player with 1 of red wool named "&cPrzepalanie" to be unstealable wait 5 tick open chest with 1 rows named "&3Odbierz Stal" to the player if {przepalanie.%player%} is 1: wait 5 tick format slot 4 of the player with 1 of iron bar named "&3Stal" to close then run "mythicmobs item give %player% Stal"