When attempting to change the players lung capacity using the breathable component, it doesn't update at all.
Steps To Reproduce:
Download the attached json and put it into a behavior pack
Go into a world and enter water in survival
You should have 15 seconds of air
Change the time to night
You should have 30 seconds of air, but you'll still have 15
Expected Results:
Breathable component updates for players correctly
Actual Behavior:
The Breathable component doesn't update properly
Attachments
Comments 5
Given player JSON makes Player unable to sink, as this JSON file is wrongly constructed; "breathable" component is wrongly placed in "component groups" when it should be present in "components" section.
That is the bug, the breathable component will never update despite the component being re-added in a component group.
In the supplied JSON, during the day the player will be given the day component group, containing a breathable component with 15 seconds of air supply, at night the player will be given the night component group, containing a breathable component with 30 seconds of air supply.
Taking the breathable component out of the components section shouldn't make the player unable to sink as the breathable component is being re-added with a component group.
Updated bug report