Skip to content

Commit

Permalink
🔊 playsound to player upon dying in bossfight/leaving arena
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAfroOfDoom committed Oct 19, 2024
1 parent 21cc5ce commit 4690ad4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function omegaflowey.entity:shared/run_as_active_player_or_spectator { command:
'execute unless entity @s[tag=omegaflowey.player.fighting_flowey] run \
function omegaflowey.entity:directorial/boss_fight/shared/stop/as_spectator' \
}
$execute as $(active_player_uuid) run function omegaflowey.entity:directorial/boss_fight/shared/stop/as_active_player
$execute as $(active_player_uuid) at @s run function omegaflowey.entity:directorial/boss_fight/shared/stop/as_active_player

function omegaflowey.main:summit/room/cave/active_player_display/update_value with storage omegaflowey:bossfight
# prompt next player in queue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ execute \
function omegaflowey.entity:directorial/boss_fight/shared/stop/as_active_player/modify_health_and_tags

function omegaflowey.entity:directorial/boss_fight/shared/stop/as_active_player/log_reason

execute if score #omegaflowey.bossfight.stop_reason omegaflowey.global.flag matches 3 run \
playsound omega-flowey:player.escaped player @s ~ ~ ~ 3
7 changes: 7 additions & 0 deletions resourcepack/assets/omega-flowey/sounds.json
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,13 @@
}
]
},
"player.escaped": {
"sounds": [
{
"name": "omega-flowey:snd_escaped"
}
]
},
"soul.heal": {
"sounds": [
{
Expand Down
Binary file not shown.

0 comments on commit 4690ad4

Please sign in to comment.