Skip to content

Commit

Permalink
Compass will not update when no players in dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
Stonley890 committed Jun 18, 2022
1 parent 38c1f7a commit 154e3d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data/manhunt/functions/load/hw.mcfunction
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tellraw @a ["\n",{"text":"Manhunt loaded!","bold":true,"color":"aqua"},"\n",{"text":"Version 1.3","color":"gold"},"\n","\n",{"text":"Use /trigger manhunt:start to get started.","color":"gray"},"\n",{"text":"Put all runners on the runner team","italic":true,"color":"dark_gray"},"\n"]
tellraw @a ["\n",{"text":"Manhunt loaded!","bold":true,"color":"aqua"},"\n",{"text":"Version 1.0.4","color":"gold"},"\n","\n",{"text":"Use /trigger manhunt:start to get started.","color":"gray"},"\n",{"text":"Put all runners on the runner team","italic":true,"color":"dark_gray"},"\n"]
6 changes: 3 additions & 3 deletions data/manhunt/functions/loop-core.mcfunction
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# If holding compass, replace with updated compass
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 data modify storage manhunt:test Item.slot set value 0b
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 data modify block 0 -64 0 Items append from storage manhunt:test Item
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.mainhand 1 mine 0 -64 0 air{drop_contents: 1b}
execute as @a[team=Hunter] at @s if entity @s[nbt={SelectedItem:{id: "minecraft:compass", Count: 1b, tag: {display: {Name: '{"text":"Tracker Compass","color": "aqua","italic": false}'}}}}] if entity @a[team=runner,distance=0..] if entity @a[team=Runner,distance=0..] run data modify storage manhunt:test Item.slot set value 0b
execute as @a[team=Hunter] at @s if entity @s[nbt={SelectedItem:{id: "minecraft:compass", Count: 1b, tag: {display: {Name: '{"text":"Tracker Compass","color": "aqua","italic": false}'}}}}] if entity @a[team=runner,distance=0..] if entity @a[team=Runner,distance=0..] run data modify block 0 -64 0 Items append from storage manhunt:test Item
execute as @a[team=Hunter] at @s if entity @s[nbt={SelectedItem:{id: "minecraft:compass", Count: 1b, tag: {display: {Name: '{"text":"Tracker Compass","color": "aqua","italic": false}'}}}}] if entity @a[team=runner,distance=0..] if entity @a[team=Runner,distance=0..] run loot replace entity @s weapon.mainhand 1 mine 0 -64 0 air{drop_contents: 1b}
# Give another compass upon death
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
Expand Down

0 comments on commit 154e3d2

Please sign in to comment.