#player
execute as @a[nbt=!{SelectedItem:{}}] at @s run title @s actionbar [{"text":"❤: ","color":"red","bold":true},{"score":{"name":"@s","objective":"health"},"color":"white","bold":false},{"text":" / ","color":"white"},{"score":{"name":"@s","objective":"health_max"},"color":"white","bold":false}]

execute as @a[nbt={SelectedItem:{}}] unless entity @a[nbt={SelectedItem:{id:"minecraft:warped_fungus_on_a_stick"}}] at @s run title @s actionbar [{"text":"❤: ","color":"red","bold":true},{"score":{"name":"@s","objective":"health"},"color":"white","bold":false},{"text":" / ","color":"white"},{"score":{"name":"@s","objective":"health_max"},"color":"white","bold":false}]

$execute as @a[predicate=main:holding/rod,scores={player_id=$(id)}] if score @s rc_cooldown_s matches 1.. if score @s q_cooldown_s matches 1.. if score @s shift_cooldown_s matches ..0 run title @s actionbar [{"text":"❤: ","color":"red","bold":true},{"score":{"name":"@s","objective":"health"},"color":"white","bold":false},{"text":" / ","color":"white"},{"score":{"name":"@s","objective":"health_max"},"color":"white","bold":false},{"text":" | RC: ","color":"gray","bold":true},{"score":{"name":"@s","objective":"rc_cooldown_s"},"color":"white","bold":false},{"text":" second(s)","color":"white","bold":false},{"text":" | Q: ","color":"gray","bold":true},{"score":{"name":"@s","objective":"q_cooldown_s"},"color":"white","bold":false},{"text":" second(s)","color":"white","bold":false},{"text":" | Shift: ","color":"gray","bold":true},{"text":"Ready!","color":"gold","bold": false}]

$execute as @a[predicate=main:holding/rod,scores={player_id=$(id)}] if score @s rc_cooldown_s matches 1.. if score @s q_cooldown_s matches ..0 if score @s shift_cooldown_s matches ..0 run title @s actionbar [{"text":"❤: ","color":"red","bold":true},{"score":{"name":"@s","objective":"health"},"color":"white","bold":false},{"text":" / ","color":"white"},{"score":{"name":"@s","objective":"health_max"},"color":"white","bold":false},{"text":" | RC: ","color":"gray","bold":true},{"score":{"name":"@s","objective":"rc_cooldown_s"},"color":"white","bold": false},{"text":" second(s)","color":"white","bold": false},{"text":" | Q: ","color":"gray","bold":true},{"text":"Ready!","color":"gold","bold": false},{"text":" | Shift: ","color":"gray","bold":true},{"text":"Ready!","color":"gold","bold": false}]

$execute as @a[predicate=main:holding/rod,scores={player_id=$(id)}] if score @s rc_cooldown_s matches ..0 if score @s q_cooldown_s matches 1.. if score @s shift_cooldown_s matches ..0 run title @s actionbar [{"text":"❤: ","color":"red","bold":true},{"score":{"name":"@s","objective":"health"},"color":"white","bold":false},{"text":" / ","color":"white"},{"score":{"name":"@s","objective":"health_max"},"color":"white","bold":false},{"text":" | RC: ","color":"gray","bold":true},{"text":"Ready","color":"gold","bold": false},{"text":" | Q: ","color":"gray","bold":true},{"score":{"name":"@s","objective":"q_cooldown_s"},"color":"white","bold": false},{"text":" second(s)","color":"white","bold": false},{"text":" | Shift: ","color":"gray","bold":true},{"text":"Ready!","color":"gold","bold": false}]

$execute as @a[predicate=main:holding/rod,scores={player_id=$(id)}] if score @s rc_cooldown_s matches ..0 if score @s q_cooldown_s matches ..0 if score @s shift_cooldown_s matches ..0 run title @s actionbar [{"text":"❤: ","color":"red","bold":true},{"score":{"name":"@s","objective":"health"},"color":"white","bold":false},{"text":" / ","color":"white"},{"score":{"name":"@s","objective":"health_max"},"color":"white","bold":false},{"text":" | RC: ","color":"gray","bold":true},{"text":"Ready","color":"gold","bold": false},{"text":" | Q: ","color":"gray","bold":true},{"text":"Ready!","color":"gold","bold": false},{"text":" | Shift: ","color":"gray","bold":true},{"text":"Ready!","color":"gold","bold": false}]

$execute as @a[predicate=main:holding/rod,scores={player_id=$(id)}] if score @s rc_cooldown_s matches 1.. if score @s q_cooldown_s matches 1.. if score @s shift_cooldown_s matches 1.. run title @s actionbar [{"text":"❤: ","color":"red","bold":true},{"score":{"name":"@s","objective":"health"},"color":"white","bold":false},{"text":" / ","color":"white"},{"score":{"name":"@s","objective":"health_max"},"color":"white","bold":false},{"text":" | RC: ","color":"gray","bold":true},{"score":{"name":"@s","objective":"rc_cooldown_s"},"color":"white","bold":false},{"text":" second(s)","color":"white","bold":false},{"text":" | Q: ","color":"gray","bold":true},{"score":{"name":"@s","objective":"q_cooldown_s"},"color":"white","bold":false},{"text":" second(s)","color":"white","bold":false},{"text":" | Shift: ","color":"gray","bold":true},{"score":{"name":"@s","objective":"shift_cooldown_s"},"color":"white","bold":false},{"text":" second(s)","color":"white","bold":false}]

$execute as @a[predicate=main:holding/rod,scores={player_id=$(id)}] if score @s rc_cooldown_s matches 1.. if score @s q_cooldown_s matches ..0 if score @s shift_cooldown_s matches 1.. run title @s actionbar [{"text":"❤: ","color":"red","bold":true},{"score":{"name":"@s","objective":"health"},"color":"white","bold":false},{"text":" / ","color":"white"},{"score":{"name":"@s","objective":"health_max"},"color":"white","bold":false},{"text":" | RC: ","color":"gray","bold":true},{"score":{"name":"@s","objective":"rc_cooldown_s"},"color":"white","bold": false},{"text":" second(s)","color":"white","bold": false},{"text":" | Q: ","color":"gray","bold":true},{"text":"Ready!","color":"gold","bold": false},{"text":" | Shift: ","color":"gray","bold":true},{"score":{"name":"@s","objective":"shift_cooldown_s"},"color":"white","bold":false},{"text":" second(s)","color":"white","bold":false}]

$execute as @a[predicate=main:holding/rod,scores={player_id=$(id)}] if score @s rc_cooldown_s matches ..0 if score @s q_cooldown_s matches 1.. if score @s shift_cooldown_s matches 1.. run title @s actionbar [{"text":"❤: ","color":"red","bold":true},{"score":{"name":"@s","objective":"health"},"color":"white","bold":false},{"text":" / ","color":"white"},{"score":{"name":"@s","objective":"health_max"},"color":"white","bold":false},{"text":" | RC: ","color":"gray","bold":true},{"text":"Ready","color":"gold","bold": false},{"text":" | Q: ","color":"gray","bold":true},{"score":{"name":"@s","objective":"q_cooldown_s"},"color":"white","bold": false},{"text":" second(s)","color":"white","bold": false},{"text":" | Shift: ","color":"gray","bold":true},{"score":{"name":"@s","objective":"shift_cooldown_s"},"color":"white","bold":false},{"text":" second(s)","color":"white","bold":false}]

$execute as @a[predicate=main:holding/rod,scores={player_id=$(id)}] if score @s rc_cooldown_s matches ..0 if score @s q_cooldown_s matches ..0 if score @s shift_cooldown_s matches 1.. run title @s actionbar [{"text":"❤: ","color":"red","bold":true},{"score":{"name":"@s","objective":"health"},"color":"white","bold":false},{"text":" / ","color":"white"},{"score":{"name":"@s","objective":"health_max"},"color":"white","bold":false},{"text":" | RC: ","color":"gray","bold":true},{"text":"Ready","color":"gold","bold": false},{"text":" | Q: ","color":"gray","bold":true},{"text":"Ready!","color":"gold","bold": false},{"text":" | Shift: ","color":"gray","bold":true},{"score":{"name":"@s","objective":"shift_cooldown_s"},"color":"white","bold":false},{"text":" second(s)","color":"white","bold":false}]