Entity Rain Events

Entity Rain Events

Data driven events where entities fall from the sky

by
338 Downloads
forgegame-mechanics
Rent Server with this Mod

About this Mod

Cause brief entity rain events where different creatures fall from the sky. The default data pack adds a fish rain event.

Data Packs

New entity rain events are defined by json files in the entityrain folder of data packs.
The format of these files is as follows,

  • radius (int): the number of blocks around each player that entities will spawn (the area will be a square)
  • height (int): how many blocks above the ground the entities will spawn
  • spawnRate (int): an entity will spawn near each player every x ticks (on average) while the event is active
  • spawn (list of EntitySpawnOption): the types of entities that will spawn during this event
  • when (EventConditions): what situations this event should start under
  • chance (int): how likely the event is to start. the chance for the event to start each check is (1/chance). the check is made for each possible event whenever it switches between day/night or raining/clear. the event will last until the next check.
  • replace (boolean): what happens if another data pack has already defined an event of this name. if true, the existing event will be deleted and this file will be used instead. if false, the contents of spawn and dimensions will be added to the existing event. the defaults to true.

You can see the default fish rain json data on github.

EntitySpawnOption

  • entity (string): the registry key of the entity type (ie. minecraft:zombie)
  • weight (int): how likely this entity is compared to the others. chance of each entry is (weight / totalWeight)
  • biomes (list of string): resource locations of biomes to whitelist (allow this spawn in). optional, when not defined the spawn will occur in all biomes. Tags are supported, prefix with #
  • biomesIsBlacklist (boolean): when true, the biomes filter is inverted, the spawn will NOT occur in the listed biomes. optional, defaults to false

the data for currently active rain events does not change when the /reload command is used, you must wait for it to start again to see the effects

EventConditions

  • raining (boolean): can the event start while its raining
  • notRaining (boolean): can the event start while its NOT raining
  • day (boolean): can the event start in the daytime
  • night (boolean): can the event start in the nighttime
  • dimensions (list of string): the registry keys of the dimensions the event may happen in (ie. minecraft:overworld)
  • biomes (list of string): resource locations of biomes to whitelist (allow rain to occur in). optional, when not defined the event will cause spawns in all biomes. Tags are supported, prefix with #
  • biomesIsBlacklist (boolean): when true, the biomes filter is inverted, the entities will NOT be spawned in the listed biomes. optional, defaults to false

Commands

To test your data packs, you can force change the active entity rain event in your current dimension with the following commands (requires OP permissions).

/entityrain start <key>
/entityrain stop

Credits

  • The 1.18.2 version was commissioned by Coda
  • The 1.16.5 version was commissioned by Adam

Available Versions

1.1.9release
MC 1.16.5forge
November 12, 2022
1.0.7release
MC 1.18, 1.18.1, 1.18.2forge
November 12, 2022

How to Install Entity Rain Events on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set forge Loader

In the panel under "Egg", select the forge loader and matching Minecraft version (1.18.2).

3

Install Mod

Open the mod browser in the dashboard and search for "Entity Rain Events". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

forge

Minecraft Versions

1.18.2, 1.18.1, 1.18 (+1 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Entity Rain Events server crashes on startup – what to do?

Most common cause: wrong forge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.18.2). You can switch loaders with one click in the panel.

Is Entity Rain Events compatible with forge?

Entity Rain Events officially supports forge for Minecraft 1.18.2, 1.18.1, 1.18. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Entity Rain Events – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Entity Rain Events consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Entity Rain Events with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.18.21.18.11.181.16.5