From 49326cbc6f607cb9da43d972894362f887cfee77 Mon Sep 17 00:00:00 2001 From: slicedlime Date: Sun, 23 May 2021 14:21:13 +0200 Subject: [PATCH] Sounds for success / fail depending on which team gets a kill --- data/mob_dash/functions/award_kill.mcfunction | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/mob_dash/functions/award_kill.mcfunction b/data/mob_dash/functions/award_kill.mcfunction index 7c1ea0e..5a67dd5 100644 --- a/data/mob_dash/functions/award_kill.mcfunction +++ b/data/mob_dash/functions/award_kill.mcfunction @@ -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