Download Smells Fishy (Entity Rain Events) — Minecraft Mods — MetaMods

Smells Fishy (Entity Rain Events)

Active

Downloads

0

Last update

1 year ago
Client
Adventure

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.

Example of fish rain

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 spawn
  • spawnRate (integer): entity will spawn near each player every x ticks (on average) during active event
  • spawn (list of EntitySpawnOption): types of entities that will spawn during this event
  • when (EventConditions): conditions under which the event should start
  • chance (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 others
  • biomes (list of strings): biome locations for whitelist
  • biomesIsBlacklist (boolean): when true, the biomes filter is inverted

EventConditions

  • raining (boolean): can event start while raining
  • notRaining (boolean): can event start when NOT raining
  • day (boolean): can event start during daytime
  • night (boolean): can event start during nighttime
  • dimensions (list of strings): registry keys of dimensions where event may occur
  • biomes (list of strings): biome locations for whitelist
  • biomesIsBlacklist (boolean): when true, the biomes 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.

Project members
lukegrahamlandry

lukegrahamlandry

Created: 7 Aug 2022

ID: 42099