From 26db866a3ef3216ab875edd3e3f1052b53f69f04 Mon Sep 17 00:00:00 2001 From: TheAfroOfDoom Date: Mon, 19 Feb 2024 13:41:46 -0500 Subject: [PATCH] add convenience function to stop the boss fight - it can loop endlessly now that we connect all 3 phases (`attack`, `soul`, `warn`) so having a function call to end it is crucial --- datapacks/omega-flowey/data/_/functions/README.md | 1 + .../omega-flowey/data/_/functions/boss_fight/stop.mcfunction | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 datapacks/omega-flowey/data/_/functions/boss_fight/stop.mcfunction diff --git a/datapacks/omega-flowey/data/_/functions/README.md b/datapacks/omega-flowey/data/_/functions/README.md index d2c46aed9..a8bf7b4ea 100644 --- a/datapacks/omega-flowey/data/_/functions/README.md +++ b/datapacks/omega-flowey/data/_/functions/README.md @@ -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` diff --git a/datapacks/omega-flowey/data/_/functions/boss_fight/stop.mcfunction b/datapacks/omega-flowey/data/_/functions/boss_fight/stop.mcfunction new file mode 100644 index 000000000..4687553e6 --- /dev/null +++ b/datapacks/omega-flowey/data/_/functions/boss_fight/stop.mcfunction @@ -0,0 +1,2 @@ +function entity:remove_animated_java_models +kill @e[tag=boss_fight]