Bulundu Bulunduğun Konuma Geri Döndüren Kaptan Skripti

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

Wifcware

Fırında Isıttığım İlk Taş
Katılım
28 Ekim 2023
Mesajlar
80
Elmaslar
31
Puan
970
Yaş
24
Konum
Turkey
Minecraft
zebosensei

Discord:

w1fc

Sunucu: 1.18.2
Bir skript arıyorum skriptin özelliği:
- İlk defa tıkladığımda beni x dünyasında rastgele bir konuma yönlendirecek (rtp ile yapabiliyorum)
- Daha sonrasında kişi ışınlanmaya çalışırsa x dünyasında en son bulunduğum konuma yönlendirecek.
Herhangi uygun bir plugin bulamadım maalesef yardımcı olabilirseniz sevinirim :).
 
on command "/rtp":
[TAB]if {son_konum::%player%::dunya} is not set:
[TAB][TAB]send "&cBu komut sadece başka bir dünyadan ışınlandığınızda kullanılabilir."
[TAB][TAB]stop
[TAB]else if {son_konum::%player%::dunya} "belirlenmiş":
[TAB][TAB]teleport player to location {x::%player%} 70 {z::%player%} in world "world"
[TAB]else:
[TAB][TAB]set {x::%player%} to random integer between -1000 and 1000
[TAB][TAB]set {z::%player%} to random integer between -1000 and 1000
[TAB][TAB]teleport player to location {_x} 70 {_z} in world "world"
[TAB][TAB]send "&aRastgele bir yere ışınlandınız!"
[TAB][TAB]set {son_konum::%player%::dunya} to "belirlenmiş"
on quit:
[TAB]set {son_konum::%player%::dunya} to ""

Buyrun, eğer çıktığında da silinmemesini istiyorsanız on quit kısmını siliniz.
 

Ekli dosyalar

  • Screenshot_3.png
    Screenshot_3.png
    32,6 KB · Görüntüleme: 135
Kod:
command /wifcware:
    trigger:
        if {rtp::%player%} isn't set:
            set {rtp::%player%} to true
            execute player command "rtp"
            wait 30 tick
            set {rtp::%player%::lastloc} to player's location
        else:
            teleport player to {rtp::%player%::lastloc}

on quit:
    if world is "X dünyası adı":
        set {rtp::%player%::lastloc} to player's location

on world change:
    if world is "X dünyası adı"
        set {rtp::%player%::lastloc} to player's location
 
Kod:
command /wifcware:
    trigger:
        if {rtp::%player%} isn't set:
            set {rtp::%player%} to true
            execute player command "rtp"
            wait 30 tick
            set {rtp::%player%::lastloc} to player's location
        else:
            teleport player to {rtp::%player%::lastloc}

on quit:
    if world is "X dünyası adı":
        set {rtp::%player%::lastloc} to player's location

on world change:
    if world is "X dünyası adı"
        set {rtp::%player%::lastloc} to player's location
Maalesef, hata veriyor.
 

Ekli dosyalar

  • Screenshot_4.png
    Screenshot_4.png
    105,1 KB · Görüntüleme: 118
Kod:
command /wifcware:
    trigger:
        if {rtp::%player%} isn't set:
            set {rtp::%player%} to true
            execute player command "rtp"
            wait 30 tick
            set {rtp::%player%::lastloc} to player's location
        else:
            teleport player to {rtp::%player%::lastloc}

on quit:
    if player's world is "X dünyası adı":
        set {rtp::%player%::lastloc} to player's location

on world change:
    if world is "X dünyası adı":
        set {rtp::%player%::lastloc} to player's location
 
Kod:
command /wifcware:
    trigger:
        if {rtp::%player%} isn't set:
            set {rtp::%player%} to true
            execute player command "rtp"
            wait 30 tick
            set {rtp::%player%::lastloc} to player's location
        else:
            teleport player to {rtp::%player%::lastloc}

on quit:
    if player's world is "X dünyası adı":
        set {rtp::%player%::lastloc} to player's location

on world change:
    if world is "X dünyası adı":
        set {rtp::%player%::lastloc} to player's location
Hala aynı durumda.
 

Ekli dosyalar

  • Screenshot_5.png
    Screenshot_5.png
    49 KB · Görüntüleme: 107
on command "/rtp":
[TAB]if {son_event::%player%::dunya} is "belirlenmiş":
[TAB][TAB]teleport player to {son_konum::%player%::dunya}
[TAB][TAB]
[TAB]else:
[TAB][TAB]send "&aRastgele bir yere ışınlandınız!"
[TAB][TAB]set {son_event::%player%::dunya} to "belirlenmiş"
[TAB][TAB]set {son_konum::%player%::dunya} to player's location
[TAB][TAB]teleport player to {son_konum::%player%::dunya}


on quit:
[TAB]set {son_konum::%player%::dunya} to ""
 
Son düzenleme:
Kod:
command /wifcware:
    trigger:
        if {rtp::%player%} isn't set:
            set {rtp::%player%} to true
            execute player command "rtp"
            wait 30 tick
            set {rtp::%player%::lastloc} to player's location
        else:
            teleport player to {rtp::%player%::lastloc}

on quit:
    if event-world is "Atlas":
        set {rtp::%player%::lastloc} to player's location

on world change:
    if world is "Atlas":
        set {rtp::%player%::lastloc} to player's location
 
Denedim fakat farklı dünyadan yapmama rağmen hata veriyor.
farklı dünya seçeneği hakkında detayları daha ayrıntılı olarak açıklar mısınız? Bu sayede baştan daha yüksek kalitede bir iş çıkarabilirim.
 
Kod:
command /wifcware:
    trigger:
        if {rtp::%player%} isn't set:
            set {rtp::%player%} to true
            execute player command "rtp"
            wait 30 tick
            set {rtp::%player%::lastloc} to player's location
        else:
            teleport player to {rtp::%player%::lastloc}

on quit:
    if event-world is "Atlas":
        set {rtp::%player%::lastloc} to player's location

on world change:
    if world is "Atlas":
        set {rtp::%player%::lastloc} to player's location
Tamamdır çalıştı. Yardımcı olduğunuz için sağ olun :).
 
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