Çözüldü Oyuncular

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

Deervil

Bir Kömür Göründü Kaptanım!
Katılım
9 Mayıs 2020
Mesajlar
154
Elmaslar
9
Puan
8.910
Minecraft
seytanbaba

Discord:

ciddi#5910

Oyuncular öldükten sonra yeniden doğa bastıklarında Limana değil, yani Spawn bölgesine değil de, öldükleri dünyada rastgele bir yere ışınlansınlar bunu yapabilen eklenti veya eklenti ayarı lazım
 
Bana ait değil size böyle bir skript önerebilirim.

Kod:
on first join:
    if world is not "world":
        send "&c[ M.A.L.I.A ] Not the right world to random TP"
    else:
        set {_POSITION::OLD} to player's location
        while player's location is {_POSITION::OLD}:
            set {_POSITION::RANDOM} to location at random number between 9999 and -9999, 0, 400 # X, Y, Z
            loop blocks above {_POSITION::RANDOM}:
                if loop-block and block above loop-block are air:
                    if block under loop-block is not air or water block or lava block:
                        set {_POSITION::RANDOM} to location of loop-block
                        teleport player to {_POSITION::RANDOM}
                        stop loop
Öldüğünde istiyorsan on first join yerine 'death' yazman yeterlidir. dünya adı neyse misal orda 'world' senin dünya ismini yazabilirsin.
 
set {_POSITION::RANDOM} to location at random number between 9999 and -9999, 0, 400 # X, Y, Z
Bu komutta öldüğü yere, en uzak 9999 ile -9999 uzaklığında rastgele ışınla anlamına mı geliyor. Ben 2000 yapmak istiyorum da
 
set {_POSITION::RANDOM} to location at random number between 9999 and -9999, 0, 400 # X, Y, Z
Bu komutta öldüğü yere, en uzak 9999 ile -9999 uzaklığında rastgele ışınla anlamına mı geliyor. Ben 2000 yapmak istiyorum da
evet.
 
hata verdi
 

Ekli dosyalar

  • resim_2022-07-06_232225940.png
    resim_2022-07-06_232225940.png
    88,7 KB · Görüntüleme: 106
kendi sunucum yaptığımda böyle bir hatayla karşılaşmadım. şöyle bir konu buldum sizin için işinize yarayabilir. tıkla
Bu işe yaradı fakat öldükten sonra saçma yerlere ışınlıyor, mesela denize,yerin altına, güvenli yerlere ışınlamak için bir komut falan yok mu?

respawn:
set {_} to location(random integer from -1000 to 1000, random integer from 0 to 120, random integer from -1000 to 1000, world("world"))
teleport player to {_}

bu skript
 
Kod:
options:
    min.x: -2500
    max.x: 2500
    min.z: -2500
    max.z: 2500
    world: "world"

on player respawning:
    rtp(player)

function rtp(p: player):
    continueRtpLOOP({_p})
      
function continueRtpLOOP(p: player):
    set {_loc::x} to random number between {@min.x} and {@max.x}
    set {_loc::y} to 0
    set {_loc::z} to random number between {@min.z} and {@max.z}
    set {_loc::new} to location at {_loc::x}, {_loc::y}, {_loc::z} in world {@world}
    loop blocks above {_loc::new}:
        if loop-block and block above loop-block are air:
            if block under loop-block is not air or water or lava:
                set {_loc::new} to location of loop-block
                teleport {_p} to {_loc::new}
                delete {olum.%{_p}%}
                if light level at {_p} <= 2:
                    set block at {_p} to torch
                    stop
                stop
    wait 2 ticks
    continueRtpLOOP({_p})
 
Kod:
options:
    min.x: -2500
    max.x: 2500
    min.z: -2500
    max.z: 2500
    world: "world"

on player respawning:
    rtp(player)

function rtp(p: player):
    continueRtpLOOP({_p})
     
function continueRtpLOOP(p: player):
    set {_loc::x} to random number between {@min.x} and {@max.x}
    set {_loc::y} to 0
    set {_loc::z} to random number between {@min.z} and {@max.z}
    set {_loc::new} to location at {_loc::x}, {_loc::y}, {_loc::z} in world {@world}
    loop blocks above {_loc::new}:
        if loop-block and block above loop-block are air:
            if block under loop-block is not air or water or lava:
                set {_loc::new} to location of loop-block
                teleport {_p} to {_loc::new}
                delete {olum.%{_p}%}
                if light level at {_p} <= 2:
                    set block at {_p} to torch
                    stop
                stop
    wait 2 ticks
    continueRtpLOOP({_p})
Çalışmıyo, skript hata falan vermedi ama ölünce spawn da doğuyorum,
 
options: min.x: -2500 max.x: 2500 min.z: -2500 max.z: 2500 world: "world" on death player: rtp(player) function rtp(p: player): continueRtpLOOP({_p}) function continueRtpLOOP(p: player): set {_loc::x} to random number between {@min.x} and {@max.x} set {_loc::y} to 0 set {_loc::z} to random number between {@min.z} and {@max.z} set {_loc::new} to location at {_loc::x}, {_loc::y}, {_loc::z} in world {@world} loop blocks above {_loc::new}: if loop-block and block above loop-block are air: if block under loop-block is not air or water or lava: set {_loc::new} to location of loop-block teleport {_p} to {_loc::new} delete {olum.%{_p}%} if light level at {_p} <= 2: set block at {_p} to torch stop stop wait 2 ticks continueRtpLOOP({_p})

Arkadaşın kodunda tek satır bir işlem yaptım bunu dener misin?
 
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