Skip to content

Commit

Permalink
add convenience function to stop the boss fight
Browse files Browse the repository at this point in the history
- it can loop endlessly now that we connect all 3 phases (`attack`, `soul`, `warn`) so having a function call to end it is crucial
  • Loading branch information
TheAfroOfDoom committed Feb 29, 2024
1 parent e5e13b4 commit 26db866
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions datapacks/omega-flowey/data/_/functions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This directory contains convenience functions for developers for quicker calls t
- `attack`: runs the pre-defined attack's `start` function
- `attack/random/n`: randomly starts an attack from the `boss_fight`'s attack phase `n` (e.g. `n = 0`)
- `boss_fight`: starts the vanilla boss fight
- `boss_fight/stop`: stops any currently running boss fights
- `heal`: heals the executing player to full, fills the hunger bar, and applies infinite night vision
- `reset_scores`: resets the `omega-flowey` boss's attack score parameters
- `reset`: calls `omega-flowey:reset`
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
function entity:remove_animated_java_models
kill @e[tag=boss_fight]

0 comments on commit 26db866

Please sign in to comment.