HomeJavaDatapacksHatchable
Hatchable
DatapacksJava

Hatchable

by Smidul · on Modrinth

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.8–26.2 · Data pack⬇ Download for 1.21.8–26.2 · Fabric⬇ Download for 1.21.8–26.2 · Forge⬇ Download for 1.21.8–26.2 · NeoForge⬇ Download for 1.21.8–26.2 · Quilt
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Hatchable — screenshot 1

Hatchable

What it does

Hatchable automatically hatches dropped eggs shortly before they would despawn. By default, eggs hatch into baby chickens when resting on blocks such as Hay, Mud, Packed Mud or Mud Bricks.

Its hatch mapping system can also make any configured item hatch into any configured entity.

Default Behavior

By default:

When the chance fails or the density limit is reached, that item disappears instead of hatching. Items in a stack are handled one at a time.

Customization

Use /function hatchable:_config to configure:

Each global hatching value has a Force option. When enabled, mappings cannot override that value.

Settings are divided into General, Feedback and Debug screens. Each setting can be reset individually, or the entire configuration can be restored to its defaults.

Hatch Mappings

Hatch Mappings are ordered rules that decide where, when and what hatches.

A rule can use:

Every selector present in a rule must match. Matching rules compose from top to bottom: later scalar values take priority, while entity_data compounds merge.

A successful hatch needs a final resolved entity.

Inherited Item Data

Hatchable can copy compatible data from the item into the entity it creates.

A matching minecraft:entity_data component can provide base summon data. Entity-specific components can also carry variants, sound variants, collars, colors, sizes and patterns into the final entity.

Composed mapping data is applied afterward, so entity_data can override inherited values.

Tags

Edit #hatchable:hatchers to change the default blocks on which items can hatch.

Edit #hatchable:density_entities to change which nearby entities count toward the density limit.

The #hatchable:eggs, #hatchable:chicken/eggs and chicken-variant tags organize the default mappings. Hatch eligibility itself is controlled by Hatch Mappings, so custom items do not need to be added to #hatchable:eggs when a mapping already matches them.

Uninstallation

Use /function hatchable:uninstall to remove its persistent data if you ever need to remove the datapack.

Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more