The minecraft:precipitation_interactions component does not properly vary across permutation definitions of a custom block.
Demonstration
The attached videos demonstrate this issue. Both videos showcase a single custom block type. The default permutation (with the obsidian texture) is defined to allow precipitation to pass through it. Its behavior is correct. The alternative permutation (with the glowstone texture) is defined to block precipitation. Its behavior is incorrect.
Reproduction
The example block shown in the videos is as follows:
{
"format_version": "1.26.20",
"minecraft:block": {
"description": {
"identifier": "bug_precipitation:custom_block",
"states": {
"bug_precipitation:alternative": [false, true]
}
},
"components": {
"minecraft:geometry": "minecraft:geometry.full_block",
"minecraft:material_instances": {
"*": {"texture": "obsidian"}
},
"minecraft:precipitation_interactions": {"precipitation_behavior": "none"}
},
"permutations": [
{
"condition": "q.block_state('bug_precipitation:alternative')",
"components": {
"minecraft:material_instances": {
"*": {"texture": "glowstone"}
},
"minecraft:precipitation_interactions": {"precipitation_behavior": "obstruct_rain"}
}
}
]
}
}The demo videos and code are taken from the behavior pack in the attached world for convenience. This world can be opened (in Minecraft Preview) for inspection or unzipped to access the code associated with such. If testing these separately, ensure rain is turned on, and tests are preformed in the Overworld.
Linked issues
is duplicated by 1
Attachments
Comments 5
Notice: the attached demo world crashes on open in Preview 26.30.21 due to MCPE-238456. The dimension definitions can be stripped from the world’s behavior pack to properly test out this issue.
This issue has been reviewed by our team.
Please add new, relevant information if it helps us understand or reproduce the issue. To show that you’re affected, use the vote feature rather than commenting.
If a fix is implemented, it will be listed in our official changelogs.
For major outages or urgent assistance, visit the Minecraft Help Center.
Hi!
Thank you for your report!
Are there any other components that exhibit similar behavior?
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki
It’s hard to say, since I don’t know the internals. Here are some related reports pertaining to block permutations. The first is the strongest conceptual fit.
Thank you for helping us improve Minecraft! We saved your files: