1. Wiki
  2. /Blocks
  3. /minecraft:precipitation_interactions

minecraft:precipitation_interactions

Don't want to write this by hand? GodCraft sets minecraft:precipitation_interactions for you with a switch.Get GodCraft

Overview

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

FieldTypeDefaultDescription
precipitation_behaviorPrecipitation Behaviornone"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": {}
  }
}

Blocks: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more