Çözüldü Kendi Oluşturduğum Bossa Bossbar nasıl oluştururum.

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

furkangn7

Somon Balığı Selam Vermeye Geldi
Katılım
21 Ocak 2026
Mesajlar
17
Elmaslar
8
Puan
120
Konum
Balıkesir
öncelikle merhabalar. dungeon etkinliği yapmak istedim herşey okey güzel oldu fakat son olarak bossun olduğu worldde bossun canının gözüktü bir bossbar yapmak istedim ama bikaç denemede çalıştıramadım. skbee falan yüklü ama olmadı. aşağıya bossumun skriptini atıyorum. bi bakarsanız çok müteşekkir olurum.

variables:
{dungeonboss.spawned} = false
{dungeonboss.entity} = none
{dungeonboss.spawnLocation} = none

on load:
set {dungeonboss.spawnLocation} to location(0, -60, 0, world "dungeonworld")

# Manuel spawn komutu
command /spawndungeonboss:
permission: dungeonboss.admin
permission message: &cBu komutu kullanamazsın.
trigger:
if {dungeonboss.spawned} is true:
send "&b&l Fatya &f&lSMP &7» &cBoss zaten spawnlanmış!" to player
stop

# Bossu spawn noktası
set {_loc} to location(0, -60, 0, world "dungeonworld")
spawn zombie at {_loc}
set {_e} to last spawned entity

set max health of {_e} to 200
set health of {_e} to 200

# Zırh ve silah ekle
set helmet of {_e} to netherite_helmet
set chestplate of {_e} to netherite_chestplate
set leggings of {_e} to netherite_leggings
set boots of {_e} to netherite_boots
set tool of {_e} to netherite_sword

set {dungeonboss.entity} to {_e}
set {dungeonboss.spawned} to true
set name of {_e} to "&c&lDUNGEON BOSS [&e1000&c]"

send "&b&l Fatya &f&lSMP &7» &aDungeon Boss spawnlandı!"

# OP ile öldürme
command /killdungeonboss:
permission: op
permission message: &cBu komutu sadece OP kullanabilir.
trigger:
if {dungeonboss.spawned} is false:
send "&b&l Fatya &f&lSMP &7» &cDungeon Boss şu anda spawnlı değil." to player
stop

if {dungeonboss.entity} is set:
kill {dungeonboss.entity}
broadcast "&b&l Fatya &f&lSMP &7» &cDungeon Boss OP tarafından öldürüldü!"
delete {dungeonboss.entity}
set {dungeonboss.spawned} to false

# Boss öldüğünde ödül ve otomatik spawn
on death of zombie:
if name of victim contains "DUNGEON BOSS":
clear drops # Boss ekipmanı yere düşmesin

if attacker is a player:
give 10 diamond to attacker
send "&b&l Fatya &f&lSMP &7» &6Dungeon Boss'u öldürdün! Ödül senin." to attacker

set {dungeonboss.spawned} to false
delete {dungeonboss.entity}

# Ses ve havalı mesaj
loop all players:
play sound "minecraft:entity.experience_orb.pickup" with volume 0.5 and pitch 1 to loop-player
broadcast "&b&l Fatya &f&lSMP &7» &c&lDUNGEON BOSS &6%attacker% &etarafından yok edildi!"

# 10 saniye sonra otomatik spawn (test için)
wait 5 minutes
if {dungeonboss.spawned} is false:
set {_loc} to location(0, -60, 0, world "dungeonworld")
spawn zombie at {_loc}
set {_e} to last spawned entity
set max health of {_e} to 200
set health of {_e} to 200

# Zırh ve silah ekle
set helmet of {_e} to netherite_helmet
set chestplate of {_e} to netherite_chestplate
set leggings of {_e} to netherite_leggings
set boots of {_e} to netherite_boots
set tool of {_e} to netherite_sword

set name of {_e} to "&c&lDUNGEON BOSS [&e200&c]"
set {dungeonboss.entity} to {_e}
set {dungeonboss.spawned} to true
broadcast "&b&l Fatya &f&lSMP &7» &c&lDUNGEON BOSS &eyeniden spawnlandı!"

# Bossun canını isim yanında göster
every 0.5 seconds:
if {dungeonboss.spawned} is true:
set {_e} to {dungeonboss.entity}
if {_e} is alive:
set {_hp} to health of {_e}
set name of {_e} to "&c&lDUNGEON BOSS [&e%{_hp}%&c]"
else:
set {dungeonboss.spawned} to false
delete {dungeonboss.entity}
 
Kod:
variables:
    {dungeonboss.spawned} = false
    {dungeonboss.entity} = none
    {dungeonboss.spawnLocation} = none
    {dungeonboss.bossbar} = none

on load:
    set {dungeonboss.spawnLocation} to location(0, -60, 0, world "dungeonworld")

# Manuel spawn komutu
command /spawndungeonboss:
    permission: dungeonboss.admin
    permission message: &cBu komutu kullanamazsın.
    trigger:
        if {dungeonboss.spawned} is true:
            send "&b&l Fatya &f&lSMP &7» &cBoss zaten spawnlanmış!" to player
            stop
        
        # Bossu spawn et
        set {_loc} to location(0, -60, 0, world "dungeonworld")
        spawn zombie at {_loc}
        set {_e} to last spawned entity
        set max health of {_e} to 200
        set health of {_e} to 200
        
        # Zırh ve silah ekle
        set helmet of {_e} to netherite_helmet
        set chestplate of {_e} to netherite_chestplate
        set leggings of {_e} to netherite_leggings
        set boots of {_e} to netherite_boots
        set tool of {_e} to netherite_sword
        
        set {dungeonboss.entity} to {_e}
        set {dungeonboss.spawned} to true
        set name of {_e} to "&c&lDUNGEON BOSS [&e200&c]"
        
        # Bossbar oluştur
        create bossbar titled "&c&lDUNGEON BOSS" and id "dungeonboss" with progress 100 with colors red with style segmented_10 for all players
        set {dungeonboss.bossbar} to bossbar "dungeonboss"
        
        send "&b&l Fatya &f&lSMP &7» &aDungeon Boss spawnlandı!"

# OP ile öldürme
command /killdungeonboss:
    permission: op
    permission message: &cBu komutu sadece OP kullanabilir.
    trigger:
        if {dungeonboss.spawned} is false:
            send "&b&l Fatya &f&lSMP &7» &cDungeon Boss şu anda spawnlı değil." to player
            stop
        
        if {dungeonboss.entity} is set:
            kill {dungeonboss.entity}
            broadcast "&b&l Fatya &f&lSMP &7» &cDungeon Boss OP tarafından öldürüldü!"
            
            # Bossbar'ı kaldır
            remove bossbar "dungeonboss"
            delete {dungeonboss.bossbar}
            
            delete {dungeonboss.entity}
            set {dungeonboss.spawned} to false

# Boss öldüğünde ödül ve otomatik spawn
on death of zombie:
    if name of victim contains "DUNGEON BOSS":
        clear drops # Boss ekipmanı yere düşmesin
        
        if attacker is a player:
            give 10 diamond to attacker
            send "&b&l Fatya &f&lSMP &7» &6Dungeon Boss'u öldürdün! Ödül senin." to attacker
        
        set {dungeonboss.spawned} to false
        delete {dungeonboss.entity}
        
        # Bossbar'ı kaldır
        remove bossbar "dungeonboss"
        delete {dungeonboss.bossbar}
        
        # Ses ve havalı mesaj
        loop all players:
            play sound "minecraft:entity.experience_orb.pickup" with volume 0.5 and pitch 1 to loop-player
        
        broadcast "&b&l Fatya &f&lSMP &7» &c&lDUNGEON BOSS &6%attacker% &etarafından yok edildi!"
        
        # 5 dakika sonra otomatik spawn
        wait 5 minutes
        
        if {dungeonboss.spawned} is false:
            set {_loc} to location(0, -60, 0, world "dungeonworld")
            spawn zombie at {_loc}
            set {_e} to last spawned entity
            set max health of {_e} to 200
            set health of {_e} to 200
            
            # Zırh ve silah ekle
            set helmet of {_e} to netherite_helmet
            set chestplate of {_e} to netherite_chestplate
            set leggings of {_e} to netherite_leggings
            set boots of {_e} to netherite_boots
            set tool of {_e} to netherite_sword
            
            set name of {_e} to "&c&lDUNGEON BOSS [&e200&c]"
            set {dungeonboss.entity} to {_e}
            set {dungeonboss.spawned} to true
            
            # Yeni bossbar oluştur
            create bossbar titled "&c&lDUNGEON BOSS" and id "dungeonboss" with progress 100 with colors red with style segmented_10 for all players
            set {dungeonboss.bossbar} to bossbar "dungeonboss"
            
            broadcast "&b&l Fatya &f&lSMP &7» &c&lDUNGEON BOSS &eyeniden spawnlandı!"

# Bossun canını isim ve bossbar'da göster
every 0.5 seconds:
    if {dungeonboss.spawned} is true:
        set {_e} to {dungeonboss.entity}
        if {_e} is alive:
            set {_hp} to health of {_e}
            set {_maxhp} to max health of {_e}
            
            # Can yüzdesini hesapla (0-100 arası)
            set {_percent} to ({_hp} / {_maxhp}) * 100
            
            # İsmi güncelle
            set name of {_e} to "&c&lDUNGEON BOSS [&e%{_hp}%&c/&e%{_maxhp}%&c]"
            
            # Bossbar'ı güncelle
            set progress of bossbar "dungeonboss" to {_percent}
            set title of bossbar "dungeonboss" to "&c&lDUNGEON BOSS &f[&e%{_hp}%&f/&e%{_maxhp}%&f]"
        else:
            set {dungeonboss.spawned} to false
            delete {dungeonboss.entity}
            remove bossbar "dungeonboss"
            delete {dungeonboss.bossbar}
Bu şekilde deneyebilirsiniz. Kod yüklerken kod düzenini bozmamaya dikkat edin.
 
hocam bu şekilde error aldım terminalde.

[15:55:42 INFO]: [Skript] Loading variables...
[15:55:42 ERROR]: #!#!
[15:55:42 ERROR]: #!#! ===!!!=== Skript variable load error ===!!!===
[15:55:42 ERROR]: #!#! Unable to load (all) variables:
[15:55:42 ERROR]: #!#! 3 variables could not be loaded!
[15:55:42 ERROR]: #!#! Affected variables: dungeonboss.bar, dungeonboss.bossbar, dungeonboss.entity
[15:55:42 INFO]: [Skript] Created a backup of variables.csv as variables_2026-02-09_15-55-42.csv
[15:55:42 ERROR]: #!#!
[15:55:42 ERROR]: #!#! Skript will work properly, but old variables might not be available at all an
d new ones may or may not be saved until Skript is able to create a backup of the old file and/or is
able to connect to the database (which requires a restart of Skript)!
[15:55:42 ERROR]: #!#!
[15:55:42 INFO]: [Skript] Loaded 1311 variables in 0.0 seconds
[15:55:43 INFO]: [Skript] Line 38: (dungeonboss.sk)
[15:55:43 INFO]: "&c&lDUNGEON BOSS" is not a location
[15:55:43 INFO]: Line: create bossbar titled "&c&lDUNGEON BOSS" and id "dungeonboss" with progre
ss 100 with colors red with style segmented_10 for all players
[15:55:43 INFO]:
[15:55:43 INFO]: [Skript] Line 39: (dungeonboss.sk)
[15:55:43 INFO]: Can't understand this expression: 'bossbar "dungeonboss"'
[15:55:43 INFO]: Line: set {dungeonboss.bossbar} to bossbar "dungeonboss"
[15:55:43 INFO]:
[15:55:43 INFO]: [Skript] Line 57: (dungeonboss.sk)
[15:55:43 INFO]: Can't understand this condition/effect: remove bossbar "dungeonboss"
[15:55:43 INFO]: Line: remove bossbar "dungeonboss"
[15:55:43 INFO]:
[15:55:43 INFO]: [ajLeaderboards] You are up to date! (2.10.1)
[15:55:49 INFO]: [Skript] Line 76: (dungeonboss.sk)
[15:55:49 INFO]: Can't understand this condition/effect: remove bossbar "dungeonboss"
[15:55:49 INFO]: Line: remove bossbar "dungeonboss"
[15:55:49 INFO]:
[15:55:49 INFO]: [Skript] Line 107: (dungeonboss.sk)
[15:55:49 INFO]: "&c&lDUNGEON BOSS" is not a location
[15:55:49 INFO]: Line: create bossbar titled "&c&lDUNGEON BOSS" and id "dungeonboss" with progre
ss 100 with colors red with style segmented_10 for all players
[15:55:49 INFO]:
[15:55:49 INFO]: [Skript] Line 108: (dungeonboss.sk)
[15:55:49 INFO]: Can't understand this expression: 'bossbar "dungeonboss"'
[15:55:49 INFO]: Line: set {dungeonboss.bossbar} to bossbar "dungeonboss"
[15:55:49 INFO]:
[15:55:49 INFO]: [Skript] Line 127: (dungeonboss.sk)
[15:55:49 INFO]: Can't understand this condition/effect: set progress of bossbar "dungeonboss" t
o {_percent}
[15:55:49 INFO]: Line: set progress of bossbar "dungeonboss" to {_percent}
[15:55:49 INFO]:
[15:55:49 INFO]: [Skript] Line 128: (dungeonboss.sk)
[15:55:49 INFO]: Can't understand this condition/effect: set title of bossbar "dungeonboss" to "
&c&lDUNGEON BOSS &f[&e%{_hp}%&f/&e%{_maxhp}%&f]"
[15:55:49 INFO]: Line: set title of bossbar "dungeonboss" to "&c&lDUNGEON BOSS &f[&e%{_hp}%&f/&e
%{_maxhp}%&f]"
[15:55:49 INFO]:
[15:55:49 INFO]: [Skript] Line 132: (dungeonboss.sk)
[15:55:49 INFO]: Can't understand this condition/effect: remove bossbar "dungeonboss"
[15:55:49 INFO]: Line: remove bossbar "dungeonboss"
[15:55:49 INFO]:
[15:55:49 INFO]: [Skript] Loaded 42 scripts with a total of 115 structures in 7 seconds
[15:55:49 INFO]: [Skript] Finished loading.
 
hocam bu şekilde error aldım terminalde.
Kod:
variables:
    {dungeonboss.spawned} = false
    {dungeonboss.entity} = none
    {dungeonboss.spawnLocation} = none

on load:
    set {dungeonboss.spawnLocation} to location(0, -60, 0, world "dungeonworld")

# Manuel spawn komutu
command /spawndungeonboss:
    permission: dungeonboss.admin
    permission message: &cBu komutu kullanamazsın.
    trigger:
        if {dungeonboss.spawned} is true:
            send "&b&l Fatya &f&lSMP &7» &cBoss zaten spawnlanmış!" to player
            stop
        
        # Bossu spawn et
        set {_loc} to location(0, -60, 0, world "dungeonworld")
        spawn zombie at {_loc}
        set {_e} to last spawned entity
        set max health of {_e} to 200
        set health of {_e} to 200
        
        # Zırh ve silah ekle
        set helmet of {_e} to netherite_helmet
        set chestplate of {_e} to netherite_chestplate
        set leggings of {_e} to netherite_leggings
        set boots of {_e} to netherite_boots
        set tool of {_e} to netherite_sword
        
        set {dungeonboss.entity} to {_e}
        set {dungeonboss.spawned} to true
        set name of {_e} to "&c&lDUNGEON BOSS [&e200&c]"
        
        # Bossbar oluştur - SkBee syntax
        create bossbar with id "dungeonboss", title "&c&lDUNGEON BOSS", progress 1, color red, style segmented 10 for all players
        
        send "&b&l Fatya &f&lSMP &7» &aDungeon Boss spawnlandı!"

# OP ile öldürme
command /killdungeonboss:
    permission: op
    permission message: &cBu komutu sadece OP kullanabilir.
    trigger:
        if {dungeonboss.spawned} is false:
            send "&b&l Fatya &f&lSMP &7» &cDungeon Boss şu anda spawnlı değil." to player
            stop
        
        if {dungeonboss.entity} is set:
            kill {dungeonboss.entity}
            broadcast "&b&l Fatya &f&lSMP &7» &cDungeon Boss OP tarafından öldürüldü!"
            
            # Bossbar'ı kaldır
            delete bossbar with id "dungeonboss"
            
            delete {dungeonboss.entity}
            set {dungeonboss.spawned} to false

# Boss öldüğünde ödül ve otomatik spawn
on death of zombie:
    if name of victim contains "DUNGEON BOSS":
        clear drops # Boss ekipmanı yere düşmesin
        
        if attacker is a player:
            give 10 diamond to attacker
            send "&b&l Fatya &f&lSMP &7» &6Dungeon Boss'u öldürdün! Ödül senin." to attacker
        
        set {dungeonboss.spawned} to false
        delete {dungeonboss.entity}
        
        # Bossbar'ı kaldır
        delete bossbar with id "dungeonboss"
        
        # Ses ve havalı mesaj
        loop all players:
            play sound "minecraft:entity.experience_orb.pickup" with volume 0.5 and pitch 1 to loop-player
        
        broadcast "&b&l Fatya &f&lSMP &7» &c&lDUNGEON BOSS &6%attacker% &etarafından yok edildi!"
        
        # 5 dakika sonra otomatik spawn
        wait 5 minutes
        
        if {dungeonboss.spawned} is false:
            set {_loc} to location(0, -60, 0, world "dungeonworld")
            spawn zombie at {_loc}
            set {_e} to last spawned entity
            set max health of {_e} to 200
            set health of {_e} to 200
            
            # Zırh ve silah ekle
            set helmet of {_e} to netherite_helmet
            set chestplate of {_e} to netherite_chestplate
            set leggings of {_e} to netherite_leggings
            set boots of {_e} to netherite_boots
            set tool of {_e} to netherite_sword
            
            set name of {_e} to "&c&lDUNGEON BOSS [&e200&c]"
            set {dungeonboss.entity} to {_e}
            set {dungeonboss.spawned} to true
            
            # Yeni bossbar oluştur
            create bossbar with id "dungeonboss", title "&c&lDUNGEON BOSS", progress 1, color red, style segmented 10 for all players
            
            broadcast "&b&l Fatya &f&lSMP &7» &c&lDUNGEON BOSS &eyeniden spawnlandı!"

# Bossun canını isim ve bossbar'da göster
every 0.5 seconds:
    if {dungeonboss.spawned} is true:
        set {_e} to {dungeonboss.entity}
        if {_e} is alive:
            set {_hp} to health of {_e}
            set {_maxhp} to max health of {_e}
            
            # Can yüzdesini hesapla (0-1 arası, bossbar için)
            set {_percent} to {_hp} / {_maxhp}
            
            # İsmi güncelle
            set name of {_e} to "&c&lDUNGEON BOSS [&e%{_hp}%&c/&e%{_maxhp}%&c]"
            
            # Bossbar'ı güncelle
            set progress of bossbar with id "dungeonboss" to {_percent}
            set title of bossbar with id "dungeonboss" to "&c&lDUNGEON BOSS &f[&e%{_hp}%&f/&e%{_maxhp}%&f]"
        else:
            set {dungeonboss.spawned} to false
            delete {dungeonboss.entity}
            delete bossbar with id "dungeonboss"
Böyle deneyin.
 
Kod:
variables:
    {dungeonboss.spawned} = false
    {dungeonboss.entity} = none
    {dungeonboss.spawnLocation} = none

on load:
    set {dungeonboss.spawnLocation} to location(0, -60, 0, world "dungeonworld")

# Manuel spawn komutu
command /spawndungeonboss:
    permission: dungeonboss.admin
    permission message: &cBu komutu kullanamazsın.
    trigger:
        if {dungeonboss.spawned} is true:
            send "&b&l Fatya &f&lSMP &7» &cBoss zaten spawnlanmış!" to player
            stop
      
        # Bossu spawn et
        set {_loc} to location(0, -60, 0, world "dungeonworld")
        spawn zombie at {_loc}
        set {_e} to last spawned entity
        set max health of {_e} to 200
        set health of {_e} to 200
      
        # Zırh ve silah ekle
        set helmet of {_e} to netherite_helmet
        set chestplate of {_e} to netherite_chestplate
        set leggings of {_e} to netherite_leggings
        set boots of {_e} to netherite_boots
        set tool of {_e} to netherite_sword
      
        set {dungeonboss.entity} to {_e}
        set {dungeonboss.spawned} to true
        set name of {_e} to "&c&lDUNGEON BOSS [&e200&c]"
      
        # Bossbar oluştur - SkBee syntax
        create bossbar with id "dungeonboss", title "&c&lDUNGEON BOSS", progress 1, color red, style segmented 10 for all players
      
        send "&b&l Fatya &f&lSMP &7» &aDungeon Boss spawnlandı!"

# OP ile öldürme
command /killdungeonboss:
    permission: op
    permission message: &cBu komutu sadece OP kullanabilir.
    trigger:
        if {dungeonboss.spawned} is false:
            send "&b&l Fatya &f&lSMP &7» &cDungeon Boss şu anda spawnlı değil." to player
            stop
      
        if {dungeonboss.entity} is set:
            kill {dungeonboss.entity}
            broadcast "&b&l Fatya &f&lSMP &7» &cDungeon Boss OP tarafından öldürüldü!"
          
            # Bossbar'ı kaldır
            delete bossbar with id "dungeonboss"
          
            delete {dungeonboss.entity}
            set {dungeonboss.spawned} to false

# Boss öldüğünde ödül ve otomatik spawn
on death of zombie:
    if name of victim contains "DUNGEON BOSS":
        clear drops # Boss ekipmanı yere düşmesin
      
        if attacker is a player:
            give 10 diamond to attacker
            send "&b&l Fatya &f&lSMP &7» &6Dungeon Boss'u öldürdün! Ödül senin." to attacker
      
        set {dungeonboss.spawned} to false
        delete {dungeonboss.entity}
      
        # Bossbar'ı kaldır
        delete bossbar with id "dungeonboss"
      
        # Ses ve havalı mesaj
        loop all players:
            play sound "minecraft:entity.experience_orb.pickup" with volume 0.5 and pitch 1 to loop-player
      
        broadcast "&b&l Fatya &f&lSMP &7» &c&lDUNGEON BOSS &6%attacker% &etarafından yok edildi!"
      
        # 5 dakika sonra otomatik spawn
        wait 5 minutes
      
        if {dungeonboss.spawned} is false:
            set {_loc} to location(0, -60, 0, world "dungeonworld")
            spawn zombie at {_loc}
            set {_e} to last spawned entity
            set max health of {_e} to 200
            set health of {_e} to 200
          
            # Zırh ve silah ekle
            set helmet of {_e} to netherite_helmet
            set chestplate of {_e} to netherite_chestplate
            set leggings of {_e} to netherite_leggings
            set boots of {_e} to netherite_boots
            set tool of {_e} to netherite_sword
          
            set name of {_e} to "&c&lDUNGEON BOSS [&e200&c]"
            set {dungeonboss.entity} to {_e}
            set {dungeonboss.spawned} to true
          
            # Yeni bossbar oluştur
            create bossbar with id "dungeonboss", title "&c&lDUNGEON BOSS", progress 1, color red, style segmented 10 for all players
          
            broadcast "&b&l Fatya &f&lSMP &7» &c&lDUNGEON BOSS &eyeniden spawnlandı!"

# Bossun canını isim ve bossbar'da göster
every 0.5 seconds:
    if {dungeonboss.spawned} is true:
        set {_e} to {dungeonboss.entity}
        if {_e} is alive:
            set {_hp} to health of {_e}
            set {_maxhp} to max health of {_e}
          
            # Can yüzdesini hesapla (0-1 arası, bossbar için)
            set {_percent} to {_hp} / {_maxhp}
          
            # İsmi güncelle
            set name of {_e} to "&c&lDUNGEON BOSS [&e%{_hp}%&c/&e%{_maxhp}%&c]"
          
            # Bossbar'ı güncelle
            set progress of bossbar with id "dungeonboss" to {_percent}
            set title of bossbar with id "dungeonboss" to "&c&lDUNGEON BOSS &f[&e%{_hp}%&f/&e%{_maxhp}%&f]"
        else:
            set {dungeonboss.spawned} to false
            delete {dungeonboss.entity}
            delete bossbar with id "dungeonboss"
Böyle deneyin.
bunu yapıştırdım ve şuanda bunları diyor.

Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.
 
Son düzenleme:
Kod:
variables:
    {dungeonboss.spawned} = false
    {dungeonboss.entity} = none
    {dungeonboss.spawnLocation} = none

on load:
    set {dungeonboss.spawnLocation} to location(0, -60, 0, world "dungeonworld")

# Manuel spawn komutu
command /spawndungeonboss:
    permission: dungeonboss.admin
    permission message: &cBu komutu kullanamazsın.
    trigger:
        if {dungeonboss.spawned} is true:
            send "&b&l Fatya &f&lSMP &7» &cBoss zaten spawnlanmış!" to player
            stop
        
        # Bossu spawn et
        set {_loc} to location(0, -60, 0, world "dungeonworld")
        spawn zombie at {_loc}
        set {_e} to last spawned entity
        set max health of {_e} to 200
        set health of {_e} to 200
        
        # Zırh ve silah ekle
        set helmet of {_e} to netherite_helmet
        set chestplate of {_e} to netherite_chestplate
        set leggings of {_e} to netherite_leggings
        set boots of {_e} to netherite_boots
        set tool of {_e} to netherite_sword
        
        set {dungeonboss.entity} to {_e}
        set {dungeonboss.spawned} to true
        set name of {_e} to "&c&lDUNGEON BOSS [&e200&c]"
        
        # Bossbar oluştur - farklı syntax deneyelim
        loop all players:
            create bossbar named "dungeonboss" for loop-player with title "&c&lDUNGEON BOSS" with progress 100 with color red with style segmented_10
        
        send "&b&l Fatya &f&lSMP &7» &aDungeon Boss spawnlandı!"

# OP ile öldürme
command /killdungeonboss:
    permission: op
    permission message: &cBu komutu sadece OP kullanabilir.
    trigger:
        if {dungeonboss.spawned} is false:
            send "&b&l Fatya &f&lSMP &7» &cDungeon Boss şu anda spawnlı değil." to player
            stop
        
        if {dungeonboss.entity} is set:
            kill {dungeonboss.entity}
            broadcast "&b&l Fatya &f&lSMP &7» &cDungeon Boss OP tarafından öldürüldü!"
            
            # Bossbar'ı kaldır
            loop all players:
                remove bossbar named "dungeonboss" from loop-player
            
            delete {dungeonboss.entity}
            set {dungeonboss.spawned} to false

# Boss öldüğünde ödül ve otomatik spawn
on death of zombie:
    if name of victim contains "DUNGEON BOSS":
        clear drops # Boss ekipmanı yere düşmesin
        
        if attacker is a player:
            give 10 diamond to attacker
            send "&b&l Fatya &f&lSMP &7» &6Dungeon Boss'u öldürdün! Ödül senin." to attacker
        
        set {dungeonboss.spawned} to false
        delete {dungeonboss.entity}
        
        # Bossbar'ı kaldır
        loop all players:
            remove bossbar named "dungeonboss" from loop-player
        
        # Ses ve havalı mesaj
        loop all players:
            play sound "minecraft:entity.experience_orb.pickup" with volume 0.5 and pitch 1 to loop-player
        
        broadcast "&b&l Fatya &f&lSMP &7» &c&lDUNGEON BOSS &6%attacker% &etarafından yok edildi!"
        
        # 5 dakika sonra otomatik spawn
        wait 5 minutes
        
        if {dungeonboss.spawned} is false:
            set {_loc} to location(0, -60, 0, world "dungeonworld")
            spawn zombie at {_loc}
            set {_e} to last spawned entity
            set max health of {_e} to 200
            set health of {_e} to 200
            
            # Zırh ve silah ekle
            set helmet of {_e} to netherite_helmet
            set chestplate of {_e} to netherite_chestplate
            set leggings of {_e} to netherite_leggings
            set boots of {_e} to netherite_boots
            set tool of {_e} to netherite_sword
            
            set name of {_e} to "&c&lDUNGEON BOSS [&e200&c]"
            set {dungeonboss.entity} to {_e}
            set {dungeonboss.spawned} to true
            
            # Yeni bossbar oluştur
            loop all players:
                create bossbar named "dungeonboss" for loop-player with title "&c&lDUNGEON BOSS" with progress 100 with color red with style segmented_10
            
            broadcast "&b&l Fatya &f&lSMP &7» &c&lDUNGEON BOSS &eyeniden spawnlandı!"

# Bossun canını isim ve bossbar'da göster
every 0.5 seconds:
    if {dungeonboss.spawned} is true:
        set {_e} to {dungeonboss.entity}
        if {_e} is alive:
            set {_hp} to health of {_e}
            set {_maxhp} to max health of {_e}
            
            # Can yüzdesini hesapla (0-100 arası)
            set {_percent} to ({_hp} / {_maxhp}) * 100
            
            # İsmi güncelle
            set name of {_e} to "&c&lDUNGEON BOSS [&e%{_hp}%&c/&e%{_maxhp}%&c]"
            
            # Bossbar'ı güncelle
            loop all players:
                set value of bossbar named "dungeonboss" for loop-player to {_percent}
                set title of bossbar named "dungeonboss" for loop-player to "&c&lDUNGEON BOSS &f[&e%{_hp}%&f/&e%{_maxhp}%&f]"
        else:
            set {dungeonboss.spawned} to false
            delete {dungeonboss.entity}
            loop all players:
                remove bossbar named "dungeonboss" from loop-player
Bunu deneyin, eğer olmazsa /skript info komutunu kullanıp skbee sürümünü iletin.
 
Son düzenleme:
yanlış attınız sanırım
 
Kod:
[16:08:02 INFO]: [Skript] Loading variables...
[16:08:02 ERROR]: #!#!
[16:08:02 ERROR]: #!#! ===!!!=== Skript variable load error ===!!!===
[16:08:02 ERROR]: #!#! Unable to load (all) variables:
[16:08:02 ERROR]: #!#! 2 variables could not be loaded!
[16:08:02 ERROR]: #!#! Affected variables: dungeonboss.bossbar, dungeonboss.entity
[16:08:02 INFO]: [Skript] Created a backup of variables.csv as variables_2026-02-09_16-08-02.csv
[16:08:02 ERROR]: #!#!
[16:08:02 ERROR]: #!#! Skript will work properly, but old variables might not be available at all an
d new ones may or may not be saved until Skript is able to create a backup of the old file and/or is
able to connect to the database (which requires a restart of Skript)!
[16:08:02 ERROR]: #!#!
[16:08:02 INFO]: [Skript] Loaded 1311 variables in 0.0 seconds
[16:08:02 INFO]: -
[16:08:03 INFO]: [Skript] Line 37: (dungeonboss.sk)
[16:08:03 INFO]: "dungeonboss" is not a location
[16:08:03 INFO]: Line: create bossbar with id "dungeonboss", title "&c&lDUNGEON BOSS", progress
1, color red, style segmented 10 for all players
[16:08:09 INFO]: [Skript] Line 103: (dungeonboss.sk)
[16:08:09 INFO]: "dungeonboss" is not a location
[16:08:09 INFO]: Line: create bossbar with id "dungeonboss", title "&c&lDUNGEON BOSS", progress
1, color red, style segmented 10 for all players
[16:08:09 INFO]:
[16:08:09 INFO]: [Skript] Line 122: (dungeonboss.sk)
[16:08:09 INFO]: Can't understand this condition/effect: set progress of bossbar with id "dungeo
nboss" to {_percent}
[16:08:09 INFO]: Line: set progress of bossbar with id "dungeonboss" to {_percent}
[16:08:09 INFO]:
[16:08:09 INFO]: [Skript] Line 123: (dungeonboss.sk)
[16:08:09 INFO]: Can't understand this condition/effect: set title of bossbar with id "dungeonbo
ss" to "&c&lDUNGEON BOSS &f[&e%{_hp}%&f/&e%{_maxhp}%&f]"
[16:08:09 INFO]: Line: set title of bossbar with id "dungeonboss" to "&c&lDUNGEON BOSS &f[&e%{_h
p}%&f/&e%{_maxhp}%&f]"
[16:08:09 INFO]:
[16:08:09 INFO]: [Skript] Loaded 42 scripts with a total of 115 structures in 7.1 seconds
[16:08:09 INFO]: [Skript] Finished loading.
Bunu deneyin, eğer olmazsa /skript info komutunu kullanıp skbee sürümünü iletin.
skript info yazdıktan sonra çıkan sürüm listesi aşağıdaki gibi.

> skript info
>
[Skript] Skript's aliases can be found here:
Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.

[Skript] Skript's documentation can be found here:
Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.

[Skript] Skript's tutorials can be found here:
Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.

[Skript] Server Version: 1.21.11-2538-fe2ec0b (MC: 1.21.11)
[Skript] Skript Version: 2.14.0 (skriptlang-github)
[Skript] Installed Skript Addons:
[Skript] - SkQuery v4.3.2
[Skript] - SkBee v3.16.1 (
Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.
)
[Skript] Installed dependencies:
[Skript] - Vault v1.7.3-b131
[Skript] - WorldGuard v7.0.15+2347-5fafea6
[Skript] - GriefPrevention v16.18.6
 
@furkangn7 kusura bakmayın yanlış atmışım, mesajımı düzenledim dener misiniz ?
 
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