Çözüldü Spawner Skript

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

DarkSavci

Birisi mi Spawnlandı?
Katılım
7 Temmuz 2019
Mesajlar
9
Elmaslar
1
Puan
13.400
Yaş
20
Minecraft
DarkSavci

Discord:

DarkSavci#5342

Kod:
command /demirsp:
    permission: op
    permission message: {@prefix} &8» &9Bu komutu kullanamazsin.
    trigger:
        give 1 mob spawner named "&fDemir &9Spawner" to player
        
on place of mob spawner:
    if name of player's tool is "&fDemir &9Spawner":                   
        set {_location} to location of targeted block
        set {demirspawner1::%{_location}%} to {_location}       
        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 2 tick
        execute player command "setblock %{_x}% %{_y}% %{_z}% mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:iron_ingot,Count:4b}},SpawnCount:1,SpawnRange:2,RequiredPlayerRange:15,Delay:3,MinSpawnDelay:70,MaxSpawnDelay:80,MaxNearbyEntities:9999}"
        wait 2 tick
        execute console command "manudelp %player% minecraft.command.setblock"   
        send "{@prefix} &8» &9Spawneri kazma ile kirabilirsin." to player
        send "{@prefix} &8» &9Kirinca sana verilecektir." to player

on break of mob spawner:
    if {demirspawner1::%location of targeted block%} is set:
        remove location of targeted block from {demirspawner1::*}
        clear {demirblokspawner1::%location of targeted block%}
        cancel event
        set event-block to air
        give 1 mob spawner named "&fDemir &9Spawner" to player
        send "{@prefix} &8» &9Spawnerin verildi." to player


Block Placed Yazısını Nasıl Kaldırırım
Screenshot_13.png
 
Silkspawnersi sil.
 
İtemspawner istiyorsan silkspawnersi sileceksin başka bir seçenek yok.
 
Oyundayken /gamerule commandBlockOutput false komutunu dener misin ?
 
şunu denermisin:
 
execute player command "setblock %{_x}% %{_y}% %{_z}% mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:iron_ingot,Count:4b}},SpawnCount:1,SpawnRange:2,RequiredPlayerRange:15,Delay:3,MinSpawnDelay:70,MaxSpawnDelay:80,MaxNearbyEntities:9999}"

Bu kodu skripttinde şöyle değiştirerek kullanabilir misin ?


execute console command "setblock %{_x}% %{_y}% %{_z}% mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:iron_ingot,Count:4b}},SpawnCount:1,SpawnRange:2,RequiredPlayerRange:15,Delay:3,MinSpawnDelay:70,MaxSpawnDelay:80,MaxNearbyEntities:9999}"
 
Şunu dener misin ?

Kod:
command /demirsp:
    permission: op
    permission message: {@prefix} &8» &9Bu komutu kullanamazsin.
    trigger:
        give 1 mob spawner named "&fDemir &9Spawner" to player
       
on place of mob spawner:
    if name of player's tool is "&fDemir &9Spawner":                  
        set {_location} to location of targeted block
        set {demirspawner1::%{_location}%} to {_location}      
        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 2 tick
        execute console command "setblock %{_x}% %{_y}% %{_z}% mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:iron_ingot,Count:4b}},SpawnCount:1,SpawnRange:2,RequiredPlayerRange:15,Delay:3,MinSpawnDelay:70,MaxSpawnDelay:80,MaxNearbyEntities:9999}"
        wait 2 tick
        execute console command "manudelp %player% minecraft.command.setblock"  
        send "{@prefix} &8» &9Spawneri kazma ile kirabilirsin." to player
        send "{@prefix} &8» &9Kirinca sana verilecektir." to player

on break of mob spawner:
    if {demirspawner1::%location of targeted block%} is set:
        remove location of targeted block from {demirspawner1::*}
        clear {demirblokspawner1::%location of targeted block%}
        cancel event
        set event-block to air
        give 1 mob spawner named "&fDemir &9Spawner" to player
        send "{@prefix} &8» &9Spawnerin verildi." to player
 
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