execute as @a[nbt={SelectedItem:{components:{"minecraft:custom_data":{weapon:"mp5"}}}},scores={magMP5=20..30,9mm=1..}] at @s run title @s actionbar [{"text":""},{"color":"dark_green","score":{"objective":"magMP5","name":"@s"}},{"text":"/","color":"gray"},{"text":"30","color":"white"},{"text":" "},{"text":"///","color":"dark_gray"},{"text":" "},{"color":"green","score":{"objective":"9mm","name":"@s"}}]
execute as @a[nbt={SelectedItem:{components:{"minecraft:custom_data":{weapon:"mp5"}}}},scores={magMP5=10..19,9mm=1..}] at @s run title @s actionbar [{"text":""},{"color":"gold","score":{"objective":"magMP5","name":"@s"}},{"text":"/","color":"gray"},{"text":"30","color":"white"},{"text":" "},{"text":"///","color":"dark_gray"},{"text":" "},{"color":"green","score":{"objective":"9mm","name":"@s"}}]
execute as @a[nbt={SelectedItem:{components:{"minecraft:custom_data":{weapon:"mp5"}}}},scores={magMP5=0..9,9mm=1..}] at @s run title @s actionbar [{"text":""},{"color":"red","score":{"objective":"magMP5","name":"@s"}},{"text":"/","color":"gray"},{"text":"30","color":"white"},{"text":" "},{"text":"///","color":"dark_gray"},{"text":" "},{"color":"green","score":{"objective":"9mm","name":"@s"}}]
execute as @a[nbt={SelectedItem:{components:{"minecraft:custom_data":{weapon:"mp5"}}}},scores={magMP5=20..30,9mm=..0}] at @s run title @s actionbar [{"text":""},{"color":"dark_green","score":{"objective":"magMP5","name":"@s"}},{"text":"/","color":"gray"},{"text":"30","color":"white"},{"text":" "},{"text":"///","color":"dark_gray"},{"text":" "},{"color":"dark_red","score":{"objective":"9mm","name":"@s"}}]
execute as @a[nbt={SelectedItem:{components:{"minecraft:custom_data":{weapon:"mp5"}}}},scores={magMP5=10..19,9mm=..0}] at @s run title @s actionbar [{"text":""},{"color":"gold","score":{"objective":"magMP5","name":"@s"}},{"text":"/","color":"gray"},{"text":"30","color":"white"},{"text":" "},{"text":"///","color":"dark_gray"},{"text":" "},{"color":"dark_red","score":{"objective":"9mm","name":"@s"}}]
execute as @a[nbt={SelectedItem:{components:{"minecraft:custom_data":{weapon:"mp5"}}}},scores={magMP5=0..9,9mm=..0}] at @s run title @s actionbar [{"text":""},{"color":"red","score":{"objective":"magMP5","name":"@s"}},{"text":"/","color":"gray"},{"text":"30","color":"white"},{"text":" "},{"text":"///","color":"dark_gray"},{"text":" "},{"color":"dark_red","score":{"objective":"9mm","name":"@s"}}]