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:
- 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
- Fixed
Gruntastic- 2
- 2
- Plausible
- Multiple
- add-on breathing component-group components player
1.18.10.27 Beta - 1.19.63
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.17.40.23 Beta 1.17.40.20 Beta 1.17.30.24 Beta 1.17.30.23 Beta 1.17.30.22 Beta 1.17.30.21 Beta 1.17.30.20 Beta 1.17.11 Hotfix 1.17.20.22 Beta 1.17.20.21 Beta 1.17.10 1.17.10.23 Beta 1.17.1 Hotfix 1.17.10.20 Beta 1.17.0.58 Beta 1.17.0.56 Beta 1.17.0.54 Beta 1.17.0.52 Beta 1.17.0.50 Beta 1.16.230.56 Beta 1.16.230.54 Beta 1.16.220 1.16.230.50 Beta 1.16.220.52 Beta 1.16.220.51 Beta 1.16.220.50 Beta 1.16.210.61 Beta 1.16.210.60 Beta 1.16.210.59 Beta 1.16.210.58 Beta 1.16.210.57 Beta 1.16.210.56 Beta 1.16.210.55 Beta 1.16.1 1.16.201 Hotfix 1.16.210 1.16.221 Hotfix 1.17.0 1.18.2 Hotfix 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
Created Issue:
Breathable component doesn't update correctly
When using the breathable component in component groups for the player, the player can breath infinitely when underwater no matter what. Though changing generate_bubbles does work.
When
using the breathable component in component groups for the player, the player can breath infinitely when underwater no matter what. Though changing generate_bubbles does work.
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
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
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
Updated bug report
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.