Boss regains full health after unloading the chunk it is in.
Summary
Players on the server have reported that if you start fighting a boss and then teleport to a different world and then back, the boss will regain full health.
Steps to reproduce
Monster:
Type: Slime
Display: '<#FF7D20>&lOminous Ooze &r&8[&f<mob.hp>&7/&f<mob.mhp>&8]'
Damage: 10
Health: 5000
Faction: boss
DamageModifiers:
- ENTITY_ATTACK 0.60
- PROJECTILE 0.50
- MAGIC 1
# Stop farms
- DROWNING 0
- BLOCK_EXPLOSION 0
- POISON 0
- WITHER 0
- FALLING_BLOCK 0
- THORNS 0
- LAVA 0
- FIRE_TICK 0
- FIRE 0
- HOT_FLOOR 0
- FALL 0
- SUFFOCATION 0
- CONTACT 0
Options:
PreventSunburn: true
AlwaysShowName: true
PreventOtherDrops: true
PreventMobKillDrops: true
MovementSpeed: 0.5
Silent: true
Glowing: false
Despawn: false
ShowHealth: false
# Slime specific
KnockbackResistance: 1
PreventSlimeSplit: true
Size: 3
BossBar:
Enabled: true
Title: '<#FF7D20>&lOminous Ooze &r&8[&f<mob.hp>&7/&f<mob.mhp>&8]'
Range: 40
Color: PURPLE
Style: CLEAR
Skills:
# Self destruct/despawn
- remove{delay=24000} @self ~onSpawn
- setvariable{var=caster.timer;type=INTEGER;value=1200} @self ~onSpawn
- delay 20
- variableadd{var=caster.timer;amount=-1} @self ~onTimer:20
# On spawn
- message{m="<#FF7D20>&l>&r &7A <#FF7D20>&lOminous Ooze&r &7has been summoned nearby"} @PlayersInRadius{r=30} ~onSpawn
# On timer
- setname{name="<#FF7D20>&lOminous Ooze &r&8[&f<mob.hp>&7/&f<mob.mhp>&8] &7<caster.var.timer>s"} @self ~onTimer:10
- glow{d=20;color=GOLD} @self ~onTimer:20
# On damaged
# - skill{s=MonsterBow} ~onDamaged 0.5 # Stop bows
- throw{velocity=5;velocityY=4} @EIR{r=4} ~onDamaged 0.1
# - skill{s=MonsterGoo} ~onDamaged 0.8
# On Attack
# - skill{s=MonsterGoo} ~onAttack
# On death
- message{m="<#FF7D20>&l>&r <#FF7D20>&lOminous Ooze &r&7dissolved"} @PlayersInRadius{r=30} ~onDeath
# Skills activated at health
# - skill{s=MonsterRandom} =4500
# - skill{s=MonsterRandom} =4000
# - skill{s=MonsterRandom} =3500
# - skill{s=MonsterRandom} =3000
# - skill{s=MonsterRandom} =2500
# - skill{s=MonsterRandom} =2000
# -----------] Counter Exploits [--------
# Stop players from putting the boss in a boat
- dismount ~onDamaged 1
# Help with water
- potion{t=DOLPHINS_GRACE;d=2000;l=2;force=true} @self ~onTimer:100
Intended correct behavior
The boss should keep the same health
Log snippet
This could be a reason why as its not able to process the hp when players teleport away!
[12:32:43 ERROR]: [MythicMobs] Failed to process placeholder <caster.hp> in xPlaceholderString{'<#FF7D20>Wandering Minion [<caster.hp>/<caster.mhp>]'}
[12:32:43 ERROR]: [MythicMobs] null (java.lang.NullPointerException)
[12:32:43 WARN]: [MythicMobs] This error has been saved in the Error Logs folder. Please report it on the MythicCraft forums or discord.
[12:32:43 ERROR]: [MythicMobs] Failed to process placeholder <caster.mhp> in xPlaceholderString{'<#FF7D20>Wandering Minion [<caster.hp>/<caster.mhp>]'}
[12:32:43 ERROR]: [MythicMobs] null (java.lang.NullPointerException)
[12:32:43 WARN]: [MythicMobs] This error has been saved in the Error Logs folder. Please report it on the MythicCraft forums or discord.
[12:32:43 WARN]: [MythicMobs] ✗ Config Error for Mob 'RandomSpawn' in 'RandomSpawn.yml': Error processing skills for mob RandomSpawn. Mob type may no longer exist, or may have become corrupted by a server crash, and will be removed.