Unusual Precipitation
Imagine unusual precipitation where not only water droplets fall from the sky but also various items, creatures, and arrows! This datapack adds a unique weather system to Minecraft that periodically showers players with random entities. The standard weather conditions remain unchanged.
Two Types of Precipitation
The system includes two main precipitation modes. Regular rain brings various items, neutral mobs, and mostly safe projectiles from the sky. However, during thunderstorm rain, hostile creatures and dangerous projectiles such as fireballs appear.
Parameter Configuration
To configure the datapack, execute the command /scoreboard objectives setdisplay sidebar unusual-precipitation-config. Each parameter can be modified using the command /scoreboard players set <parameter> unusual-precipitation-config <value>:
- rain_interval - interval in seconds between the end of one weather cycle and the start of the next
- rain_duration - duration of one weather cycle in seconds
- thundering_chance - percentage chance of thunderstorm rain instead of regular rain (from 0 to 100)
- include_items - whether to include items in regular rain (0 - no, 1 - yes)
- include_mobs - whether to include mobs in the weather cycle (0 - no, 1 - yes)
- include_projectiles - whether to include projectiles in the weather cycle (0 - no, 1 - yes)
- chaos_mode - chaos mode: constantly changes the type of falling entities during one cycle (0 - disabled, 1 - enabled)
Special Weather Conditions
You can set a specific entity for continuous falling from the sky using two functions:
/function unusual-precipitation:start-custom-weather with {entity:'<id>'}- for mobs and projectiles/function unusual-precipitation:start-custom-weather-nbt with {entity:'<id>', nbt:'<nbt>'}- for items, mobs, and projectiles with custom NBT data
For items, ensure that the NBT data follows the item format in Minecraft. The <nbt> data should not include outer curly braces {}, and single quotes inside must be escaped with a backslash.
Executing these functions temporarily stops the datapack's standard weather cycle. To resume it, execute /function unusual-precipitation:stop-custom-weather.
Additional Information
- To remove the datapack, execute
/function unusual-precipitation:uninstall, then delete or disable it - If the weather cycle stops working (for example, after disabling and re-enabling the datapack), try executing
/function unusual-precipitation:before-start-weatherto restart it - Changes to the
rain_durationandrain_intervalparameters may take effect after one weather cycle - Entities spawn at height Y=350 and are randomly distributed within a 50-block radius around each player in the overworld. The Nether and End dimensions are not affected by the weather cycle