execute as @s[scores={18mm=1..}] at @s run title @s actionbar [{"text":"| ///","color":"dark_red"},{"text":" "},{"color":"dark_green","score":{"objective":"18mm","name":"@s"}},{"text":" "},{"text":"\\\\\\ |","color":"dark_red"}]
execute as @s[scores={18mm=..0}] at @s run title @s actionbar [{"text":"| ///","color":"dark_red"},{"text":" "},{"color":"red","score":{"objective":"18mm","name":"@s"}},{"text":" "},{"text":"\\\\\\ |","color":"dark_red"}]