Repository navigation
Phase finales: a boss ends each phase - #566
Merged
Merged
Conversation
A phase file may now carry a finale: section. Mining the last block of the phase seals the magic block and spawns the boss on it; the phase does not change until the boss is dead. - Only player damage hurts the boss, and finale mobs cannot change blocks, start fires or burn in daylight. - void-respawn (default true) returns a boss knocked into the void to the magic block; false lets the void kill it as a win. - The boss retreats if the island empties, and each lost fight makes the next attempt 10% easier, down to half health. Health scales with players on the island, capped at four. - The last blocks of the phase are forewarned by a rising heartbeat and a bell toll. - GIANT bosses get an attack goal through Paper's mob goal API. - All default phases ship with a finale. island.phase-finales turns the feature off. - New events: PhaseFinaleStartEvent (cancellable) and PhaseFinaleEndEvent. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The block count is already in the next phase while a boss is pending, so the phase boss bar and action bar showed the next phase at 0 blocks. - While a boss is pending they now name it and say to hit the magic block to face it. - While the boss is alive they are hidden; the boss has its own bar. - They refresh as soon as the fight ends instead of on the next break. - Restore the missing space in the defeated message. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What
A phase file can now carry an optional
finale:section. Mining the last block of the phase seals the magic block and spawns a boss on top of it. The phase does not change until the boss is dead.Requested in BentoBoxWorld/ChunkBlock#4; the ChunkBlock port follows this PR.
How it plays
void-respawn: true(default) returns the boss to the magic block.falselets the void kill it, which counts as a win.dropsfall on every kill;first-time-commandsrun once per island.Details
GIANThas no AI in vanilla, so giant bosses get an attack goal through Paper's mob goal API (GiantAttackGoal).0_plains.ymldocuments the keys. Existing servers keep their phase files, so admins addfinale:sections by hand.island.phase-finalesinconfig.ymlturns the feature off./ob setcount(player and admin) clears a pending or running finale.PhaseFinaleStartEvent(cancelling waives the finale) andPhaseFinaleEndEvent.en-UShas the four newaoneblock.finale.*messages.Testing
mvn test: 610 tests pass, including newFinaleListenerTestand parser tests that check every shipped phase file's finale.BlockListener.🤖 Generated with Claude Code