Skript Ekleme Yapımı İtemSpawner

ClearMan61

Kömür Madencisi
En iyi cevaplar
0
Arkadaşlar benim böyle bir itemsp skriptim var buna normal kazmayla kırınca envantere gelme özelliği eklermisiniz hepsine demir altın diamond zümrüte
PHP:
Kod (Genel):

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: garoznw.sp
    permission message:&aGaroz&fNW &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: garoznw.bakmak
    permission message: &cSprey&fMC &4Kullanmak Icin Yetkiniz Yok
    trigger:
        arg 1 is set:
            send "&aGaroz&fNW &eDemir Spawner Sayisi &8= &c%{dsp.%arg 1%}%"
            send "&aGaroz&fNW &eAltin Spawner Sayisi &8= &c%{asp.%arg 1%}%"
            send "&aGaroz&fNW &eElmas Spawner Sayisi &8= &c%{esp.%arg 1%}%"
            send "&aGaroz&fNW &eZumrut Spawner Sayisi &8= &c%{zsp.%arg 1%}%"
            send "&aGaroz&fNW &cToplam Spawner Sayisi &8= &c%{aasp.%arg 1%}%"
            stop
        else:
            send "&aGaroz&fNW &7Lütfen Bir Isim Seciniz"
      
command /spver <player> <number> <text>:
    permission: SpreyMC.sp
    permission message: &aGaroz&fNW &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 "&aGaroz&fNW &aSpawneri Basariyla Verdiniz!" to player
                    else:
                        if arg 3 is "elmas":
                            execute console command "/espver %arg 1% %arg 2%"
                            send "&aGaroz&fNW &aSpawneri Basariyla Verdiniz!" to player
                        else:
                            if arg 3 is "altin":
                                execute console command "/aspver %arg 1% %arg 2%"
                                send "&aGaroz&fNW &aSpawneri Basariyla Verdiniz!" to player
                            else:
                                if arg 3 is "zumrut":
                                    execute console command "/zspver %arg 1% %arg 2%"
                                    send "&aGaroz&fNW &aSpawneri Basariyla Verdiniz!" to player
                else:
                    send "&&aGaroz&fNW &cKullanim &7/Spver <Kullaniciadi> <adet> <Spawner>" to player
            else:
                send "&aGaroz&fNW &cKullanim &7/Spver <Kullaniciadi> <adet> <Spawner>" to player
        else:
            send "&aGaroz&fNW &cKullanim &7/Spver <Kullaniciadi> <adet> <Spawner>" to player
          
command /espver [<player>] <number>:
    permission: garoznw.sp
    permission message: &aGaroz&fNW &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: &aGaroz&fNW &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:diamond,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 "&aGaroz&fNW &cSkript Basariyla Yenilendi" to player
        else:
            send "&4Bunu Yapamazsin." to player
      
command /sp yardim:
    trigger:
        if player have permission "SpreyMC.SP":
            send "&6--------------&aGaroz&fNW&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--------------&aGaroz&fNW&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 "&aGaroz&fNW &6Basariyla Butun Spawnerler Silindi !" to player
 

Joka

Ağaç Yumruklayıcı
En iyi cevaplar
0
Sahip olma olayını gereksiz bulduğum için on break: eventine koyamadım. Istersen kendin ayarlayabilirsin.
Linki görebilmek için üye olmanız gerekiyor. Giriş yap veya üye ol.
 

Joka

Ağaç Yumruklayıcı
En iyi cevaplar
0
Hocam spreytim skripti çok karışık. İstersen sana kendi skriptimi vereyim.
 
Üst