Yardım konu kilit

ChiaX

Team Arcenia
Emektar Üye
Mesajlar
596
En iyi cevaplar
37
Beğeniler
694
Puanları
2,620
Ruh hali
Bunu kullanabilirsiniz.
Skript benim değildir.
Kod:
variables:
    {dsp.%player%} = 0
    {esp.%player%} = 0
    {asp.%player%} = 0
    {zsp.%player%} = 0
    {aasp.%player%} = 0
 
options:
    delay: 1 # zaman
    count: 1 # adet

command /dspver [<player>] <number>:
    permission: SpreyMC.sp
    permission message: &cSprey&fMC &4Kullanmak Icin Yetkiniz Yok
    trigger:
        if arg 1 is set:
            if arg 2 is set:
                execute console command "manuaddp %arg 1% DSP.Kullanim"
                execute console command "give %arg 1% 52 %arg 2% name:&eDemirSpawner lore:&cKullanmadan_Once_envanterinizi_Bosaltin"
                add arg-2 to {dsp.%arg-1%}
                add arg-2 to {aasp.%arg-1%}
            else:
                send "&cKullanim : &7/dspver &c<kullaniciadi> &C<Adet>" to player
        else:
            send "&cKullanim : &7/dspver &c<kullaniciadi> &C<Adet>" to player
 
on place of a mob spawner:
    if name of player's tool is "&eDemirSpawner":
        if {dsp.%player%} is bigger than 0:
            set {_x} to x coord of event-location
            set {_y} to y coord of event-location
            set {_z} to z coord of event-location
            execute console command "manuaddp %player% minecraft.command.setblock"
            wait 0.3 seconds
            execute player command  "setblock %{_x}% %{_y}% %{_z}% minecraft:mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:iron_ingot,Count:1}},SpawnCount:{@count},SpawnRange:2,RequiredPlayerRange:10,delay:{@delay},MinSpawnDelay:40,MaxSpawnDelay:100,MaxNearbyEntities:9999}"
            send "&e&l > &eDemir Spawneri başarıyla koydun!"
            execute console command "manudelp %player% minecraft.command.setblock"
            set {_1} to location of event-block
            add {_1} to {elmasspawner::*}
            add -1 to {dsp.%player%}
            add -1 to {aasp.%player%}
        else:
            cancel event
            Send "&cOnce Satin Almalisiniz" to player
 
command /spbak <player>:
    permission: SpreyMC.bakmak
    permission message: &cSprey&fMC &4Kullanmak Icin Yetkiniz Yok
    trigger:
        arg 1 is set:
            send "&cSprey&fMC &eDemir Spawner Sayisi &8= &c%{dsp.%arg 1%}%"
            send "&cSprey&fMC &eAltin Spawner Sayisi &8= &c%{asp.%arg 1%}%"
            send "&cSprey&fMC &eElmas Spawner Sayisi &8= &c%{esp.%arg 1%}%"
            send "&cSprey&fMC &eZumrut Spawner Sayisi &8= &c%{zsp.%arg 1%}%"
            send "&cSprey&fMC &cToplam Spawner Sayisi &8= &c%{aasp.%arg 1%}%"
            stop
        else:
            send "&cSprey&fMC &7Lütfen Bir Isim Seciniz"
      
command /spver <player> <number> <text>:
    permission: SpreyMC.sp
    permission message: &cSprey&fMC &4Kullanmak Icin Yetkiniz Yok
    trigger:
        if arg 1 is set:
            if arg 2 is set:
                if arg 3 is set:
                    if arg 3 is "demir":
                        execute console command "/dspver %arg 1% %arg 2%"
                        send "&cSprey&fMC &aSpawneri Basariyla Verdiniz!" to player
                    else:
                        if arg 3 is "elmas":
                            execute console command "/espver %arg 1% %arg 2%"
                            send "&cSprey&fMC &aSpawneri Basariyla Verdiniz!" to player
                        else:
                            if arg 3 is "altin":
                                execute console command "/aspver %arg 1% %arg 2%"
                                send "&cSprey&fMC &aSpawneri Basariyla Verdiniz!" to player
                            else:
                                if arg 3 is "zumrut":
                                    execute console command "/zspver %arg 1% %arg 2%"
                                    send "&cSprey&fMC &aSpawneri Basariyla Verdiniz!" to player
                else:
                    send "&cSprey&fMC &cKullanim &7/Spver <Kullaniciadi> <adet> <Spawner>" to player
            else:
                send "&cSprey&fMC &cKullanim &7/Spver <Kullaniciadi> <adet> <Spawner>" to player
        else:
            send "&cSprey&fMC &cKullanim &7/Spver <Kullaniciadi> <adet> <Spawner>" to player
          
command /espver [<player>] <number>:
    permission: SpreyMC.sp
    permission message: &cSprey&fMC &4Kullanmak Icin Yetkiniz Yok
    trigger:
        if arg 1 is set:
            if arg 2 is set:
                execute console command "manuaddp %arg 1% ESP.Kullanim"
                execute console command "give %arg 1% 52 %arg 2% name:&eElmasSpawner lore:&cKullanmadan_Once_envanterinizi_Bosaltin"
                add arg-2 to {esp.%arg-1%}
                add arg-2 to {aasp.%arg-1%}
            else:
                send "&cKullanim : &7/espver &c<kullaniciadi> &C<Adet>" to player
        else:
            send "&cKullanim : &7/espver &c<kullaniciadi> &C<Adet>" to player
      
command /aspver [<player>] <number>:
    permission: SpreyMC.sp
    permission message: &cSprey&fMC &4Kullanmak Icin Yetkiniz Yok
    trigger:
        if arg 1 is set:
            if arg 2 is set:
                execute console command "manuaddp %arg 1% ASP.Kullanim"
                execute console command "give %arg 1% 52 %arg 2% name:&eAltinSpawner lore:&cKullanmadan_Once_envanterinizi_Bosaltin"
                add arg-2 to {asp.%arg-1%}
                add arg-2 to {aasp.%arg-1%}
            else:
                send "&cKullanim : &7/aspver &c<kullaniciadi> &C<Adet>" to player
        else:
            send "&cKullanim : &7/aspver &c<kullaniciadi> &C<Adet>" to player
              
command /zspver [<player>] <number>:
    permission: SpreyMC.sp
    permission message: &cSprey&fMC &4Kullanmak Icin Yetkiniz Yok
    trigger:
        if arg 1 is set:
            if arg 2 is set:
                execute console command "manuaddp %arg 1% ZSP.Kullanim"
                execute console command "give %arg 1% 52 %arg 2% name:&eZumrutSpawner lore:&cKullanmadan_Once_envanterinizi_Bosaltin"
                add arg-2 to {zsp.%arg-1%}
                add arg-2 to {aasp.%arg-1%}
            else:
                send "&cKullanim : &7/zspver &c<kullaniciadi> &C<Adet>" to player
        else:
            send "&cKullanim : &7/zspver &c<kullaniciadi> &C<Adet>" to player
              
on place of a mob spawner:
    if name of player's tool is "&eElmasSpawner":
        if {esp.%player%} is bigger than 0:
            set {_x} to x coord of event-location
            set {_y} to y coord of event-location
            set {_z} to z coord of event-location
            execute console command "manuaddp %player% minecraft.command.setblock"
            wait 0.3 seconds
            execute player command  "setblock %{_x}% %{_y}% %{_z}% minecraft:mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id[emoji815],Count:1}},SpawnCount:{@count},SpawnRange:2,RequiredPlayerRange:10,delay:{@delay},MinSpawnDelay:40,MaxSpawnDelay:100,MaxNearbyEntities:9999}"
            send "&e&l > &eElmas Spawneri başarıyla koydun!"
            execute console command "manudelp %player% minecraft.command.setblock"
            set {_1} to location of event-block
            add {_1} to {elmasspawner::*}
            add -1 to {esp.%player%}
            add -1 to {aasp.%player%}
        else:
            cancel event
            Send "&cOnce Satin Almalisiniz" to player

on place of a mob spawner:
    if name of player's tool is "&eAltinSpawner":
        if {asp.%player%} is bigger than 0:
            set {_x} to x coord of event-location
            set {_y} to y coord of event-location
            set {_z} to z coord of event-location
            wait 0.3 seconds
            execute console command "manuaddp %player% minecraft.command.setblock"
            execute player command  "setblock %{_x}% %{_y}% %{_z}% minecraft:mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:gold_ingot,Count:1}},SpawnCount:2,SpawnCount:{@count},SpawnRange:2,RequiredPlayerRange:10,delay:{@delay},MinSpawnDelay:40,MaxSpawnDelay:100,MaxNearbyEntities:9999}"
            send "&e&l > &eAltin Spawneri başarıyla koydun!"
            execute console command "manudelp %player% minecraft.command.setblock"
            set {_1} to location of event-block
            add {_1} to {elmasspawner::*}
            add -1 to {asp.%player%}
            add -1 to {aasp.%player%}
        else:
            cancel event
            Send "&cOnce Satin Almalisiniz" to player
          
on place of a mob spawner:
    if name of player's tool is "&eZumrutSpawner":
        if {zsp.%player%} is bigger than 0:
            set {_x} to x coord of event-location
            set {_y} to y coord of event-location
            set {_z} to z coord of event-location
            wait 0.3 seconds
            execute console command "manuaddp %player% minecraft.command.setblock"
            execute player command  "setblock %{_x}% %{_y}% %{_z}% minecraft:mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:emerald,Count:1}},SpawnCount:{@count},SpawnRange:2,RequiredPlayerRange:10,delay:{@delay},MinSpawnDelay:40,MaxSpawnDelay:100,MaxNearbyEntities:9999}"
            send "&e&l > &eZumrut Spawneri başarıyla koydun!"
            execute console command "manudelp %player% minecraft.command.setblock"
            set {_1} to location of event-block
            add {_1} to {elmasspawner::*}
            add -1 to {zsp.%player%}
            add -1 to {aasp.%player%}
        else:
            cancel event
            Send "&cOnce Satin Almalisiniz" to player
          
command /spyenile:
    trigger:
        if player have permission "SpreyMC.SP":
            execute console command "sk reload spwnr"
            send "&eSprey&FMC &cSkript Basariyla Yenilendi" to player
        else:
            send "&4Bunu Yapamazsin." to player
      
command /sp yardim:
    trigger:
        if player have permission "SpreyMC.SP":
            send "&6--------------&cSprey&fMC&6------------" to player
            send "&6/spyenile &aSkripti Yeniler"
            send "&6/spver <isim> <adet> <spawner (demir , altin , elmas , zumrut)> &aKisiye Spawner Verir " to player
            send "&6/spbak <isim> &a Kisinin Kac Adet Spawnere Sahip Oldugu Gozukur"
            send "&6/spsil <isim> &a Kisinin Butun Spawnerlerini Siler."
            send "&6--------------&cSprey&fMC&6------------" to player
      
command /spsil <player>:
    permission: SpreyMC.sp
    permission message: &eBunu Kullanamazsin.
    trigger:
        set {dsp.%arg 1%} to 0
        set {esp.%arg 1%} to 0
        set {asp.%arg 1%} to 0
        set {zsp.%arg 1%} to 0
        set {aasp.%arg 1%} to 0
        execute console command "manudelp %arg 1% DSP.Kullanim"
        execute console command "manudelp %arg 1% ESP.Kullanim"
        execute console command "manudelp %arg 1% ASP.Kullanim"
        execute console command "manudelp %arg 1% ZSP.Kullanim"
        send "&cSprey&fMC &6Basariyla Butun Spawnerler Silindi !" to player
 

ToprakM

KEK
Emektar Üye
Mesajlar
440
En iyi cevaplar
49
Beğeniler
661
Puanları
2,375
Ruh hali
Şu satırı kullanarak konsola/oyuncuya komut yazdırtabilirsiniz;
Konsola komut yazdırtma: execute console command "komut"
Oyuncuya komut yazdırtma: execute player command "komut"

Kodundaki alakalı kısma şunu eklersen sorunun çözülür sanırım
execute console command "itemsp ver %player% Spawnerİsmi 4"
(Spawner İsmini bilmediğim için yazmadım sen düzeltirsin.)
 

Üst