
Smells Fishy (Entity Rain Events)
Adds unique events to Minecraft where various creatures fall from the sky. The mod includes a fish rain event by default, but you can create your own scenarios with any mobs.
How It Works
Creatures spawned during these events do not drop loot upon death unless killed by a player. When the event ends, all remaining summoned creatures despawn. Each event has a random chance of starting based on the settings in the datapack.
Event Configuration
New entity rain events are defined by JSON files in the entityrain
folder of datapacks. Configuration format:
radius
(integer): radius in blocks around each player where entities will spawn (area will be square)height
(integer): height above ground where entities will spawnspawnRate
(integer): entity will spawn near each player every x ticks (on average) during active eventspawn
(list of EntitySpawnOption): types of entities that will spawn during this eventwhen
(EventConditions): conditions under which the event should startchance
(integer): probability of event starting. Chance for event to start at each check is (1/chance)replace
(boolean): what happens if another datapack has already defined an event with this name
EntitySpawnOption
entity
(string): registry key of entity type (e.g.,minecraft:zombie
)weight
(integer): probability of this entity appearing compared to othersbiomes
(list of strings): biome locations for whitelistbiomesIsBlacklist
(boolean): when true, thebiomes
filter is inverted
EventConditions
raining
(boolean): can event start while rainingnotRaining
(boolean): can event start when NOT rainingday
(boolean): can event start during daytimenight
(boolean): can event start during nighttimedimensions
(list of strings): registry keys of dimensions where event may occurbiomes
(list of strings): biome locations for whitelistbiomesIsBlacklist
(boolean): when true, thebiomes
filter is inverted
Commands
To test datapacks, you can forcibly change the active entity rain event in your current dimension using the following commands (requires OP permissions):
/entityrain start ResourceLocation
/entityrain stop
Important: data for currently active rain events does not change when using the /reload command, you must wait for the event to start again to see the effects.