Skip to content

Commit

Permalink
v1.1.1
Browse files Browse the repository at this point in the history
Tracker Compasses will be cleared from runners and runners who have lost all lives will be removed from the team.
  • Loading branch information
Stonley890 committed Jul 11, 2022
1 parent a974373 commit eee3f0f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
Binary file modified data/.DS_Store
Binary file not shown.
Binary file modified data/manhunt/.DS_Store
Binary file not shown.
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":"Compass Tracker loaded!","bold":true,"color":"aqua"},"\n",{"text":"Stonley890/BogTheMudWing - Version 1.1.0","color":"gold"},"\n","\n",{"text":"Use /function manhunt:start to get started. Use /trigger manhunt-options to change options.","color":"gray"},"\n",{"text":"Put all runners on the runner team","italic":true,"color":"dark_gray"},"\n"]
tellraw @a ["\n",{"text":"Compass Tracker loaded!","bold":true,"color":"aqua"},"\n",{"text":"Stonley890/BogTheMudWing - Version 1.1.1","color":"gold"},"\n","\n",{"text":"Use /function manhunt:start to get started. Use /trigger manhunt-options to change options.","color":"gray"},"\n",{"text":"Put all runners on the runner team","italic":true,"color":"dark_gray"},"\n"]
11 changes: 8 additions & 3 deletions data/manhunt/functions/loop-core.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,23 @@ execute as @a[team=Runner,scores={Deaths=1..,RemainingLives=0}] run tellraw @a [
execute as @a[team=Runner,scores={Deaths=1..,RemainingLives=0}] run gamemode spectator @s
execute as @a[team=Runner,scores={Deaths=1..}] run scoreboard players set @s Deaths 0

# Remove compasses from runners
clear @a[team=Runner] compass{display:{Name:'{"text":"Tracker Compass","color": "aqua","italic": false}'}}

# Options
## Change countdown
execute as @a[scores={Countdown=0..}] store result score .countdown manhunt-options run scoreboard players get @s Countdown
execute as @a[scores={Countdown=0..}] run scoreboard players enable @s Countdown
execute as @a[scores={Countdown=0..}] run scoreboard players set @s Countdown -1

## Change lives
execute as @a[scores={Lives=0..}] store result score .lives manhunt-options run scoreboard players get @s Lives
execute as @a[scores={Lives=0..}] run scoreboard players enable @s Lives
execute as @a[scores={Lives=0..}] run scoreboard players set @s Lives -1

## Menu tellraw
execute as @a[scores={manhunt-options=1}] run tellraw @s [{"text":"\n"},{"text":"- Manhunt Settings -\n","color":"red","bold":true},{"text":"\n> Countdown Timer\n","color":"white","bold":false},{"text":"Set the number of ticks (1/20th of a second) to wait before hunters can begin.\n","color":"gray","bold":false},{"text":"[","color":"dark_gray"},{"score":{"name":".countdown","objective":"manhunt-options"},"color":"gray","underlined":true,"clickEvent":{"action":"suggest_command","value":"/trigger Countdown set "},"bold":false},{"text":" ticks","color":"gray"},{"text":"]\n","color":"dark_gray"},{"text":"\n> Runner Lives\n","color":"white","bold":false},{"text":"Set the number of lives runners are granted. Set to 0 for infinite.\n","color":"gray","bold":false},{"text":"[","color":"dark_gray"},{"score":{"name":".lives","objective":"manhunt-options"},"color":"gray","underlined":true,"clickEvent":{"action":"suggest_command","value":"/trigger Lives set "},"bold":false},{"text":" lives","color":"gray"},{"text":"]","color":"dark_gray"}]

## Reset trigger
execute as @a[scores={manhunt-options=1..}] run scoreboard players enable @s manhunt-options
execute as @a[scores={manhunt-options=1..}] run scoreboard players set @s manhunt-options 0

# Loop
schedule function manhunt:loop-core 1
Binary file modified data/minecraft/.DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions pack.mcmeta
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"pack": {
"pack_format": 7,
"description": "Track runners in any dimension"
"pack_format": 10,
"description": "v1.1.1 - BogTheMudWing/Stonley890"
}
}

0 comments on commit eee3f0f

Please sign in to comment.