Pull block name in config

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

xOrcun

Member
May 3, 2020
1
0
1
Hello, I wrote a script, but it doesn't work when you type lapis ore or redstone from config, and when some blocks are broken, don't you help those processes?


What code can I write for all blocks in the game to work
Code:
on break of any ore:
    if {kredi::blok-tur} is "%event-block%": # I'll pull this part out of config
        if {kredi::blok-modu} is "Açık" or "Aktif":
            if {blok.%player%} is greater than {kredi::blok-max}-1:
                add {kredi::blok-kredi-miktar} to {kredi.%player%}
                remove {kredi::blok-max} from {blok.%player%}
                set {_bloktebrik} to {kredi::blok-tebrik-mesaj}
                replace all "{BLOK-MAX}" with "%{kredi::blok-max}%" in {_bloktebrik}
                replace all "{BLOK-KREDI}" with "%{kredi::blok-kredi-miktar}%" in {_bloktebrik}
                replace all "{BLOK-KIRILAN}" with "%{blok.%player%}%" in {_bloktebrik}
                replace all "{KREDI}" with "%{kredi.%player%}%" in {_bloktebrik}
                message "%{kredi::prefix}%%{_bloktebrik}%"
            else:
                add 1 to {blok.%player%}
                set {_blokkazılıyor} to {kredi::blok-kazılma-mesaj}
                replace all "{BLOK-MAX}" with "%{kredi::blok-max}%" in {_blokkazılıyor}
                replace all "{BLOK-KREDI}" with "%{kredi::blok-kredi-miktar}%" in {_blokkazılıyor}
                replace all "{BLOK-KIRILAN}" with "%{blok.%player%}%" in {_blokkazılıyor}
                replace all "{KREDI}" with "%{kredi.%player%}%" in {_blokkazılıyor}
                set action bar of player to "%{_blokkazılıyor}%"
            if {kredi::blok-modu} is "Kapalı" or "Kapat":
                stop
 
Status
Not open for further replies.