-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π« add outside tvscreen death animation when player dies in fight (#238)
* β»οΈ rename `show_custom_death_message` flag to `player_died` * π fix players in creative/spectator at low health triggering custom death message * π± add sounds for death animation * π« add outside tvscreen death animation * π₯ run death animation on outside tvscreen upon player death * π§βπ» add manual test to see outside tvscreen death animation * π add act button interaction advancement to build
- Loading branch information
1 parent
74a43c7
commit 2fad8a6
Showing
41 changed files
with
613 additions
and
10 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
datapacks/omegaflowey/data/_/function/test/player_death_outside_animation.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# player Steve spawn | ||
execute as Steve run function omegaflowey.entity:directorial/boss_fight/summit/player/queue/join | ||
execute as Steve run function omegaflowey.entity:directorial/boss_fight/summit/player/queue/prompt_next_player/show_prompt/confirm | ||
gamemode adventure Steve |
This file contains 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
This file contains 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
4 changes: 4 additions & 0 deletions
4
.../omegaflowey.main/function/summit/room/outside/setup/tv_screen/death_animation.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
function omegaflowey.main:summit/room/outside/setup/tv_screen/set_screen/clear | ||
$execute as $(outside_tvscreen_uuid) run tag @s remove is_active_death_animation | ||
function omegaflowey.main:summit/room/outside/setup/tv_screen/set_variant_shared/macro_set_static with storage omegaflowey:decorative | ||
schedule function omegaflowey.main:summit/room/outside/setup/tv_screen/death_animation/soul_idle/scheduled 10t replace |
2 changes: 2 additions & 0 deletions
2
.../function/summit/room/outside/setup/tv_screen/death_animation/soul_break/macro.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
$execute as $(outside_tvscreen_uuid) at @s \ | ||
run function omegaflowey.main:summit/room/outside/setup/tv_screen/death_animation/soul_break/macro/as_root |
3 changes: 3 additions & 0 deletions
3
...n/summit/room/outside/setup/tv_screen/death_animation/soul_break/macro/as_root.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
function animated_java:omegaflowey_tv_screen/variants/soul_break/apply | ||
playsound omega-flowey:decorative.soul.break ambient @a[distance=..64] ~ ~ ~ 4 | ||
schedule function omegaflowey.main:summit/room/outside/setup/tv_screen/death_animation/soul_shatter/scheduled 26t replace |
2 changes: 2 additions & 0 deletions
2
...ction/summit/room/outside/setup/tv_screen/death_animation/soul_break/scheduled.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
function omegaflowey.main:summit/room/outside/setup/tv_screen/death_animation/soul_break/macro \ | ||
with storage omegaflowey:decorative |
2 changes: 2 additions & 0 deletions
2
...n/function/summit/room/outside/setup/tv_screen/death_animation/soul_idle/macro.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
$execute as $(outside_tvscreen_uuid) at @s \ | ||
run function omegaflowey.main:summit/room/outside/setup/tv_screen/death_animation/soul_idle/macro/as_root |
4 changes: 4 additions & 0 deletions
4
...on/summit/room/outside/setup/tv_screen/death_animation/soul_idle/macro/as_root.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
stopsound @a[distance=..64] ambient omega-flowey:decorative.static | ||
function animated_java:omegaflowey_tv_screen/variants/soul_idle/apply | ||
playsound omega-flowey:decorative.soul.show ambient @a[distance=..64] ~ ~ ~ 4 | ||
schedule function omegaflowey.main:summit/room/outside/setup/tv_screen/death_animation/soul_break/scheduled 30t replace |
2 changes: 2 additions & 0 deletions
2
...nction/summit/room/outside/setup/tv_screen/death_animation/soul_idle/scheduled.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
function omegaflowey.main:summit/room/outside/setup/tv_screen/death_animation/soul_idle/macro \ | ||
with storage omegaflowey:decorative |
19 changes: 19 additions & 0 deletions
19
...function/summit/room/outside/setup/tv_screen/death_animation/soul_shatter/loop.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
execute unless entity @s[tag=tv_screen.outside, tag=is_active_death_animation] run return 0 | ||
|
||
scoreboard players add @s omegaflowey.decorative.clock.i 1 | ||
execute if score @s omegaflowey.decorative.clock.i matches 38 run return run tag @s remove is_active_death_animation | ||
|
||
execute if score @s omegaflowey.decorative.clock.i matches 0 run playsound omega-flowey:decorative.soul.shatter ambient @a[distance=..64] ~ ~ ~ 4 | ||
execute if score @s omegaflowey.decorative.clock.i matches 0 run return run function animated_java:omegaflowey_tv_screen/variants/soul_shatter_0/apply | ||
|
||
execute if score @s omegaflowey.decorative.clock.i matches 1 run return run function animated_java:omegaflowey_tv_screen/variants/soul_shatter_1/apply | ||
execute if score @s omegaflowey.decorative.clock.i matches 2 run return run function animated_java:omegaflowey_tv_screen/variants/soul_shatter_2/apply | ||
execute if score @s omegaflowey.decorative.clock.i matches 3 run return run function animated_java:omegaflowey_tv_screen/variants/soul_shatter_3/apply | ||
execute if score @s omegaflowey.decorative.clock.i matches 4 run return run function animated_java:omegaflowey_tv_screen/variants/soul_shatter_4/apply | ||
execute if score @s omegaflowey.decorative.clock.i matches 5 run return run function animated_java:omegaflowey_tv_screen/variants/soul_shatter_5/apply | ||
execute if score @s omegaflowey.decorative.clock.i matches 6 run return run function animated_java:omegaflowey_tv_screen/variants/soul_shatter_6/apply | ||
execute if score @s omegaflowey.decorative.clock.i matches 7 run return run function animated_java:omegaflowey_tv_screen/variants/soul_shatter_7/apply | ||
execute if score @s omegaflowey.decorative.clock.i matches 8 run return run function animated_java:omegaflowey_tv_screen/variants/soul_shatter_8/apply | ||
execute if score @s omegaflowey.decorative.clock.i matches 9 run return run function animated_java:omegaflowey_tv_screen/variants/soul_shatter_9/apply | ||
execute if score @s omegaflowey.decorative.clock.i matches 10 run return run function animated_java:omegaflowey_tv_screen/variants/soul_shatter_10/apply | ||
execute if score @s omegaflowey.decorative.clock.i matches 11 run return run function animated_java:omegaflowey_tv_screen/variants/default/apply |
2 changes: 2 additions & 0 deletions
2
...unction/summit/room/outside/setup/tv_screen/death_animation/soul_shatter/macro.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
$execute as $(outside_tvscreen_uuid) at @s \ | ||
run function omegaflowey.main:summit/room/outside/setup/tv_screen/death_animation/soul_shatter/macro/as_root |
3 changes: 3 additions & 0 deletions
3
...summit/room/outside/setup/tv_screen/death_animation/soul_shatter/macro/as_root.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
schedule function omegaflowey.main:summit/room/outside/setup/tv_screen/reset_variant 40t replace | ||
scoreboard players set @s omegaflowey.decorative.clock.i -1 | ||
tag @s add is_active_death_animation |
2 changes: 2 additions & 0 deletions
2
...ion/summit/room/outside/setup/tv_screen/death_animation/soul_shatter/scheduled.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
function omegaflowey.main:summit/room/outside/setup/tv_screen/death_animation/soul_shatter/macro \ | ||
with storage omegaflowey:decorative |
2 changes: 2 additions & 0 deletions
2
...ta/omegaflowey.main/function/summit/room/outside/setup/tv_screen/reset_variant.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
function omegaflowey.main:summit/room/outside/setup/tv_screen/set_screen/clear | ||
function omegaflowey.main:summit/room/outside/setup/tv_screen/reset_variant/macro with storage omegaflowey:decorative |
2 changes: 2 additions & 0 deletions
2
...gaflowey.main/function/summit/room/outside/setup/tv_screen/reset_variant/macro.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
$execute as $(outside_tvscreen_uuid) at @s \ | ||
run function omegaflowey.main:summit/room/outside/setup/tv_screen/reset_variant/macro/as_root |
11 changes: 11 additions & 0 deletions
11
....main/function/summit/room/outside/setup/tv_screen/reset_variant/macro/as_root.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Don't switch to day/night variant if in the middle of another animation | ||
execute if entity @s[tag=is_active_death_animation] run return 0 | ||
|
||
# Check current time of day and play set_variant_day/night accordingly | ||
execute store result score @s omegaflowey.math.0 run time query daytime | ||
execute unless score @s omegaflowey.math.0 matches 13500..23000 run tag @s add is_daytime | ||
|
||
execute if entity @s[tag=is_daytime] run function omegaflowey.main:summit/room/outside/setup/tv_screen/set_variant_day | ||
execute unless entity @s[tag=is_daytime] run function omegaflowey.main:summit/room/outside/setup/tv_screen/set_variant_night | ||
|
||
tag @s remove is_daytime |
9 changes: 9 additions & 0 deletions
9
...omegaflowey.main/function/summit/room/outside/setup/tv_screen/set_screen/clear.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
schedule clear omegaflowey.main:summit/room/outside/setup/tv_screen/death_animation/soul_break/scheduled | ||
schedule clear omegaflowey.main:summit/room/outside/setup/tv_screen/death_animation/soul_idle/scheduled | ||
schedule clear omegaflowey.main:summit/room/outside/setup/tv_screen/death_animation/soul_shatter/macro/as_root/reset_variant | ||
schedule clear omegaflowey.main:summit/room/outside/setup/tv_screen/death_animation/soul_shatter/scheduled | ||
schedule clear omegaflowey.main:summit/room/outside/setup/tv_screen/reset_variant | ||
schedule clear omegaflowey.main:summit/room/outside/setup/tv_screen/set_variant_day/scheduled | ||
schedule clear omegaflowey.main:summit/room/outside/setup/tv_screen/set_variant_night/scheduled | ||
|
||
execute as @a[distance=..64] run function omegaflowey.main:summit/room/outside/setup/tv_screen/set_screen/clear/as_nearby_players |
4 changes: 4 additions & 0 deletions
4
...unction/summit/room/outside/setup/tv_screen/set_screen/clear/as_nearby_players.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
stopsound @s ambient omega-flowey:decorative.static | ||
stopsound @s ambient omega-flowey:decorative.soul.break | ||
stopsound @s ambient omega-flowey:decorative.soul.shatter | ||
stopsound @s ambient omega-flowey:decorative.soul.show |
3 changes: 2 additions & 1 deletion
3
.../omegaflowey.main/function/summit/room/outside/setup/tv_screen/set_variant_day.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
function omegaflowey.main:summit/room/outside/setup/tv_screen/set_screen/clear | ||
function omegaflowey.main:summit/room/outside/setup/tv_screen/set_variant_shared/macro_set_static with storage omegaflowey:decorative | ||
schedule function omegaflowey.main:summit/room/outside/setup/tv_screen/set_variant_day/scheduled 10t | ||
schedule function omegaflowey.main:summit/room/outside/setup/tv_screen/set_variant_day/scheduled 10t replace |
3 changes: 2 additions & 1 deletion
3
...megaflowey.main/function/summit/room/outside/setup/tv_screen/set_variant_night.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
function omegaflowey.main:summit/room/outside/setup/tv_screen/set_screen/clear | ||
function omegaflowey.main:summit/room/outside/setup/tv_screen/set_variant_shared/macro_set_static with storage omegaflowey:decorative | ||
schedule function omegaflowey.main:summit/room/outside/setup/tv_screen/set_variant_night/scheduled 10t | ||
schedule function omegaflowey.main:summit/room/outside/setup/tv_screen/set_variant_night/scheduled 10t replace |
This file contains 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
Oops, something went wrong.