Skip to content

Commit

Permalink
Fix Day 1 tool time warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Nincodedo committed Aug 17, 2023
1 parent f5ac83c commit 3b01460
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title @s actionbar [{"score":{"name": "@s","objective": "day1tooldisplay"}},{"text": " minutes remaining on your Day 1 tools"}]
tag @s[scores={day1tooldisplay=15}] add 1stday1toolwarning
tag @s[scores={day1tooldisplay=10}] add 2ndday1toolwarning
tag @s[scores={day1tooldisplay=5}] add 3rdday1toolwarning
tag @s[scores={day1tooldisplay=..15}] add 1stday1toolwarning
tag @s[scores={day1tooldisplay=..10}] add 2ndday1toolwarning
tag @s[scores={day1tooldisplay=..5}] add 3rdday1toolwarning
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
scoreboard objectives add day1toolticks dummy
scoreboard objectives add day1tooldisplay dummy
scoreboard objectives add day1tooltime trigger

scoreboard players set day1tooltickinit rhcconfig 24000
scoreboard players set ticktominutes math 1200
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
execute as @a[scores={bannerplz=1}] at @s run function nincodedo:triggers/givebannerforlocation
execute as @a[scores={nopotionsplz=1}] run function nincodedo:triggers/nopotionsplz
execute as @a[scores={day1tooltime=1}] run function nincodedo:triggers/day1tooltimecheck
execute as @a[tag=!triggerbannerenabled] run function nincodedo:util/setup_new_player
execute if score potionhorn rhcdata matches 1 as @a[tag=!triggernopotionenabled] run scoreboard players enable @s nopotionsplz
execute if score potionhorn rhcdata matches 1 as @a[tag=!triggernopotionenabled] run tag @s add triggernopotionenabled
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
function nincodedo:rewards/announce_day1_tool_warning

scoreboard players set @s day1tooltime 0
scoreboard players enable @s day1tooltime

0 comments on commit 3b01460

Please sign in to comment.