mojira.dev
MCPE-93256

Breathable component doesn't update correctly

When attempting to change the players lung capacity using the breathable component, it doesn't update at all.

Steps To Reproduce:

  1. Download the attached json and put it into a behavior pack

  2. Go into a world and enter water in survival

  3. You should have 15 seconds of air

  4. Change the time to night

  5. 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.

Not sure when this was fixed, but it now works properly in the 1.19.80 betas

Resolving as per previous comment. 

Gruntastic

(Unassigned)

Plausible

Multiple

add-on, breathing, component-group, components, player

1.18.10.27 Beta, 1.18.10.26 Beta, 1.18.0.24 Beta, 1.18.0.22 Beta, 1.18.0.20 Beta, ..., 1.18.30.33 Preview, 1.18.12 Hotfix, 1.19.20.24 Preview, 1.19.11 Hotfix, 1.19.63

1.19.83 Hotfix

Retrieved