Wither Boss Skripti

skript
skriptNisan 20, 2026

KADİM WITHER - BOSS SİSTEMİ

Sunucunuz için özel olarak geliştirilmiş, tamamen otomatik ve zorlayıcı mekaniklere sahip 3 kafalı Wither boss sistemi.


Genel Özellikler

  • Can Değeri: 1000 HP
  • Otomatik Doğuş: Her 1 saatte bir otomatik olarak belirlenen noktada belirir.
  • Zaman Sınırı: 10 dakika içinde kesilmeyen boss, sunucu performansını korumak için otomatik olarak yok olur.
  • Gelişmiş Takip: Bossun 15 blok yakınındaki oyuncular için Action Bar üzerinde anlık can ve kalan süre göstergesi.

Mekanikler ve Efektler

Boss, oyuncuları zorlamak için çeşitli yetenekler kullanır:

Yetenek Açıklama
Karanlık Perdesi Rastgele aralıklarla oyunculara 2 saniyelik körlük efekti verir.
Sarsıntı Bossun gücü oyuncuların dengesini bozarak bulantı efekti yaratır.
İlahi Ceza Hasar aldığında %15 ihtimalle saldırganın üzerine yıldırım düşürür.
Geri İtme Yıldırım çarpan oyuncuları bossun çevresinden uzağa savurur.

Yönetici Komutları

Sistemi yönetmek için aşağıdaki komutları kullanabilirsiniz:

  • /bossyeriayarla: Bossun doğacağı koordinatı belirler.
  • /bossdogur: Manuel olarak bossu hemen canlandırır.
  • /bossoldur: Sahadaki aktif bossu anında temizler.

Teknik Detaylar

Sistem tamamen Vanilla Skript odaklıdır ve chati kirletecek konsol mesajlarını engellemek için optimize edilmiştir. Action Bar sistemi için sunucunuzda SkQuery veya benzeri bir addonun yüklü olması önerilir.

 options:
    prefix: &6&lBOSS &8>
    boss_can: 1000

# --- OTOMATİK DOĞUŞ SİSTEMİ (1 Saatte Bir) ---
every 1 hour:
    if {boss.spawn.location} is set:
        # Oyuncu bağımlılığı olmayan fonksiyonu çağırıyoruz
        bossDogurmaFonksiyonu()
    else:
        log "Boss yeri ayarlanmadığı için otomatik doğuş yapılamadı!" to "boss.log"

# --- BOSS DOĞURMA FONKSİYONU ---
function bossDogurmaFonksiyonu():
    if {boss.uuid} is set:
        stop

    spawn 1 wither at {boss.spawn.location}
    set {boss.uuid} to uuid of last spawned entity
    set {_boss} to last spawned entity
    
    set max health of {_boss} to {@boss_can}
    set health of {_boss} to {@boss_can}
    set display name of {_boss} to "&8&l» &4&lKADIM WITHER &8&l«"
    
    broadcast "{@prefix} &4&lKaranlık Dalgalanıyor... &eKadim Wither uyandı!"
    broadcast "{@prefix} &7Not: &f10 dakika &7içinde kesilmezse yok olacak!"
    
    # 10 dakikalık (600 saniye) süreyi başlat
    set {boss.timer} to 600

# --- BOSS DOĞURMA KOMUTU (Manuel kullanım için) ---
command /bossdogur:
    permission: op
    trigger:
        if {boss.spawn.location} is not set:
            send "{@prefix} &cÖnce /bossyeriayarla ile yer belirlemelisin!"
            stop
        bossDogurmaFonksiyonu()

# --- SÜRE VE CAN TAKİBİ ---
every 1 second:
    if {boss.uuid} is set:
        remove 1 from {boss.timer}
        
        # Zaman dolduğunda bossu sil
        if {boss.timer} <= 0:
            loop all entities:
                if uuid of loop-entity is {boss.uuid}:
                    delete loop-entity
            broadcast "{@prefix} &cZaman doldu! Kadim Wither karanlığa geri kaçtı."
            delete {boss.uuid}
            stop

        loop all entities:
            if uuid of loop-entity is {boss.uuid}:
                set {_boss} to loop-entity
                set {_hp} to health of {_boss}
                set {_maxhp} to max health of {_boss}
                set {_percent} to ({_hp} / {_maxhp}) * 100
                
                loop all players in radius 15 of {_boss}:
                    # Action Bar: Kalan saniyeyi gösterir
                    send action bar "&4&lKADIM WITHER &8| &cCan: &l%round({_hp})% &8- &eSüre: &f%{boss.timer}%sn" to loop-player
                    
                    chance of 20%:
                        apply blindness 1 to loop-player for 2 seconds
                    chance of 15%:
                        apply nausea 1 to loop-player for 4 seconds

# --- HASAR VE ÖLÜM ---
on damage:
    if uuid of victim is {boss.uuid}:
        chance of 15%:
            strike lightning effect at attacker
            push attacker (vector from victim to attacker) with force 1.0

on death:
    if uuid of victim is {boss.uuid}:
        clear drops
        broadcast "{@prefix} &6&lZAFER! &eKadim Wither mağlup edildi."
        delete {boss.uuid}
        delete {boss.timer}

# --- YARDIMCI KOMUTLAR ---
command /bossyeriayarla:
    permission: op
    trigger:
        set {boss.spawn.location} to player's location
        send "{@prefix} &aBoss doğuş noktası kaydedildi!"

command /bossoldur:
    permission: op
    trigger:
        loop all entities:
            if uuid of loop-entity is {boss.uuid}:
                delete loop-entity
                delete {boss.uuid}
                delete {boss.timer}
                send "{@prefix} &eBoss temizlendi."
                stop
        delete {boss.uuid}