ModMPL-2.0
raing_row
This mod automatically generates grass in surrounding chunks after rain.
82
Downloads
1
Followers
5 months ago
Updated
📦
1
Versions
📖About raing_row
This mod automatically generates grass in surrounding chunks after rain.
Configuration System (Config.java)
- Mod toggle control
- Generation interval configuration (in 10-tick units)
- Horizontal search range configuration (in 16-block units)
- Methods to retrieve actual values
Environment Detection (EnvironmentChecker.java)
- Dimension restriction: Only works in the Overworld
- Height restriction: Y coordinate ≥ 10
- Biome filtering:
- Excludes cold biomes (snowy, frozen)
- Excludes arid biomes (desert, badlands)
- Excludes aquatic biomes (ocean, river, swamp)
- Excludes other unsuitable biomes (mushroom island, stone, caves, etc.)
Post-Rain Grass Block Mechanism (RainGrassBlock + RainGrassBlockEntity)
- Generation timing: Generates around players during rain
- Generation position: 3 blocks above grass blocks, requiring blocks 1-3 above to be air
- Block characteristics:
- Transparent with no collision box
- Does not block light
- Is a solid block (with BlockEntity)
- Conversion logic:
- Detects nearby players after rain stops
- Applies bonemeal effect to grass blocks 3 blocks below
- Automatically removes itself
Event Handling (RainGrassBlockEventHandler)
- Listens to player tick events
- Randomly generates post-rain grass blocks within configured range during rain
- Generates up to 2 blocks per tick, checking 4 random points