Bulundu Skript hareket edince iptal edilmesini sağlamak

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

Linux MC

Zombi Geldi, Beni Yedi
Katılım
16 Ekim 2024
Mesajlar
230
Elmaslar
17
Puan
1.355
Konum
Türkiye
Minecraft
linux1827

Discord:

linux_yt

Kod:
command /spawnayarla:
    permission: spawn.ayarla
    trigger:
        set {spawn} to location of player
        send "Spawn Belirlendi."
      
command /spawn:
    trigger:
        set {_loc} to location of player
        play sound "entity.experience_orb.pickup" to player
        send title "&6Işınlanılıyor." with subtitle "&7Işınlanmak İçin 3 Saniye Bekle!" to player for 1 seconds
        wait 1 second
        if location of player is not {_loc}:
            send "&cHareket ettin, ışınlanma iptal edildi!" to player
            stop
        play sound "entity.experience_orb.pickup" to player
        send title "&6Işınlanılıyor.." with subtitle "&7Işınlanmak İçin 2 Saniye Bekle!" to player for 1 seconds
        wait 1 second
        if location of player is not {_loc}:
            send "&cHareket ettin, ışınlanma iptal edildi!" to player
            stop
        play sound "entity.experience_orb.pickup" to player
        send title "&6Işınlanılıyor..." with subtitle "&7Işınlanmak İçin 1 Saniye Bekle!" to player for 1 seconds
        wait 1 second
        if location of player is not {_loc}:
            send "&cHareket ettin, ışınlanma iptal edildi!" to player
            stop
        teleport player to {spawn}
        play sound "minecraft:entity.player.levelup" to player
        send title "&aIşınlandın!" with subtitle "" to player for 1 seconds

on join:
    teleport player to {spawn}


Merhabalar ben üstteki skripti kullanıyorum ama /spawn komutu kullanılınca sadece hareket edilince skriptin &cHareket ettin, ışınlanma iptal edildi! yazmasını istiyorum bu skript ekranı hareket ettirdiğimdede &cHareket ettin, ışınlanma iptal edildi! diyor doğrusu nasıl olmalı?
 
Python:
local function isSameLocation(loc1: location, loc2: location) :: boolean:
    set yaw of {_loc1} and {_loc2} to 0
    set pitch of {_loc1} and {_loc2} to 0

    return true if {_loc1} is {_loc2}
    return false

Bu fonksiyonla oyuncuların kafa açılarını umursamadan bir kontrol yapabilirsin. Kullanırken şu şekilde kullan:
if isSameLocation(location of player, {_loc}) is true:
 
Python:
local function isSameLocation(loc1: location, loc2: location) :: boolean:
    set yaw of {_loc1} and {_loc2} to 0
    set pitch of {_loc1} and {_loc2} to 0

    return true if {_loc1} is {_loc2}
    return false

Bu fonksiyonla oyuncuların kafa açılarını umursamadan bir kontrol yapabilirsin. Kullanırken şu şekilde kullan:
if isSameLocation(location of player, {_loc}) is true:


Kod:
command /spawnayarla:
    permission: spawn.ayarla
    trigger:
        set {spawn} to location of player
        send "Spawn Belirlendi."
      
command /spawn:
    trigger:
        set {_loc} to location of player

        play sound "entity.experience_orb.pickup" to player
        send title "&6Işınlanılıyor." with subtitle "&7Işınlanmak İçin Hareket Etmeden 3 Saniye Bekle!" to player for 1 seconds
        wait 1 second
        if distance between {_loc} and location of player > 0.1:
            send title "&cIşınlanamadın!" with subtitle "&7Lütfen Hareket Etmeden Tekrar Dene!" to player for 1 seconds
            stop

        play sound "entity.experience_orb.pickup" to player
        send title "&6Işınlanılıyor.." with subtitle "&7Işınlanmak İçin Hareket Etmeden 2 Saniye Bekle!" to player for 1 seconds
        wait 1 second
        if distance between {_loc} and location of player > 0.1:
            send title "&cIşınlanamadın!" with subtitle "&7Lütfen Hareket Etmeden Tekrar Dene!" to player for 1 seconds
            stop

        play sound "entity.experience_orb.pickup" to player
        send title "&6Işınlanılıyor..." with subtitle "&7Işınlanmak İçin Hareket Etmeden 1 Saniye Bekle!" to player for 1 seconds
        wait 1 second
        if distance between {_loc} and location of player > 0.1:
            send title "&cIşınlanamadın!" with subtitle "&7Lütfen Hareket Etmeden Tekrar Dene!" to player for 1 seconds
            stop

        teleport player to {spawn}
        play sound "minecraft:entity.player.levelup" to player
        send title "&aIşınlandın!" with subtitle "" to player for 1 seconds

on join:
    teleport player to {spawn}
    wait 3 tick
    send title "&aSunucumuza Hoşgeldin!" with subtitle "Eğlencenin Keyfini Çıkar!" to player for 1 seconds
    play sound "minecraft:entity.player.levelup" to player


böyle bi skript yazdım işe yararmı?
 
Kod:
command /spawnayarla:
    permission: spawn.ayarla
    trigger:
        set {spawn} to location of player
        send "Spawn Belirlendi."
     
command /spawn:
    trigger:
        set {_loc} to location of player

        play sound "entity.experience_orb.pickup" to player
        send title "&6Işınlanılıyor." with subtitle "&7Işınlanmak İçin Hareket Etmeden 3 Saniye Bekle!" to player for 1 seconds
        wait 1 second
        if distance between {_loc} and location of player > 0.1:
            send title "&cIşınlanamadın!" with subtitle "&7Lütfen Hareket Etmeden Tekrar Dene!" to player for 1 seconds
            stop

        play sound "entity.experience_orb.pickup" to player
        send title "&6Işınlanılıyor.." with subtitle "&7Işınlanmak İçin Hareket Etmeden 2 Saniye Bekle!" to player for 1 seconds
        wait 1 second
        if distance between {_loc} and location of player > 0.1:
            send title "&cIşınlanamadın!" with subtitle "&7Lütfen Hareket Etmeden Tekrar Dene!" to player for 1 seconds
            stop

        play sound "entity.experience_orb.pickup" to player
        send title "&6Işınlanılıyor..." with subtitle "&7Işınlanmak İçin Hareket Etmeden 1 Saniye Bekle!" to player for 1 seconds
        wait 1 second
        if distance between {_loc} and location of player > 0.1:
            send title "&cIşınlanamadın!" with subtitle "&7Lütfen Hareket Etmeden Tekrar Dene!" to player for 1 seconds
            stop

        teleport player to {spawn}
        play sound "minecraft:entity.player.levelup" to player
        send title "&aIşınlandın!" with subtitle "" to player for 1 seconds

on join:
    teleport player to {spawn}
    wait 3 tick
    send title "&aSunucumuza Hoşgeldin!" with subtitle "Eğlencenin Keyfini Çıkar!" to player for 1 seconds
    play sound "minecraft:entity.player.levelup" to player


böyle bi skript yazdım işe yararmı?
Evet yarar, böyle yaparsan daha iyi olur çünkü milimlik değişikliklerle iptal sağlanmaz.
 
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