Çözüldü Minecraft skript yardım

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

Feyzi8436

Koydum Çalışma Masasını
Katılım
2 Eylül 2024
Mesajlar
70
Elmaslar
1
Puan
910
Konum
izmir
Minecraft
feyzi
Kod:
[06:30:53] [INFO]: Line 107: (bilgi.sk)

[06:30:53] [INFO]:     Can't understand this condition: '{sakla::oyunAktif} is true and {sakla::morphSureci} is true'

[06:30:53] [INFO]:     Line: if {sakla::oyunAktif} is true and {sakla::morphSureci} is true:

[06:30:53] [INFO]:

[06:30:53] [INFO]: [Skript] Encountered 1 error while reloading bilgi.sk! (135ms) bu skript hatası bu ise benim saklambaç skriptim ama niyese hep hata alıyor lütfen bir bakar mısınız

options:

  animalKillAllowance: 10

  lobbyWorld: saklambacnormal

  lobbyX: -10

  lobbyY: -14

  lobbyZ: -7

  gameWorld: saklambacnormal

  gameX: 10

  gameY: -60

  gameZ: -17



# --- Oyuncuları lobide ışınlama ---

command /oyunagiris:

  trigger:

    loop all players:

      teleport loop-player to location({@lobbyX}, {@lobbyY}, {@lobbyZ}, world("{@lobbyWorld}"))

      set gamemode of loop-player to survival

    send "&aSaklambaç oyununa giriş yaptınız, en az 2 kişi olunca oyun başlayacak!" to all players



# --- Yeni oyuncu girerse ---

on join:

  if {sakla::oyunAktif} is true:

    teleport player to location({@lobbyX}, {@lobbyY}, {@lobbyZ}, world("{@lobbyWorld}"))

    set gamemode of player to spectator

    send "&cOyun devam ediyor, izleyici modundasınız!" to player

  else:

    teleport player to location({@lobbyX}, {@lobbyY}, {@lobbyZ}, world("{@lobbyWorld}"))

    set gamemode of player to survival

    send "&aSaklambaç oyununa hoş geldiniz!" to player



# --- Oyun başlat ---

command /baslaoyun:

  permission: saklambac.admin

  trigger:

    if size of all players < 2:

      send "&cOyunu başlatmak için en az 2 oyuncu gerekli!" to player

      stop

    if {sakla::oyunAktif} is true:

      send "&cOyun zaten aktif!" to player

      stop

    set {sakla::oyunAktif} to true

    set {sakla::durduruldu} to false



    # Arayanı seç

    set {_seeker} to random element out of all players

    set {sakla::seeker} to {_seeker}

    send "&c%{_seeker}% arayan seçildi!" to all players

    give diamond sword to {_seeker}

    enchant tool of {_seeker} with sharpness 5

    set {sakla::animalKills::%name of {_seeker}%} to {@animalKillAllowance}



    # Saklananları belirle

    delete {_hiders::*}

    loop all players:

      if loop-player is not {_seeker}:

        add loop-player to {_hiders::*}



    # Saklananları oyun alanına ışınla

    loop {_hiders::*}:

      teleport loop-value to location({@gameX}, {@gameY}, {@gameZ}, world("{@gameWorld}"))

      execute console command "lp user %{loop-value}% parent set saklam"



    # Morph süresi

    broadcast "&e--------------------------------------"

    broadcast "&cUYARI! &fDönüşmeniz için &a30 saniye &fvar!"

    broadcast "&7Lütfen sohbet kutusuna şu hayvanlardan birini yazın:"

    broadcast "&bchicken, cow, sheep, salmon, cat"

    broadcast "&cSüre bittiğinde dönüşmediyseniz otomatik olarak lobiden atılacaksınız!"

    broadcast "&e--------------------------------------"

    set {sakla::morphSureci} to true

    wait 30 seconds

    set {sakla::morphSureci} to false



    # Morph olmayanları lobiden at

    loop {_hiders::*}:

      if {sakla::morphed::%loop-value%} is not set:

        send "&cSüre doldu, morph olmadığın için oyundan atıldın!" to loop-value

        teleport loop-value to location({@lobbyX}, {@lobbyY}, {@lobbyZ}, world("{@lobbyWorld}"))

        execute console command "lp user %{loop-value}% parent set default"

        remove loop-value from {_hiders::*}

      else:

        execute console command "lp user %{loop-value}% parent set default"



    # Geri sayım

    send "&eArayan &c%{_seeker}% &e60 saniye sonra oyuna katılacak!" to all players

    set {_countdown} to 60

    while {_countdown} > 0:

      if {sakla::durduruldu} is true:

        broadcast "&cGeri sayım iptal edildi!"

        stop loop

      if {_countdown} <= 5:

        send "&c%{_countdown}% &7saniye kaldı!" to all players

      wait 1 second

      remove 1 from {_countdown}



    # Arayanı oyun alanına ışınla

    if {sakla::durduruldu} is not true:

      teleport {_seeker} to location({@gameX}, {@gameY}, {@gameZ}, world("{@gameWorld}"))

      send "&cArayan oyuna girdi!" to all players

      loop all players:

        apply blindness to loop-player for 5 seconds

        apply glowing to loop-player for 5 seconds

        send title "&c&lARAYAN GELDİ!" with subtitle "&7Saklanın!" to loop-player



# --- Chat Morph Sistemi ---

on chat:

  if {sakla::oyunAktif} is true and {sakla::morphSureci} is true:

    if player is not {_seeker}:

      set {_msg} to lower case of event-message

      cancel event

      if {_msg} = "chicken":

        execute player command "morph chicken"

        set {sakla::morphed::%player%} to true

        send "&aTavuk olarak dönüştün!" to player

      else if {_msg} = "cow":

        execute player command "morph cow"

        set {sakla::morphed::%player%} to true

        send "&aİnek olarak dönüştün!" to player

      else if {_msg} = "sheep":

        execute player command "morph sheep"

        set {sakla::morphed::%player%} to true

        send "&aKoyun olarak dönüştün!" to player

      else if {_msg} = "salmon":

        execute player command "morph salmon"

        set {sakla::morphed::%player%} to true

        send "&aBalık olarak dönüştün!" to player

      else if {_msg} = "cat":

        execute player command "morph cat"

        set {sakla::morphed::%player%} to true

        send "&aKedi olarak dönüştün!" to player

      else:

        send "&cGeçersiz hayvan ismi! Lütfen chicken, cow, sheep, salmon veya cat yaz!" to player



# --- Oyuncu öldüğünde ---

on death of player:

  execute console command "lp user %victim% parent set default"

  teleport victim to location({@lobbyX}, {@lobbyY}, {@lobbyZ}, world("{@lobbyWorld}"))



# --- Oyunu bitirme ---

command /oyunbitir [<text>]:

  permission: saklambac.admin

  trigger:

    if arg-1 is not set:

      send "&cKullanım: /oyunbitir <kazanan>" to player

      stop

    set {_kazanan} to arg-1

    broadcast "&a----------------------------------"

    broadcast "&6&l🎉 OYUN BİTTİ! 🎉"

    broadcast "&fKazanan: &e%{_kazanan}%"

    broadcast "&a----------------------------------"

    loop all players:

      play sound "minecraft:entity.player.levelup" with volume 1 and pitch 1 to loop-player

      play sound "minecraft:ui.toast.challenge_complete" with volume 1 and pitch 1 to loop-player

      send title "&6&lOYUN BİTTİ!" with subtitle "&fKazanan: &e%{_kazanan}%" to loop-player

      apply glowing to loop-player for 3 seconds

      teleport loop-player to location({@lobbyX}, {@lobbyY}, {@lobbyZ}, world("{@lobbyWorld}"))

    delete {sakla::*}



# --- Oyunu durdurma ---

command /oyundurdur:

  permission: saklambac.admin

  trigger:

    if {sakla::oyunAktif} is true:

      set {sakla::durduruldu} to true

      set {sakla::oyunAktif} to false

      broadcast "&c&lOyun durduruldu!"

      loop all players:

        teleport loop-player to location({@lobbyX}, {@lobbyY}, {@lobbyZ}, world("{@lobbyWorld}"))

        set gamemode of loop-player to survival

        remove blindness from loop-player

        clear all potion effects of loop-player

      delete {sakla::*}

    else:

      send "&cZaten aktif bir oyun yok!" to player
 
Moderatör tarafından düzenlendi:
Böyle şeyler Yapay zeka ile kolay yapılabiliyor ama yinede hata olursa ss atarak yanıt verirseniz daha iyi olur.

Kod:
options:
    animalKillAllowance: 10
    lobbyWorld: saklambacnormal
    lobbyX: -10
    lobbyY: -14
    lobbyZ: -7
    gameWorld: saklambacnormal
    gameX: 10
    gameY: -60
    gameZ: -17

# --- Oyuncuları lobide ışınlama ---
command /oyunagiris:
    trigger:
        loop all players:
            teleport loop-player to location({@lobbyX}, {@lobbyY}, {@lobbyZ}, world("{@lobbyWorld}"))
            set gamemode of loop-player to survival
        send "&aSaklambaç oyununa giriş yaptınız, en az 2 kişi olunca oyun başlayacak!" to all players

# --- Yeni oyuncu girerse ---
on join:
    if {sakla::oyunAktif} is true:
        teleport player to location({@lobbyX}, {@lobbyY}, {@lobbyZ}, world("{@lobbyWorld}"))
        set gamemode of player to spectator
        send "&cOyun devam ediyor, izleyici modundasınız!" to player
    else:
        teleport player to location({@lobbyX}, {@lobbyY}, {@lobbyZ}, world("{@lobbyWorld}"))
        set gamemode of player to survival
        send "&aSaklambaç oyununa hoş geldiniz!" to player

# --- Oyun başlat ---
command /baslaoyun:
    permission: saklambac.admin
    trigger:
        if size of all players < 2:
            send "&cOyunu başlatmak için en az 2 oyuncu gerekli!" to player
            stop
        if {sakla::oyunAktif} is true:
            send "&cOyun zaten aktif!" to player
            stop
        set {sakla::oyunAktif} to true
        set {sakla::durduruldu} to false

        # Arayanı seç
        set {_seeker} to random element out of all players
        set {sakla::seeker} to {_seeker}
        send "&c%{_seeker}% arayan seçildi!" to all players
        give diamond sword to {_seeker}
        enchant tool of {_seeker} with sharpness 5
        set {sakla::animalKills::%name of {_seeker}%} to {@animalKillAllowance}

        # Saklananları belirle
        delete {_hiders::*}
        loop all players:
            if loop-player is not {_seeker}:
                add loop-player to {_hiders::*}

        # Saklananları oyun alanına ışınla
        loop {_hiders::*}:
            teleport loop-value to location({@gameX}, {@gameY}, {@gameZ}, world("{@gameWorld}"))
            execute console command "lp user %{loop-value}% parent set saklam"

        # Morph süresi
        broadcast "&e--------------------------------------"
        broadcast "&cUYARI! &fDönüşmeniz için &a30 saniye &fvar!"
        broadcast "&7Lütfen sohbet kutusuna şu hayvanlardan birini yazın:"
        broadcast "&bchicken, cow, sheep, salmon, cat"
        broadcast "&cSüre bittiğinde dönüşmediyseniz otomatik olarak lobiden atılacaksınız!"
        broadcast "&e--------------------------------------"
        set {sakla::morphSureci} to true
        wait 30 seconds
        set {sakla::morphSureci} to false

        # Morph olmayanları lobiden at
        loop {_hiders::*}:
            if {sakla::morphed::%loop-value%} is not set:
                send "&cSüre doldu, morph olmadığın için oyundan atıldın!" to loop-value
                teleport loop-value to location({@lobbyX}, {@lobbyY}, {@lobbyZ}, world("{@lobbyWorld}"))
                execute console command "lp user %{loop-value}% parent set default"
                remove loop-value from {_hiders::*}
            else:
                execute console command "lp user %{loop-value}% parent set default"

        # Geri sayım
        send "&eArayan &c%{_seeker}% &e60 saniye sonra oyuna katılacak!" to all players
        set {_countdown} to 60
        while {_countdown} > 0:
            if {sakla::durduruldu} is true:
                broadcast "&cGeri sayım iptal edildi!"
                stop loop
            if {_countdown} <= 5:
                send "&c%{_countdown}% &7saniye kaldı!" to all players
            wait 1 second
            remove 1 from {_countdown}

        # Arayanı oyun alanına ışınla
        if {sakla::durduruldu} is not true:
            teleport {_seeker} to location({@gameX}, {@gameY}, {@gameZ}, world("{@gameWorld}"))
            send "&cArayan oyuna girdi!" to all players
            loop all players:
                apply blindness to loop-player for 5 seconds
                apply glowing to loop-player for 5 seconds
                send title "&c&lARAYAN GELDİ!" with subtitle "&7Saklanın!" to loop-player

# --- Chat Morph Sistemi ---
on chat:
    if {sakla::oyunAktif} is true and {sakla::morphSureci} is true:
        if player is not {sakla::seeker}: # <--- DÜZELTME BURADA YAPILDI
            set {_msg} to lower case of event-message
            cancel event
            if {_msg} = "chicken":
                execute player command "morph chicken"
                set {sakla::morphed::%player%} to true
                send "&aTavuk olarak dönüştün!" to player
            else if {_msg} = "cow":
                execute player command "morph cow"
                set {sakla::morphed::%player%} to true
                send "&aİnek olarak dönüştün!" to player
            else if {_msg} = "sheep":
                execute player command "morph sheep"
                set {sakla::morphed::%player%} to true
                send "&aKoyun olarak dönüştün!" to player
            else if {_msg} = "salmon":
                execute player command "morph salmon"
                set {sakla::morphed::%player%} to true
                send "&aBalık olarak dönüştün!" to player
            else if {_msg} = "cat":
                execute player command "morph cat"
                set {sakla::morphed::%player%} to true
                send "&aKedi olarak dönüştün!" to player
            else:
                send "&cGeçersiz hayvan ismi! Lütfen chicken, cow, sheep, salmon veya cat yaz!" to player

# --- Oyuncu öldüğünde ---
on death of player:
    execute console command "lp user %victim% parent set default"
    teleport victim to location({@lobbyX}, {@lobbyY}, {@lobbyZ}, world("{@lobbyWorld}"))

# --- Oyunu bitirme ---
command /oyunbitir [<text>]:
    permission: saklambac.admin
    trigger:
        if arg-1 is not set:
            send "&cKullanım: /oyunbitir <kazanan>" to player
            stop
        set {_kazanan} to arg-1
        broadcast "&a----------------------------------"
        broadcast "&6&l OYUN BİTTİ! "
        broadcast "&fKazanan: &e%{_kazanan}%"
        broadcast "&a----------------------------------"
        loop all players:
            play sound "minecraft:entity.player.levelup" with volume 1 and pitch 1 to loop-player
            play sound "minecraft:ui.toast.challenge_complete" with volume 1 and pitch 1 to loop-player
            send title "&6&lOYUN BİTTİ!" with subtitle "&fKazanan: &e%{_kazanan}%" to loop-player
            apply glowing to loop-player for 3 seconds
            teleport loop-player to location({@lobbyX}, {@lobbyY}, {@lobbyZ}, world("{@lobbyWorld}"))
        delete {sakla::*}

# --- Oyunu durdurma ---
command /oyundurdur:
    permission: saklambac.admin
    trigger:
        if {sakla::oyunAktif} is true:
            set {sakla::durduruldu} to true
            set {sakla::oyunAktif} to false
            broadcast "&c&lOyun durduruldu!"
            loop all players:
                teleport loop-player to location({@lobbyX}, {@lobbyY}, {@lobbyZ}, world("{@lobbyWorld}"))
                set gamemode of loop-player to survival
                remove blindness from loop-player
                clear all potion effects of loop-player
            delete {sakla::*}
        else:
            send "&cZaten aktif bir oyun yok!" to player
 
tamamdır çözüdlü
 
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