Skip to content

Commit

Permalink
Merge pull request #79 from rdroog/glowing-200-minutes
Browse files Browse the repository at this point in the history
Glowing should be able to start between 0 and 200 minutes
  • Loading branch information
DrHenchman authored Apr 14, 2021
2 parents 91df2cb + cae0428 commit 179edc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/uhc_pack/functions/lobby/update_options.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ execute if score UHC uhcEter matches 101.. run scoreboard players set UHC uhcEte
execute if score UHC uhcEter matches ..-1 run scoreboard players set UHC uhcEter 100
execute if score @s[tag=admin] uhcOpt matches 102..103 run tellraw @a [{"text":""},{"text":"UHC","color":"light_purple"},{"text":" \u2503 "},{"text":"Options","color":"gray"},{"text":" \u2503 "},{"text":"Eternal day start ","color":"aqua"},{"text":"set to "},{"score":{"name":"UHC","objective":"uhcEter"},"color":"gold"},{"text":" minutes"}]

# >>>> Adjust Glowing start (min=0, max=100)
# >>>> Adjust Glowing start (min=0, max=200)
# 104 - Reduce glowing start by 10 (or cycle to max)
# 105 - Increase glowing start by 10 (or cycle to min)
execute if score @s[tag=admin] uhcOpt matches 104 run scoreboard players remove UHC uhcGlow 10
execute if score @s[tag=admin] uhcOpt matches 105 run scoreboard players add UHC uhcGlow 10
execute if score UHC uhcGlow matches 101.. run scoreboard players set UHC uhcGlow 0
execute if score UHC uhcGlow matches ..-1 run scoreboard players set UHC uhcGlow 100
execute if score UHC uhcGlow matches 201.. run scoreboard players set UHC uhcGlow 0
execute if score UHC uhcGlow matches ..-1 run scoreboard players set UHC uhcGlow 200
execute if score @s[tag=admin] uhcOpt matches 104..105 run tellraw @a [{"text":""},{"text":"UHC","color":"light_purple"},{"text":" \u2503 "},{"text":"Options","color":"gray"},{"text":" \u2503 "},{"text":"Glowing start ","color":"aqua"},{"text":"set to "},{"score":{"name":"UHC","objective":"uhcGlow"},"color":"gold"},{"text":" minutes"}]

# 106 - Toggle Eternal day
Expand Down

0 comments on commit 179edc6

Please sign in to comment.