# Set variables #
scoreboard players set #Multiply nl.FullHealth 100
scoreboard players operation @s nl.HPCheck = @s nl.Health 
scoreboard players operation @s nl.HPCheck *= #Multiply nl.FullHealth
scoreboard players operation @s nl.HPCheck /= @s nl.FullHealth 

team join nl_HP0 @s[scores={nl.HPCheck=0..9}]
team join nl_HP10 @s[scores={nl.HPCheck=10..19}]
team join nl_HP20 @s[scores={nl.HPCheck=20..29}]
team join nl_HP30 @s[scores={nl.HPCheck=30..39}]
team join nl_HP40 @s[scores={nl.HPCheck=40..49}]
team join nl_HP50 @s[scores={nl.HPCheck=50..59}]
team join nl_HP60 @s[scores={nl.HPCheck=60..69}]
team join nl_HP70 @s[scores={nl.HPCheck=70..79}]
team join nl_HP80 @s[scores={nl.HPCheck=80..89}]
team join nl_HP90 @s[scores={nl.HPCheck=90..99}]
team join nl_HP100 @s[scores={nl.HPCheck=100..}]

execute as @s store result score @s nl.Health run data get entity @s Health


