on break: if block is pumpkin: if {unixhc::halloween} is true: drop 1 sunflower named "&5&lHalloween&f&lCoin" send "&8» &7Udalo Ci sie znalezc &5&lHallowen&f&lCoin&7! Rozejrzyj sie!" wait 1 second remove 1 pumpkin from player's inventory if {unixhc::halloween} is false: cancel event send "&8» &4Ten blok bedziesz mogl zniszczyc podczas Halloween!" command /halloween []: permission: unixhc.halloween permission message: &4Nie masz permisji! trigger: if arg-1 is not set: send "&8» &7Poprawne uzycie to &a/halloween " if arg-1 is "on": set {unixhc::halloween} to true send "&8» &aWlaczyles event Halloween!" if arg-1 is "off": set {unixhc::halloween} to false send "&8» &cWylaczyles event Halloween!" command /sklep: trigger: if {unixhc::halloween} is true: set {sklep:%player%:otworzone} to true open chest with 1 rows named "&7&lSklep &5&lHalloween&f&lCoin" to player wait 3 ticks format slot 0 of player with diamond sword of sharpness 5 and unbreaking 3 with lore "&8» &7Cena: &f&l8 &8[&5&lHalloween&f&lCoin&8]||&8» &eKliknij aby wymienic!" to run [execute player command "1"] format slot 1 of player with diamond helmet of protection 5 and unbreaking 3 with lore "&8» &7Cena: &f&l12 &8[&5&lHalloween&f&lCoin&8]||&8» &eKliknij aby wymienic!" to run [execute player command "2"] format slot 2 of player with diamond chestplate of protection 5 and unbreaking 3 with lore "&8» &7Cena: &f&l16 &8[&5&lHalloween&f&lCoin&8]||&8» &eKliknij aby wymienic!" to run [execute player command "3"] format slot 3 of player with diamond leggings of protection 5 and unbreaking 3 with lore "&8» &7Cena: &f&l16 &8[&5&lHalloween&f&lCoin&8]||&8» &eKliknij aby wymienic!" to run [execute player command "4"] format slot 4 of player with diamond boots of protection 5 and unbreaking 3 with lore "&8» &7Cena: &f&l12 &8[&5&lHalloween&f&lCoin&8]||&8» &eKliknij aby wymienic!" to run [execute player command "5"] format slot 5 of player with beacon with lore "&8» &7Cena: &f&l32 &8[&5&lHalloween&f&lCoin&8]||&8» &eKliknij aby wymienic!" to run [execute player command "6"] format slot 6 of player with black glass named "" to be unstealable format slot 7 of player with black glass named "" to be unstealable format slot 8 of player with red wool named "&4&lWyjscie" to close set {sklep:%player%:otworzone} to false if {unixhc::halloween} is false: send "&8» &cTej komendy bedzie mozna uzyc podczas Halloween!" on right click: if {sklep:%player%:otworzone} is true: cancel event command /1: trigger: if player has 8 sunflower named "&5&lHalloween&f&lCoin": remove 8 sunflower named "&5&lHalloween&f&lCoin" from player's inventory give 1 diamond sword of sharpness 5 and unbreaking 3 to player send "&8» &7Wymieniono &f&l8 &8[&5&lHalloween&f&lCoin&8] &7na mieczyk 5/3" else: send "&8» &cNie masz wystarczajacej ilosci monet!" command /2: trigger: if player has 12 sunflower named "&5&lHalloween&f&lCoin": remove 12 sunflower named "&5&lHalloween&f&lCoin" from player's inventory give 1 diamond helmet of protection and unbreaking 3 to player send "&8» &7Wymieniono &f&l12 &8[&5&lHalloween&f&lCoin&8] &7na helm 5/3" else: send "&8» &cNie masz wystarczajacej ilosci monet!" command /3: trigger: if player has 16 sunflower named "&5&lHalloween&f&lCoin": remove 16 sunflower named "&5&lHalloween&f&lCoin" from player's inventory give 1 diamond chestplate of protection 5 and unbreaking 3 to player send "&8» &7Wymieniono &f&l16 &8[&5&lHalloween&f&lCoin&8] &7na klate 5/3" else: send "&8» &cNie masz wystarczajacej ilosci monet!" command /4: trigger: if player has 16 sunflower named "&5&lHalloween&f&lCoin": remove 16 sunflower named "&5&lHalloween&f&lCoin" from player's inventory give 1 diamond leggings of protection 5 and unbreaking 3 to player send "&8» &7Wymieniono &f&l16 &8[&5&lHalloween&f&lCoin&8] &7na spodnie 5/3" else: send "&8» &cNie masz wystarczajacej ilosci monet!" command /5: trigger: if player has 12 sunflower named "&5&lHalloween&f&lCoin": remove 12 sunflower named "&5&lHalloween&f&lCoin" from player's inventory give 1 diamond boots of protection 5 and unbreaking 3 to player send "&8» &7Wymieniono &f&l12 &8[&5&lHalloween&f&lCoin&8] &7na buty 5/3" else: send "&8» &cNie masz wystarczajacej ilosci monet!" command /6: trigger: if player has 32 sunflower named "&5&lHalloween&f&lCoin": remove 32 sunflower named "&5&lHalloween&f&lCoin" from player's inventory give 1 beacon to player send "&8» &7Wymieniono &f&l12 &8[&5&lHalloween&f&lCoin&8] &7na beacona" else: send "&8» &cNie masz wystarczajacej ilosci monet!"