Skip to content

Commit

Permalink
Give dead hunters compass
Browse files Browse the repository at this point in the history
  • Loading branch information
Stonley890 authored Jun 6, 2022
1 parent 7daf2cf commit cd82f32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion data/manhunt/functions/loop-core.mcfunction
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
execute as @a[team=Hunter] if entity @s[nbt={SelectedItem:{id: "minecraft:compass", Count: 1b, tag: {display: {Name: '{"text":"Tracker Compass","color": "aqua","italic": false}'}}}}] run loot replace entity @s weapon mine 0 -64 0 air{drop_contents: 1b}
execute as @a[team=Hunter] if entity @s[nbt={SelectedItem:{id: "minecraft:compass", Count: 1b, tag: {display: {Name: '{"text":"Tracker Compass","color": "aqua","italic": false}'}}}}] run title @s actionbar {"text":"Compass Refreshed","color":"green"}
execute as @a[team=Hunter,scores={hunterDeath=1..}] run give @s compass{display:{Name:'{"text":"Tracker Compass","color": "aqua","italic": false}'}}
execute as @a[team=Hunter,scores={hunterDeath=1..}] run scoreboard players set @s hunterDeath 0

schedule function manhunt:loop-core 1
schedule function manhunt:loop-core 1

0 comments on commit cd82f32

Please sign in to comment.