Skript yanlış çalışıyor

Secret_wither

Bedrock Kaşifi
Mesajlar
1,924
En iyi cevaplar
0
Beğeniler
499
Puanları
1,290
Bu skriptte adam ölüyor yatağın yanına doğuyor sonra adamı spawna ışınlıyor. Nedenini bir türlü çözemedim.
Kod:
Options:
    TeleportCountdown: true
    CountdownSecond: 3
    TpJoin: false
    FirstJoinTp: true
    BedSupport: true
    #About BedSystem: Recommed 1. But if your player's bed near to the spawn change this to 2.
    BedSystem: 2
    RespawnTp: true

on respawn:
    if {spawn} is set:
        if {@BedSystem} is not 2:
            if {@BedSupport} is true:
                if {@RespawnTp} is true:
                    wait 0.30 seconds
                    if the distance between the player and {spawn} is smaller than 100:
                        teleport player to {spawn}
                        wait 1 second
                        If location of player is not equal to {_spawnnear}:
                            teleport player to {spawn}
        else:
            if {@BedSystem} is not 1:
                if {@BedSupport} is true:
                    if {@RespawnTp} is true:
                        wait 2 seconds
                        loop all blocks in radius 10 of player:
                            if loop-block isn't White Bed or Orange Bed or Magenta Bed or Light Blue Bed or Yellow Bed or Lime Bed or Pink Bed or Gray Bed or Light Gray Bed or Cyan Bed or Purple Bed or Blue Bed or Brown Bed or Green Bed or Red Bed or Black Bed:
                                teleport player to {spawn}
                                wait 2 seconds
                                If location of player is not equal to {_spawnnear}:
                                    teleport player to {spawn}
                                    stop
            else:
                if {@BedSupport} is false:
                    if {@RespawnTp} is true:
                        teleport player to {spawn}
                        wait 1 second
                        if the distance between the player and {spawn} isn't smaller than 100:
                            teleport player to {spawn}
 


Riaxetr

Şehit mi düştü asker? Cennet koktu da her yer..
Mesajlar
107
En iyi cevaplar
0
Beğeniler
184
Puanları
280
Bu skriptte adam ölüyor yatağın yanına doğuyor sonra adamı spawna ışınlıyor. Nedenini bir türlü çözemedim.
Kod:
Options:
    TeleportCountdown: true
    CountdownSecond: 3
    TpJoin: false
    FirstJoinTp: true
    BedSupport: true
    #About BedSystem: Recommed 1. But if your player's bed near to the spawn change this to 2.
    BedSystem: 2
    RespawnTp: true

on respawn:
    if {spawn} is set:
        if {@BedSystem} is not 2:
            if {@BedSupport} is true:
                if {@RespawnTp} is true:
                    wait 0.30 seconds
                    if the distance between the player and {spawn} is smaller than 100:
                        teleport player to {spawn}
                        wait 1 second
                        If location of player is not equal to {_spawnnear}:
                            teleport player to {spawn}
        else:
            if {@BedSystem} is not 1:
                if {@BedSupport} is true:
                    if {@RespawnTp} is true:
                        wait 2 seconds
                        loop all blocks in radius 10 of player:
                            if loop-block isn't White Bed or Orange Bed or Magenta Bed or Light Blue Bed or Yellow Bed or Lime Bed or Pink Bed or Gray Bed or Light Gray Bed or Cyan Bed or Purple Bed or Blue Bed or Brown Bed or Green Bed or Red Bed or Black Bed:
                                teleport player to {spawn}
                                wait 2 seconds
                                If location of player is not equal to {_spawnnear}:
                                    teleport player to {spawn}
                                    stop
            else:
                if {@BedSupport} is false:
                    if {@RespawnTp} is true:
                        teleport player to {spawn}
                        wait 1 second
                        if the distance between the player and {spawn} isn't smaller than 100:
                            teleport player to {spawn}

else'lerin sonunda dahi "teleport player to {spawn}" var bunu kaldırırsanız sorun çözülebilir.
 

Secret_wither

Bedrock Kaşifi
Mesajlar
1,924
En iyi cevaplar
0
Beğeniler
499
Puanları
1,290
else'lerin sonunda dahi "teleport player to {spawn}" var bunu kaldırırsanız sorun çözülebilir.
Bu kısımı kaldırırsamda çözülmüyor
Kod:
wait 2 seconds If location of player is not equal to {_spawnnear}: teleport player to {spawn} stop
 

Secret_wither

Bedrock Kaşifi
Mesajlar
1,924
En iyi cevaplar
0
Beğeniler
499
Puanları
1,290
Olayı çözdüm loop block adamın yanındaki yatağı algılamıyor ama nasıl çözecem anlamadım :/
 

Darkkandadr

❌⚖❌ Everybody knows the good guys lost...
Emektar Üye
Mesajlar
483
En iyi cevaplar
0
Beğeniler
733
Puanları
960
Ruh hali
Olayı çözdüm loop block adamın yanındaki yatağı algılamıyor ama nasıl çözecem anlamadım :/

Kod:
command /yatakkontrol:
    trigger:
        loop blocks in radius 5 around player: #Radius kısmını istediğiniz gibi değiştirebilirsiniz.
            loop-block is bed:
                send "Etrafında bir yatak var dostum."

Oyuncunun etrafında yatak olup olmadığını bu şekilde kontrol edebilirsin.
 

Üst