furkangn7
Somon Balığı Selam Vermeye Geldi
ö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}