Çözüldü Emerald Ore Spawner Skripti

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Arda Kapacak

Birisi mi Spawnlandı?
Katılım
7 Temmuz 2019
Mesajlar
4
Elmaslar
0
Puan
0
Yaş
25
Minecraft
aaa123alfy
Arkadaşlar ben kendi sw mi kurmaya çalışıyorum ve şuan tek ihtiyacım olan Zümrüt Cevheri Bloğu Spawner Skripti yardımcı olabilirseniz çok sevinirim
 
Kod:
#-------------------Kullanım-------------------
#/ZSp [SpawnerTürü] [Kişi] [SpawnerSayısı]
#/Hak [SpawnerTürü] [Kişi] [HakSayısı]

#-------------------Ayarlar--------------------
options:
    server: &f&lZ&6&lE&2&lU&b&lS &7&l» #Sunucu İsmi

variables:
    {limit::spawner} = true #Spawner Limiti

    {dsp::%player%} = 0 #Demir Spawner
    {asp::%player%} = 0 #Altın Spawner
    {zsp::%player%} = 0 #Zümrüt Spawner
    {esp::%player%} = 0 #Elmas Spawner

    {dspp::%player%} = 2 #Demir Spawner Limiti
    {aspp::%player%} = 0 #Altın Spawner Limiti
    {zspp::%player%} = 0 #Zümrüt Spawner Limiti
    {espp::%player%} = 0 #Elmas Spawner Limiti
    {sp::%player%} = 0 #Toplam Spawner Sayısı

command /zsp [<text>] [<player>] [<number>]:
    trigger:
        if player has permission "op":
            if arg 1 is not set:
                send "{@server} &7Kullanım &7/&3ZSp &7[&fDemir&7/&6Altın&7/&bElmas&7/&eEnd&7/&3Sünger&7] [&aIsim&7] [&aAdet&7]" to player
            if arg 1 is "demir" or "iron":
                if arg 2 is not set:
                    if arg 3 is set:
                        execute console command "give %player% iron_ore %arg-3% name:&7Demir_&aSpawner lore:&b&lZ&6&lSp_&3»_&7Kazma_ile_kırınız"
                        send "{@server} &fDemir &aSpawner Verildi." to player
                    if arg 3 is not set:
                        execute console command "give %player% iron_ore 1 name:&7Demir_&aSpawner lore:&b&lZ&6&lSp_&3»_&7Kazma_ile_kırınız"
                        send "{@server} &fDemir &aSpawner Verildi." to player
                if arg 2 is set:
                    if arg 3 is set:
                        execute console command "give %arg-2% iron_ore %arg-3% name:&7Demir_&aSpawner lore:&b&lZ&6&lSp_&3»_&7Kazma_ile_kırınız"
                        send "{@server} &fDemir &aSpawner Verildi." to arg-2
                        send "{@server} &fDemir &aSpawner Verildi." to player
                    if arg 3 is not set:
                        execute console command "give %arg-2% iron_ore 1 name:&7Demir_&aSpawner lore:&b&lZ&6&lSp_&3»_&7Kazma_ile_kırınız"
                        send "{@server} &fDemir &aSpawner Verildi." to arg-2
                        send "{@server} &fDemir &aSpawner Verildi." to player
            if arg 1 is "altın" or "gold" or "altin":
                if arg 2 is not set:
                    if arg 3 is set:
                        execute console command "give %player% gold_ore %arg-3% name:&7Altın_&aSpawner lore:&b&lZ&6&lSp_&3»_&7Kazma_ile_kırınız"
                        send "{@server} &6Altın &aSpawner Verildi." to player
                    if arg 3 is not set:
                        execute console command "give %player% gold_ore 1 name:&7Altın_&aSpawner lore:&b&lZ&6&lSp_&3»_&7Kazma_ile_kırınız"
                        send "{@server} &6Altın &aSpawner Verildi." to player
                if arg 2 is set:
                    if arg 3 is set:
                        execute console command "give %arg-2% gold_ore %arg-3% name:&7Altın_&aSpawner lore:&b&lZ&6&lSp_&3»_&7Kazma_ile_kırınız"
                        send "{@server} &6Altın &aSpawner Verildi." to arg-2
                        send "{@server} &6Altın &aSpawner Verildi." to player
                    if arg 3 is not set:
                        execute console command "give %arg-2% gold_ore 1 name:&7Altın_&aSpawner lore:&b&lZ&6&lSp_&3»_&7Kazma_ile_kırınız"
                        send "{@server} &6Altın &aSpawner Verildi." to arg-2
                        send "{@server} &6Altın &aSpawner Verildi." to player
            if arg 1 is "zümrüt" or "emerald" or "zumrut":
                if arg 2 is not set:
                    if arg 3 is set:
                        execute console command "give %player% emerald_ore %arg-3% name:&7Zümrüt_&aSpawner lore:&b&lZ&6&lSp_&3»_&7Kazma_ile_kırınız"
                        send "{@server} &2Zümrüt &aSpawner Verildi." to player
                    if arg 3 is not set:
                        execute console command "give %player% emerald_ore 1 name:&7Zümrüt_&aSpawner lore:&b&lZ&6&lSp_&3»_&7Kazma_ile_kırınız"
                        send "{@server} &2Zümrüt &aSpawner Verildi." to player
                if arg 2 is set:
                    if arg 3 is set:
                        execute console command "give %arg-2% emerald_ore %arg-3% name:&7Zümrüt_&aSpawner lore:&b&lZ&6&lSp_&3»_&7Kazma_ile_kırınız"
                        send "{@server} &2Zümrüt &aSpawner Verildi." to arg-2
                        send "{@server} &2Zümrüt &aSpawner Verildi." to player
                    if arg 3 is not set:
                        execute console command "give %arg-2% emerald_ore 1 name:&7Zümrüt_&aSpawner lore:&b&lZ&6&lSp_&3»_&7Kazma_ile_kırınız"
                        send "{@server} &2Zümrüt &aSpawner Verildi." to arg-2
            if arg 1 is "elmas" or "dia" or "diamond":
                if arg 2 is not set:
                    if arg 3 is set:
                        execute console command "give %player% diamond_ore %arg-3% name:&7Elmas_&aSpawner lore:&b&lZ&6&lSp_&3»_&7Kazma_ile_kırınız"
                        send "{@server} &bElmas &aSpawner Verildi." to player
                    if arg 3 is not set:
                        execute console command "give %player% diamond_ore 1 name:&7Elmas_&aSpawner lore:&b&lZ&6&lSp_&3»_&7Kazma_ile_kırınız"
                        send "{@server} &bElmas &aSpawner Verildi." to player
                if arg 2 is set:
                    if arg 3 is set:
                        execute console command "give %arg-2% diamond_ore %arg-3% name:&7Elmas_&aSpawner lore:&b&lZ&6&lSp_&3»_&7Kazma_ile_kırınız"
                        send "{@server} &bElmas &aSpawner Verildi." to arg-2
                        send "{@server} &bElmas &aSpawner Verildi." to player
                    if arg 3 is not set:
                        execute console command "give %arg-2% diamond_ore 1 name:&7Elmas_&aSpawner lore:&b&lZ&6&lSp_&3»_&7Kazma_ile_kırınız"
                        send "{@server} &bElmas &aSpawner Verildi." to arg-2
                        send "{@server} &bElmas &aSpawner Verildi." to player
        else:
            send "{@server} &7Bu komutu kullanamazsın." to player
        
on place:
    if {limit::spawner} is "true":
        if name of player's tool is "&7Demir &aSpawner":
            if {dsp::%player%} is smaller than or equal to {dspp::%player%}:
                set {dsp1::%location of event-block%::%player%} to location of event-block
                wait 2 tick
                set block to iron ore
                send "{@server} &7Spawneri Başarıyla Koydun."
                send "{@server} &7Spawneri Kazma İle Kırabilirsin."
                add 1 to {dsp::%player%}
                while {dsp1::%location of event-block%::%player%} is set:
                    drop 1 iron ingot
                    wait 12 second
            else:
                cancel event
                send "{@server} &7Spawner Koymak İçin Hakkın Kalmamış."
        if name of player's tool is "&7Altın &aSpawner":
            if {asp::%player%} is smaller than or equal to {aspp::%player%}:
                set {asp1::%location of event-block%::%player%} to location of event-block
                wait 2 tick
                set block to gold ore
                send "{@server} &7Spawneri Başarıyla Koydun." to player
                send "{@server} &7Spawneri Kazma İle Kırabilirsin." to player
                add 1 to {asp::%player%}
                while {asp1::%location of event-block%::%player%} is set:
                    drop 1 gold ingot
                    wait 12 second
            else:
                cancel event
                send "{@server} &7Spawner Koymak İçin Hakkın Kalmamış" to player
        if name of player's tool is "&7Zümrüt &aSpawner":
            if {zsp::%player%} is smaller than or equal to {zspp::%player%}:
                set {zsp1::%location of event-block%::%player%} to location of event-block
                wait 2 tick
                set block to emerald ore
                send "{@server} &7Spawneri Başarıyla Koydun." to player
                send "{@server} &7Spawneri Kazma İle Kırabilirsin." to player
                wait 2 tick
                add 1 to {zsp::%player%}
                while {zsp1::%location of event-block%::%player%} is set:
                    drop 1 emerald
                    wait 12 second
            else:
                cancel event
                send "{@server} &7Spawner Koymak İçin Hakkın Kalmamış" to player
        if name of player's tool is "&7Elmas &aSpawner":
            if {esp::%player%} is smaller than or equal to {espp::%player%}:
                set {esp1::%location of event-block%::%player%} to location of event-block
                wait 2 tick
                set block to diamond ore
                send "{@server} &7Spawneri Başarıyla Koydun." to player
                send "{@server} &7Spawneri Kazma İle Kırabilirsin." to player
                wait 2 tick
                add 1 to {esp::%player%}
                while {esp1::%location of event-block%::%player%} is set:
                    drop 1 diamond
                    wait 12 second
            else:
                cancel event
                send "{@server} &7Spawner Koymak İçin Hakkın Kalmamış" to player
    else:
        if name of player's tool is "&7Demir &aSpawner":
            set {dsp1::%location of event-block%::%player%} to location of event-block
            wait 2 tick
            set block to iron ore
            send "{@server} &7Spawneri Başarıyla Koydun."
            send "{@server} &7Spawneri Kazma İle Kırabilirsin."
            add 1 to {dsp::%player%}
            while {dsp1::%location of event-block%::%player%} is set:
                drop 1 iron ingot
                wait 12 second
        if name of player's tool is "&7Altın &aSpawner":
            set {asp1::%location of event-block%::%player%} to location of event-block
            wait 2 tick
            set block to gold ore
            send "{@server} &7Spawneri Başarıyla Koydun." to player
            send "{@server} &7Spawneri Kazma İle Kırabilirsin." to player
            add 1 to {asp::%player%}
            while {asp1::%location of event-block%::%player%} is set:
                drop 1 gold ingot
                wait 12 second
        if name of player's tool is "&7Zümrüt &aSpawner":
            set {zsp1::%location of event-block%::%player%} to location of event-block
            wait 2 tick
            set block to emerald ore
            send "{@server} &7Spawneri Başarıyla Koydun." to player
            send "{@server} &7Spawneri Kazma İle Kırabilirsin." to player
            wait 2 tick
            add 1 to {zsp::%player%}
            while {zsp1::%location of event-block%::%player%} is set:
                drop 1 emerald
                wait 12 second
        if name of player's tool is "&7Elmas &aSpawner":
            set {esp1::%location of event-block%::%player%} to location of event-block
            wait 2 tick
            set block to diamond ore
            send "{@server} &7Spawneri Başarıyla Koydun." to player
            send "{@server} &7Spawneri Kazma İle Kırabilirsin." to player
            wait 2 tick
            add 1 to {esp::%player%}
            while {esp1::%location of event-block%::%player%} is set:
                drop 1 diamond
                wait 12 second

on break:
    if {dsp1::%location of event-block%::%player%} is set:
        remove 1 from {dsp::%player%}   
        cancel event
        set block to air
        clear {dsp1::%location of event-block%::%player%}
        remove location of event-block from {dsp1::*}
        give 1 iron ore named "&7Demir &aSpawner" with lore "&b&lZ&6&lSp &3» &7Kazma ile kırınız" to player
        send "{@server} &7Spawnerin verildi." to player
    else:
        if player has permission "op":
            set block to air
        else:
            send "{@server} &7Bu spawner senin değil!!" to player
            cancel event
            stop
    if {asp1::%location of event-block%::%player%} is set:
        remove 1 from {asp::%player%}
        cancel event
        set block to air
        clear {asp1::%location of event-block%::%player%}
        remove location of event-block from {asp1::*}
        give 1 gold ore named "&7Altın &aSpawner" with lore "&b&lZ&6&lSp &3» &7Kazma ile kırınız" to player
        send "{@server} &7Spawnerin verildi." to player
    else:
        if player has permission "op":
            set block to air
        else:
            send "{@server} &7Bu spawner senin değil!!" to player
            cancel event
            stop
    if {zsp1::%location of event-block%::%player%} is set:
        remove 1 from {zsp::%player%}
        cancel event
        set block to air
        clear {zsp1::%location of event-block%::%player%}
        remove location of event-block from {zsp1::*}
        give 1 emerald ore named "&7Zümrüt &aSpawner" with lore "&b&lZ&6&lSp &3» &7Kazma ile kırınız" to player
        send "{@server} &7Spawnerin verildi." to player
    else:
        if player has permission "op":
            set block to air
        else:
            send "{@server} &7Bu spawner senin değil!!" to player
            cancel event
            stop
    if {esp1::%location of event-block%::%player%} is set:
        remove 1 from {esp::%player%}
        cancel event
        set block to air
        clear {esp1::%location of event-block%::%player%}
        remove location of event-block from {esp1::*}
        give 1 diamond ore named "&7Elmas &aSpawner" with lore "&b&lZ&6&lSp &3» &7Kazma ile kırınız" to player
        send "{@server} &7Spawnerin verildi." to player
    else:
        if player has permission "op":
            set block to air
        else:
            send "{@server} &7Bu spawner senin değil!!" to player
            cancel event
            stop
        
command /Hak [<text>] [<player>] [<number>]:
    trigger:
        if player has permission "op":
            if arg 1 is set:
                if arg 2 is set:
                    if arg 3 is set:
                        if arg 1 is "demir" or "iron":
                            add arg-3 to {dspp::%arg 2%}
                        if arg 1 is "altın" or "gold":
                            add arg-3 to {aspp::%arg 2%}
                        if arg 1 is "dia" or "diamond" or "elmas":
                            add arg-3 to {espp::%arg 2%}
                        if arg 1 is "zümrüt" or "emerald":
                            add arg-3 to {zspp::%arg 2%}
                        send "{@server} &a%arg-2% &7adlı kişiye &61 &7adet &3%arg-1% &7Spawner kullanım hakkı verildi"
                    else:
                        send "{@server} &cSayı Girmelisin!"
                else:
                    send "{@server} &cIsim Girmelisin!"
            else:
                send "{@server} &7Kullanım &7/&2Hak &7[&fDemir&7/&6Altın&7/&bElmas&7/&eEnd&7/&3Sünger&7] [&aIsim&7] [&aAdet&7]" to player
        else:
            send "{@server} &7Bu komutu kullanamazsın." to player
 
ItemSpawner plugini ile isteğinizi yapabilirsiniz bu konu hakkında skript kullanmanızı önermem başka spawnerleride bu pluginden ayarlayabilirsiniz.
78831
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl
Üst