
Entity Rain Events
About the Mod
The Entity Rain Events mod adds a system of temporary events where various creatures and entities start falling from the sky. The base version already includes a fish rain event.
Creating Custom Events
You can create your own types of "entity rain" using JSON files in the entityrain
folder of data packs.
Event Configuration
Each JSON file should contain the following parameters:
radius
(integer): the area in blocks around each player where entities will spawn (square area)
height
(integer): the distance in blocks from the ground where entities will appear
spawnRate
(integer): a new entity will spawn near each player every x ticks
spawn
(list of EntitySpawnOption): types of entities that will appear during the event
when
(EventConditions): conditions under which the event can begin
chance
(integer): probability of the event starting, calculated as (1/chance) per check
replace
(boolean): behavior when event names conflict with other data packs
Entity Spawn Settings
Entity spawn options (EntitySpawnOption) contain these parameters:
entity
(string): entity type identifier (e.g., minecraft:zombie
)
weight
(integer): probability of this entity appearing compared to others
biomes
(list of strings): list of biomes where spawning is allowed (optional)
biomesIsBlacklist
(boolean): if true, biomes in the list are forbidden for spawning
Event Trigger Conditions
EventConditions allow configuration of the following conditions:
raining
(boolean): whether the event can start during rain
notRaining
(boolean): whether the event can start during clear weather
day
(boolean): whether the event can start during daytime
night
(boolean): whether the event can start during nighttime
dimensions
(list of strings): dimensions where the event can occur
biomes
(list of strings): biomes where the event is permitted
⚠️ Note: data about active rain events does not update when using the /reload command. Wait for the event to restart to see changes.
Testing and Management
For testing created events, the following commands are available:
/entityrain start <key>
/entityrain stop
Additional Information
The modification is fully customizable through data packs, allowing creation of unique events for any entity type.
Configuration files use simple JSON format, making setup accessible even for beginner mod creators.
The weighted probability system enables creation of complex entity combinations with different spawn chances, while biome and dimension filtering provides precise control over spawn conditions.