Skip to content

Commit

Permalink
Sounds for success / fail depending on which team gets a kill
Browse files Browse the repository at this point in the history
  • Loading branch information
slicedlime committed May 23, 2021
1 parent 2855b38 commit 49326cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data/mob_dash/functions/award_kill.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

tag @s add md_current
execute as @e[type=area_effect_cloud,tag=md_team] if score @s md_team = @p[tag=md_current] md_team run function mob_dash:increase_score
execute as @a[scores={md_team=1..8}] if score @s md_team = @p[tag=md_current] md_team at @s run playsound minecraft:block.note_block.bell master @s ~ ~ ~ 1 0.6
execute as @a[scores={md_team=1..8}] unless score @s md_team = @p[tag=md_current] md_team at @s run playsound minecraft:block.note_block.didgeridoo master @s ~ ~ ~ 1 0.5
tag @s remove md_current

scoreboard players set $Target md_state 0

0 comments on commit 49326cb

Please sign in to comment.