Çözüldü Spawner Skripti HATASI

  • Konuyu Başlatan Konuyu Başlatan MrMrt
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 1.294
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

MrMrt

Odunlara Vur Vur Vur!
Katılım
28 Ekim 2017
Mesajlar
39
Elmaslar
13
Puan
8.770
Yaş
26

Discord:

ホ DJTombik #0626

Arkadaşlar Merhabalar.
SkyBlock sunucumda item spawer skripti yaptım fakat skriptte şöyle bir sıkıntı var:
OP lar spawnerı koyabilirken oyuncular spawnerı koyamıyor koyunca geri envanterine geliyor.
KAYNAK KOD:
Kod:
options:
   p: &8(&4&lHanedan&f&lNW&8)
   demirsp: &f&lDemir &4Spawner
   altinsp: &f&lAltin &4Spawner
   demirbsp: &f&lDemir Blok &4Spawner
   altinbsp: &f&lAltin Blok &4Spawner
   elmasbsp: &f&lElmas Blok &4Spawner
   myceliumsp: &f&lMycelium &4Spawner
   endstonesp: &f&lEnd Stone &4Spawner
   
command /spawner [<text>] [<player>] [<int>]:
   trigger:
       if player is op:
           if arg-1 is not set:
               message "         {@p}"
               message "&e/spawner <Spawner Ismi> <Oyuncu> <Adet>"
               message ""
               stop
           if arg-1 is not "demir" or "altin" or "demirb" or "altinb" or "elmasb" or "mycelium" or "endstone":
               message "         {@p}"
               message "&e&lSpawner Listesi &8&l:"
               message "&8&l- &fdemir"
               message "&8&l- &faltin"
               message "&8&l- &fdemirb"
               message "&8&l- &faltinb"
               message "&8&l- &felmasb"
               message "&8&l- &fmycelium"
               message "&8&l- &fendstone"
               stop
           if arg-1 is "demir":
               if arg-2 is set:
                   if arg-3 is set:
                       loop arg-3 times:
                           give a 52 named "{@demirsp}" to arg-2
                       message "{@p} &eBasariyla &c%arg-2% &eAdli kisiye &c%arg-3% Adet {@demirsp} &eVerdin"
                       stop
                   else:
                       message "{@p} &cLutfen adet giriniz"
               else:
                   message "{@p} &cLutfen oyuncu ismi giriniz"
           if arg-1 is "altin":
               if arg-2 is set:
                   if arg-3 is set:
                       loop arg-3 times:
                           give a 52 named "{@altinsp}" to arg-2
                       message "{@p} &eBasariyla &c%arg-2% &eAdli kisiye &c%arg-3% Adet {@altinsp} &eVerdin"
                       stop
                   else:
                       message "{@p} &cLutfen adet giriniz"
               else:
                   message "{@p} &cLutfen oyuncu ismi giriniz"
           if arg-1 is "demirb":
               if arg-2 is set:
                   if arg-3 is set:
                       loop arg-3 times:
                           give a 52 named "{@demirbsp}" to arg-2
                       message "{@p} &eBasariyla &c%arg-2% &eAdli kisiye &c%arg-3% Adet {@demirbsp} &eVerdin"
                       stop
                   else:
                       message "{@p} &cLutfen adet giriniz"
               else:
                   message "{@p} &cLutfen oyuncu ismi giriniz"
           if arg-1 is "altinb":
               if arg-2 is set:
                   if arg-3 is set:
                       loop arg-3 times:
                           give a 52 named "{@altinbsp}" to arg-2
                       message "{@p} &eBasariyla &c%arg-2% &eAdli kisiye &c%arg-3% Adet {@altinbsp} &eVerdin"
                       stop
                   else:
                       message "{@p} &cLutfen adet giriniz"
               else:
                   message "{@p} &cLutfen oyuncu ismi giriniz"
           if arg-1 is "elmasb":
               if arg-2 is set:
                   if arg-3 is set:
                       loop arg-3 times:
                           give a 52 named "{@elmasbsp}" to arg-2
                       message "{@p} &eBasariyla &c%arg-2% &eAdli kisiye &c%arg-3% Adet {@elmasbsp} &eVerdin"
                       stop
                   else:
                       message "{@p} &cLutfen adet giriniz"
               else:
                   message "{@p} &cLutfen oyuncu ismi giriniz"
           if arg-1 is "mycelium":
               if arg-2 is set:
                   if arg-3 is set:
                       loop arg-3 times:
                           give a 52 named "{@myceliumsp}" to arg-2
                       message "{@p} &eBasariyla &c%arg-2% &eAdli kisiye &c%arg-3% Adet {@myceliumsp} &eVerdin"
                       stop
                   else:
                       message "{@p} &cLutfen adet giriniz"
               else:
                   message "{@p} &cLutfen oyuncu ismi giriniz"
           if arg-1 is "endstone":
               if arg-2 is set:
                   if arg-3 is set:
                       loop arg-3 times:
                           give a 52 named "{@endstonesp}" to arg-2
                       message "{@p} &eBasariyla &c%arg-2% &eAdli kisiye &c%arg-3% Adet {@elmasbsp} &eVerdin"
                       stop
                   else:
                       message "{@p} &cLutfen adet giriniz"
               else:
                   message "{@p} &cLutfen oyuncu ismi giriniz"
     
on place of a mob spawner:
   set {_someVariable} to name of held item of player
   {_someVariable} is "{@demirsp}"
   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 1 second
   execute op command  "setblock %{_x}% %{_y}% %{_z}% mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:iron_ingot,Count:1b}},SpawnCount:1,SpawnRange:1,RequiredPlayerRange:140,Delay:120,MinSpawnDelay:45,MaxSpawnDelay:45,MaxNearbyEntities:64}"
   send "{@p} &8&l» &eBasariyla {@demirsp} &eKoydun"
   set {_1} to location of event-block
   add {_1} to {demirsp::*}
   
on place of a mob spawner:
   set {_someVariable} to name of held item of player
   {_someVariable} is "{@altinsp}"
   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 1 second
   execute op command  "setblock %{_x}% %{_y}% %{_z}% mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:gold_ingot,Count:1b}},SpawnCount:1,SpawnRange:1,RequiredPlayerRange:140,Delay:120,MinSpawnDelay:45,MaxSpawnDelay:45,MaxNearbyEntities:64}"
   send "{@p} &8&l» &eBasariyla {@altinsp} &eKoydun"
   set {_1} to location of event-block
   add {_1} to {altinsp::*}
   
on place of a mob spawner:
   set {_someVariable} to name of held item of player
   {_someVariable} is "{@demirbsp}"
   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 1 second
   execute op command  "setblock %{_x}% %{_y}% %{_z}% mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:iron_block,Count:1b}},SpawnCount:1,SpawnRange:1,RequiredPlayerRange:140,Delay:120,MinSpawnDelay:55,MaxSpawnDelay:55,MaxNearbyEntities:64}"
   send "{@p} &8&l» &eBasariyla {@demirbsp} &eKoydun"
   set {_1} to location of event-block
   add {_1} to {demirbsp::*}
   
on place of a mob spawner:
   set {_someVariable} to name of held item of player
   {_someVariable} is "{@altinbsp}"
   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 1 second
   execute op command  "setblock %{_x}% %{_y}% %{_z}% mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:gold_block,Count:1b}},SpawnCount:1,SpawnRange:1,RequiredPlayerRange:140,Delay:120,MinSpawnDelay:55,MaxSpawnDelay:55,MaxNearbyEntities:64}"
   send "{@p} &8&l» &eBasariyla {@altinbsp} &eKoydun"
   set {_1} to location of event-block
   add {_1} to {altinbsp::*}
   
on place of a mob spawner:
   set {_someVariable} to name of held item of player
   {_someVariable} is "{@elmasbsp}"
   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 1 second
   execute op command  "setblock %{_x}% %{_y}% %{_z}% mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:diamond_block,Count:1b}},SpawnCount:1,SpawnRange:1,RequiredPlayerRange:140,Delay:120,MinSpawnDelay:75,MaxSpawnDelay:75,MaxNearbyEntities:64}"
   send "{@p} &8&l» &eBasariyla {@elmasbsp} &eKoydun"
   set {_1} to location of event-block
   add {_1} to {elmasbsp::*}
   
on place of a mob spawner:
   set {_someVariable} to name of held item of player
   {_someVariable} is "{@myceliumsp}"
   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 1 second
   execute op command  "setblock %{_x}% %{_y}% %{_z}% mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:mycelium,Count:1b}},SpawnCount:1,SpawnRange:1,RequiredPlayerRange:140,Delay:120,MinSpawnDelay:200,MaxSpawnDelay:200,MaxNearbyEntities:64}"
   send "{@p} &8&l» &eBasariyla {@myceliumsp} &eKoydun"
   set {_1} to location of event-block
   add {_1} to {myceliumsp::*}
   
on place of a mob spawner:
   set {_someVariable} to name of held item of player
   {_someVariable} is "{@endstonesp}"
   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 1 second
   execute op command "setblock %{_x}% %{_y}% %{_z}% mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:end_stone,Count:1b}},SpawnCount:1,SpawnRange:1,RequiredPlayerRange:140,Delay:120,MinSpawnDelay:200,MaxSpawnDelay:200,MaxNearbyEntities:64}"
   send "{@p} &8&l» &eBasariyla {@endstonesp} &eKoydun"
   set {_1} to location of event-block
   add {_1} to {endstonesp::*}
   
on break of mob spawner:
   set {_sp} to location of event-block
   loop {demirsp::*}:
       loop-value is {_sp}
       if lore of player's tool is "&dSpKirici I":
           cancel event
           set block at {_sp} to air
           give a 52 named "{@demirsp}" to player
           remove {_sp} from {demirsp::*}
           stop
       else:
           cancel event
           message "{@p} &cSpawnerlari sadece &dSpKirici &cbuyusunu tasiyan kazmalarla kirabilirsin"
           stop
         
on break of mob spawner:
   set {_sp} to location of event-block
   loop {altinsp::*}:
       loop-value is {_sp}
       if lore of player's tool is "&dSpKirici I":
           cancel event
           set block at {_sp} to air
           give a 52 named "{@altinsp}" to player
           remove {_sp} from {altinsp::*}
           stop
       else:
           cancel event
           message "{@p} &cSpawnerlari sadece &dSpKirici &cbuyusunu tasiyan kazmalarla kirabilirsin"
           stop
         
on break of mob spawner:
   set {_sp} to location of event-block
   loop {demirbsp::*}:
       loop-value is {_sp}
       if lore of player's tool is "&dSpKirici I":
           cancel event
           set block at {_sp} to air
           give a 52 named "{@demirbsp}" to player
           remove {_sp} from {demirbsp::*}
           stop
       else:
           cancel event
           message "{@p} &cSpawnerlari sadece &dSpKirici &cbuyusunu tasiyan kazmalarla kirabilirsin"
           stop
         
on break of mob spawner:
   set {_sp} to location of event-block
   loop {altinbsp::*}:
       loop-value is {_sp}
       if lore of player's tool is "&dSpKirici I":
           cancel event
           set block at {_sp} to air
           give a 52 named "{@altinbsp}" to player
           remove {_sp} from {altinbsp::*}
           stop
       else:
           cancel event
           message "{@p} &cSpawnerlari sadece &dSpKirici &cbuyusunu tasiyan kazmalarla kirabilirsin"
           stop
         
on break of mob spawner:
   set {_sp} to location of event-block
   loop {elmasbsp::*}:
       loop-value is {_sp}
       if lore of player's tool is "&dSpKirici I":
           cancel event
           set block at {_sp} to air
           give a 52 named "{@elmasbsp}" to player
           remove {_sp} from {elmasbsp::*}
           stop
       else:
           cancel event
           message "{@p} &cSpawnerlari sadece &dSpKirici &cbuyusunu tasiyan kazmalarla kirabilirsin"
           stop
         
on break of mob spawner:
   set {_sp} to location of event-block
   loop {myceliumsp::*}:
       loop-value is {_sp}
       if lore of player's tool is "&dSpKirici I":
           cancel event
           set block at {_sp} to air
           give a 52 named "{@myceliumsp}" to player
           remove {_sp} from {myceliumsp::*}
           stop
       else:
           cancel event
           message "{@p} &cSpawnerlari sadece &dSpKirici &cbuyusunu tasiyan kazmalarla kirabilirsin"
           stop
         
on break of mob spawner:
   set {_sp} to location of event-block
   loop {endstonesp::*}:
       loop-value is {_sp}
       if lore of player's tool is "&dSpKirici I":
           cancel event
           set block at {_sp} to air
           give a 52 named "{@endstonesp}" to player
           remove {_sp} from {endstonesp::*}
           stop
       else:
           cancel event
           message "{@p} &cSpawnerlari sadece &dSpKirici &cbuyusunu tasiyan kazmalarla kirabilirsin"
           stop
 
Bunu senin kodladığına inanmıyorum dostum çünkü kodlarken şu kodu yazmazdın eğer problemin buysa, düzeltebilirdin. (execute op command yazdığın için oyuncular koyamıyor.)
Kod:
execute op command  "setblock %{_x}% %{_y}% %{_z}% mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:mycelium,Count:1b}},SpawnCount:1,SpawnRange:1,RequiredPlayerRange:140,Delay:120,MinSpawnDelay:200,MaxSpawnDelay:200,MaxNearbyEntities:64}"
 
Bunu senin kodladığına inanmıyorum dostum çünkü kodlarken şu kodu yazmazdın eğer problemin buysa, düzeltebilirdin. (execute op command yazdığın için oyuncular koyamıyor.)
Kod:
execute op command  "setblock %{_x}% %{_y}% %{_z}% mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:mycelium,Count:1b}},SpawnCount:1,SpawnRange:1,RequiredPlayerRange:140,Delay:120,MinSpawnDelay:200,MaxSpawnDelay:200,MaxNearbyEntities:64}"
Öncelikle yorumlar için teşekkürler. Skript bana aittir cordinat alma sadece alıntıdır. execute op command oraya console veya player yazarsam consolda olmuyor çünkü server.propertiesden ana dünyayı ASkyBlock yapınca adalar bozuluyor player yaparsam yetkisi olmayanlar koyamıyor.
 
Bunu senin kodladığına inanmıyorum dostum çünkü kodlarken şu kodu yazmazdın eğer problemin buysa, düzeltebilirdin. (execute op command yazdığın için oyuncular koyamıyor.)
Kod:
execute op command  "setblock %{_x}% %{_y}% %{_z}% mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:mycelium,Count:1b}},SpawnCount:1,SpawnRange:1,RequiredPlayerRange:140,Delay:120,MinSpawnDelay:200,MaxSpawnDelay:200,MaxNearbyEntities:64}"
Execute op command'ın ne işe yaradığını umarım biliyorsundur çünkü oyuncuyu op yerine koyup komut yazdırıyor. @MrMrt Sıkıntı olmasına pek olanak tanımıyorum ama linkteki kodu dene:
Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.
 
Bunu senin kodladığına inanmıyorum dostum çünkü kodlarken şu kodu yazmazdın eğer problemin buysa, düzeltebilirdin. (execute op command yazdığın için oyuncular koyamıyor.)
Kod:
execute op command  "setblock %{_x}% %{_y}% %{_z}% mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:mycelium,Count:1b}},SpawnCount:1,SpawnRange:1,RequiredPlayerRange:140,Delay:120,MinSpawnDelay:200,MaxSpawnDelay:200,MaxNearbyEntities:64}"
Öncelikle yorumlar için teşekkürler. Skript bana aittir cordinat alma sadece alıntıdır. execute op command oraya console veya player yazarsam consolda olmuyor çünkü server.propertiesden ana dünyayı ASkyBlock yapınca adalar bozuluyor player yaparsam yetkisi olmayanlar koyamıyor.
Execute op command'ın ne işe yaradığını umarım biliyorsundur çünkü oyuncuyu op yerine koyup komut yazdırıyor. @MrMrt Sıkıntı olmasına pek olanak tanımıyorum ama linkteki kodu dene:
Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.
Sorun çözüldü hocam yardımlarınız için teşekkürler. (KONU KILIT)
 
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