A set of Norse god themed boss fights for FTB's Architect's Exodus modpack. Each boss has multiple phases, its own arena mechanics, signature attacks, and an intro cinematic + music.
FTB Ragnarok fires custom Forge events you can hook from KubeJS or another mod, covering boss spawns, phase transitions, deaths, enrage, and per boss ability triggers such as Ymir's stomp, Nidhogg's fire breath and shadow clones, and Hel's clone spawns. All events are nested classes under dev.ftb.mods.ftbragnarok.event.RagnarokBossEvent and provide getBoss() and getLevel().
These bosses are intended to have a 32 radius arena where they are fought in that is mostly clear of obstructions. You'll need to provde this if you use it in your pack, you can see how we've implemented it in FTB Architect's Exodus.
A quick example, placed in kubejs/server_scripts/:
// Announce any Ragnarok boss death to the server
ForgeEvents.onEvent(
'dev.ftb.mods.ftbragnarok.event.RagnarokBossEvent$BossDeath',
event => {
let boss = event.getBoss()
event.getLevel().getServer().tell(
Component.literal(boss.getName().getString() + ' has been slain!')
)
}
)