The wither's health updates when I damage the pig, I can tell bc when I kill the pig the with dies, but the boss bar doesn't update
Run Once:
/execute unless entity @e[type=pig,name="Ultimate Pig"] run summon pig ~ ~1 ~ {CustomName:"Ultimate Pig"}
/execute unless entity @e[type=wither,name="Ultimate Pig"] run summon minecraft:wither ~ ~1 ~ {NoAI:1,CustomName:"Ultimate Pig"}
Run Repeating:
/execute store result entity @e[type=wither,limit=1,name="Ultimate Pig"] Health int 1.0 run data get entity @e[type=pig,limit=1,name="Ultimate Pig"] Health
/execute store result entity @e[type=wither,limit=1,name="Ultimate Pig"] Attributes[0].Base double 1.0 run data get entity @e[type=pig,limit=1,name="Ultimate Pig"] Attributes[0].Base
Related issues
Comments

Duplicates MC-84243
Please do not mark unreleased versions as affected.
You don't have access to them yet.