Unusual Precipitation
It's raining cats, diamonds, arrows, wardens, eggs... It's raining anything and everything!
This datapack adds a highly configurable custom weather cycle to the game that rains random mobs, items and projectiles from the sky. The vanilla weather system is unaffected by this datapack.
There is the raining weather cycle, which rains items, neutral mobs and mostly non-dangerous projectiles. Then there is the thundering weather cycle, which rains hostile mobs and dangerous projectiles (e.g. fireballs).
Configuration
To configure this datapack, run the command /scoreboard objectives setdisplay sidebar unusual-precipitation-config
. Each scoreboard entry can be edited using the command /scoreboard players set <entry> unusual-precipitation-config <value>
. The meaning of each entry is explained below:
rain_interval
- The number of seconds between the end of the previous weather cycle and the start of a new one.rain_duration
- The number of seconds a single weather cycle lasts.thundering_chance
- The percentage chance that a thundering weather cycle occurs instead of a raining weather cycle. Values range from 0 to 100.include_items
- Whether to include items in the raining weather cycle. Value of 0 means false while 1 means true.include_mobs
- Whether to include mobs in the weather cycle. Value of 0 means false while 1 means true.include_projectiles
- Whether to include projectiles in the weather cycle. Value of 0 means false while 1 means true.chaos_mode
- When enabled, this will constantly roll a different entity to rain within the same weather cycle. Value of 0 means disabled while 1 means enabled.
Setting Custom Weather
You can also set a specific entity to be rained from the sky non-stop using these two functions:
/function unusual-precipitation:start-custom-weather with {entity:'<id>'}
/function unusual-precipitation:start-custom-weather-nbt with {entity:'<id>', nbt:'<nbt>'}
The first function is used to rain mobs/projectiles by replacing <id>
with the entity's id (e.g. shulker_bullet, cave_spider). The second function is used to rain items/mobs/projectiles with custom NBT data. For items, ensure the NBT data follows this. The <nbt>
data should not include the outer {}
and any single quotes (`) within the <nbt>
itself must be escaped using a backslash (\`).
Running these functions will temporarily stop the datapack's built-in weather cycle. To restart the datapack's weather cycle, simply run /function unusual-precipitation:stop-custom-weather
.
Other Things to Note...
- To remove the datapack, run
/function unusual-precipitation:uninstall
and then delete/disable the datapack. - If the datapack's weather cycle ever gets stuck or somehow stops working, which can happen when disabling then enabling the datapack, try run
/function unusual-precipitation:before-start-weather
to restart it. - Any changes made to
rain_duration
andrain_interval
may take an extra weather cycle to take effect. - The entities that rain from the sky are summoned at Y=350 and randomly distributed in a 50-block radius around each online player in the overworld. The nether and end dimensions are not included in the weather cycle.
Credit to MC: Ultimate List as it helped greatly in creating this datapack.
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+