when i try to make this command have a macro in it it stops working
execute as @a unless score @s maxHealth = @s maxHealth run scoreboard players set @a maxHealth 80 execute as @a store result storage my:data max int 1 run scoreboard players get @s maxHealth $execute as @a run attribute @s minecraft:max_health base set $(max)
the last line of code is what isnt working, from what i can find online it should