minecraft:precipitation_interactions for you with a switch.Get GodCraftOverview
minecraft:precipitation_interactions is a block component: it goes in the components object of a custom block. Decides how the block deals with rain and snow falling on it.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
precipitation_behavior | Precipitation Behavior | none | "obstruct_rain" stops rain, "obstruct_rain_accumulate_snow" also lets snow pile up on top, "snowlogging" lets snow fill the block and "none" lets weather pass through. |
Example
Inside the components object of BP/blocks/<name>.json (values are the defaults or placeholders):
BP/blocks/<name>.json
{
"minecraft:precipitation_interactions": {
"precipitation_behavior": {}
}
}