############################################# #Autor: K0dX_1337 # #Nazwa skryptu: KStoniarka # # # #Nie zezwalam na: # # -Zmiane informacji o autorze # # -Udostepniania skryptu bez wiedzy autora # # -Podszywania sie pod autora # ############################################# on script load: if file "plugins/KStoniarka/config.yml" doesn't exists: create file "plugins/KStoniarka/config.yml" download from "https://pastebin.com/raw/M3zEpE1G" to "plugins/KStoniarka/config.yml" broadcast "&7Utworzono plik konfiguracyjny!" if file "plugins/KStoniarka/messages.yml" doesn't exists: create file "plugins/KStoniarka/messages.yml" download from "https://pastebin.com/raw/2PPhs6xk" to "plugins/KStoniarka/messages.yml" broadcast "&7Utworzono plik z wiadomosciami!" set {kstoniarka::regeneracja::stonea} to single value "config.czas-regeneracji-stonea" get of "plugins/KStoniarka/config.yml" parsed as number set {kstoniarka::regeneracja::obsydianu} to single value "config.czas-regeneracji-obsydianu" get of "plugins/KStoniarka/config.yml" parsed as number set {kstoniarka::crafting::slot::1} to single value "crafting.slot-1" get of "plugins/KStoniarka/config.yml" parsed as item set {kstoniarka::crafting::slot::2} to single value "crafting.slot-2" get of "plugins/KStoniarka/config.yml" parsed as item set {kstoniarka::crafting::slot::3} to single value "crafting.slot-3" get of "plugins/KStoniarka/config.yml" parsed as item set {kstoniarka::crafting::slot::4} to single value "crafting.slot-4" get of "plugins/KStoniarka/config.yml" parsed as item set {kstoniarka::crafting::slot::5} to single value "crafting.slot-5" get of "plugins/KStoniarka/config.yml" parsed as item set {kstoniarka::crafting::slot::6} to single value "crafting.slot-6" get of "plugins/KStoniarka/config.yml" parsed as item set {kstoniarka::crafting::slot::7} to single value "crafting.slot-7" get of "plugins/KStoniarka/config.yml" parsed as item set {kstoniarka::crafting::slot::8} to single value "crafting.slot-8" get of "plugins/KStoniarka/config.yml" parsed as item set {kstoniarka::crafting::slot::9} to single value "crafting.slot-9" get of "plugins/KStoniarka/config.yml" parsed as item set {kstoniarka::crafting::nazwa} to single value "crafting.nazwa-stoniarki" get of "plugins/KStoniarka/config.yml" set {kstoniarka::crafting::opis} to single value "crafting.opis-stoniarki" get of "plugins/KStoniarka/config.yml" set {kstoniarka::wiadomosc::error-wrong-block} to single value "messages.error-wrong-block" get of "plugins/KStoniarka/messages.yml" set {kstoniarka::wiadomosc::change-mode-obsidian} to single value "messages.change-mode-obsidian" get of "plugins/KStoniarka/messages.yml" set {kstoniarka::wiadomosc::change-mode-stone} to single value "messages.change-mode-stone" get of "plugins/KStoniarka/messages.yml" set {kstoniarka::wiadomosc::place-stoniarka} to single value "messages.place-stoniarka" get of "plugins/KStoniarka/messages.yml" set {kstoniarka::wiadomosc::error-block-above} to single value "messages.error-block-above" get of "plugins/KStoniarka/messages.yml" set {kstoniarka::wiadomosc::break-stoniarka} to single value "messages.break-stoniarka" get of "plugins/KStoniarka/messages.yml" replace all "&" in {kstoniarka::crafting::nazwa} with "ยง" replace all "&" in {kstoniarka::crafting::opis} with "ยง" replace all "&" in {kstoniarka::wiadomosc::error-wrong-block} with "ยง" replace all "&" in {kstoniarka::wiadomosc::change-mode-obsidian} with "ยง" replace all "&" in {kstoniarka::wiadomosc::change-mode-stone} with "ยง" replace all "&" in {kstoniarka::wiadomosc::place-stoniarka} with "ยง" replace all "&" in {kstoniarka::wiadomosc::error-block-above} with "ยง" replace all "&" in {kstoniarka::wiadomosc::break-stoniarka} with "ยง" register new shaped recipe for end stone named "%{kstoniarka::crafting::nazwa}%" with lore "%{kstoniarka::crafting::opis}%" using {kstoniarka::crafting::slot::1}, {kstoniarka::crafting::slot::2}, {kstoniarka::crafting::slot::3}, {kstoniarka::crafting::slot::4}, {kstoniarka::crafting::slot::5}, {kstoniarka::crafting::slot::6}, {kstoniarka::crafting::slot::7}, {kstoniarka::crafting::slot::8}, {kstoniarka::crafting::slot::9} on place stone: if block under is end stone: send "%{kstoniarka::wiadomosc::change-mode-stone}%" stop on place obsidian: if block under is end stone: send "%{kstoniarka::wiadomosc::change-mode-obsidian}%" on place end stone: if block above is air: if block under is end stone: stop else: send "%{kstoniarka::wiadomosc::place-stoniarka}%" stop else: cancel event send "%{kstoniarka::wiadomosc::error-block-above}%" on break end stone: set block above to air send "%{kstoniarka::wiadomosc::break-stoniarka}%" on place: if block under event-block is end stone: if event-block is stone or obsidian: stop else: cancel event send "%{kstoniarka::wiadomosc::error-wrong-block}%" stop on break of stone: if block under event-block is end stone: loop {kstoniarka::regeneracja::stonea} times: wait 1 tick if event-block is air: if block under event-block is end stone: set event-block to stone on break of obsidian: if block under event-block is end stone: loop {kstoniarka::regeneracja::obsydianu} times: wait 1 tick if event-block is air: if block under event-block is end stone: set event-block to obsidian command /stonereload: permission: kstoniarka.stonereload permission message: &cNie posiadasz uprawnien! &8(&7KStoniarka.StoneReload&8) trigger: send "&bPrzeladowywyanie..." if file "plugins/KStoniarka/config.yml" doesn't exists: create file "plugins/KStoniarka/config.yml" download from "https://pastebin.com/raw/M3zEpE1G" to "plugins/KStoniarka/config.yml" broadcast "&7Utworzono plik konfiguracyjny!" if file "plugins/KStoniarka/messages.yml" doesn't exists: create file "plugins/KStoniarka/messages.yml" download from "https://pastebin.com/raw/2PPhs6xk" to "plugins/KStoniarka/messages.yml" broadcast "&7Utworzono plik z wiadomosciami!" set {kstoniarka::regeneracja::stonea} to single value "config.czas-regeneracji-stonea" get of "plugins/KStoniarka/config.yml" parsed as number set {kstoniarka::regeneracja::obsydianu} to single value "config.czas-regeneracji-obsydianu" get of "plugins/KStoniarka/config.yml" parsed as number set {kstoniarka::crafting::slot::1} to single value "crafting.slot-1" get of "plugins/KStoniarka/config.yml" parsed as item set {kstoniarka::crafting::slot::2} to single value "crafting.slot-2" get of "plugins/KStoniarka/config.yml" parsed as item set {kstoniarka::crafting::slot::3} to single value "crafting.slot-3" get of "plugins/KStoniarka/config.yml" parsed as item set {kstoniarka::crafting::slot::4} to single value "crafting.slot-4" get of "plugins/KStoniarka/config.yml" parsed as item set {kstoniarka::crafting::slot::5} to single value "crafting.slot-5" get of "plugins/KStoniarka/config.yml" parsed as item set {kstoniarka::crafting::slot::6} to single value "crafting.slot-6" get of "plugins/KStoniarka/config.yml" parsed as item set {kstoniarka::crafting::slot::7} to single value "crafting.slot-7" get of "plugins/KStoniarka/config.yml" parsed as item set {kstoniarka::crafting::slot::8} to single value "crafting.slot-8" get of "plugins/KStoniarka/config.yml" parsed as item set {kstoniarka::crafting::slot::9} to single value "crafting.slot-9" get of "plugins/KStoniarka/config.yml" parsed as item set {kstoniarka::crafting::nazwa} to single value "crafting.nazwa-stoniarki" get of "plugins/KStoniarka/config.yml" set {kstoniarka::crafting::opis} to single value "crafting.opis-stoniarki" get of "plugins/KStoniarka/config.yml" set {kstoniarka::wiadomosc::error-wrong-block} to single value "messages.error-wrong-block" get of "plugins/KStoniarka/messages.yml" set {kstoniarka::wiadomosc::change-mode-obsidian} to single value "messages.change-mode-obsidian" get of "plugins/KStoniarka/messages.yml" set {kstoniarka::wiadomosc::change-mode-stone} to single value "messages.change-mode-stone" get of "plugins/KStoniarka/messages.yml" set {kstoniarka::wiadomosc::place-stoniarka} to single value "messages.place-stoniarka" get of "plugins/KStoniarka/messages.yml" set {kstoniarka::wiadomosc::error-block-above} to single value "messages.error-block-above" get of "plugins/KStoniarka/messages.yml" set {kstoniarka::wiadomosc::break-stoniarka} to single value "messages.break-stoniarka" get of "plugins/KStoniarka/messages.yml" replace all "&" in {kstoniarka::crafting::nazwa} with "ยง" replace all "&" in {kstoniarka::crafting::opis} with "ยง" replace all "&" in {kstoniarka::wiadomosc::error-wrong-block} with "ยง" replace all "&" in {kstoniarka::wiadomosc::change-mode-obsidian} with "ยง" replace all "&" in {kstoniarka::wiadomosc::change-mode-stone} with "ยง" replace all "&" in {kstoniarka::wiadomosc::place-stoniarka} with "ยง" replace all "&" in {kstoniarka::wiadomosc::error-block-above} with "ยง" replace all "&" in {kstoniarka::wiadomosc::break-stoniarka} with "ยง" register new shaped recipe for end stone named "%{kstoniarka::crafting::nazwa}%" with lore "%{kstoniarka::crafting::opis}%" using {kstoniarka::crafting::slot::1}, {kstoniarka::crafting::slot::2}, {kstoniarka::crafting::slot::3}, {kstoniarka::crafting::slot::4}, {kstoniarka::crafting::slot::5}, {kstoniarka::crafting::slot::6}, {kstoniarka::crafting::slot::7}, {kstoniarka::crafting::slot::8}, {kstoniarka::crafting::slot::9} send "&7Jezeli zmieniles crafting zretartuj serwer lub uzyj komendy /reload!" send "&bPrzeladowano!"