Hatchable 图标

Hatchable

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.1.0+mod
本资源为搬运资源,原资源地址: https://modrinth.com/mod/hatchable
资源信息

Minecraft 版本: 1.21 1.21.1 24w33a 24w34a 24w35a 24w36a 24w37a 24w38a 24w39a 24w40a 1.21.2-pre1 1.21.2-pre2 1.21.2 1.21.3 24w44a 24w45a 24w46a 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11 26.1 26.1.1 26.1.2 26.2 26.3-snapshot-1 26.3-snapshot-2 26.3-snapshot-3 26.3-snapshot-4 26.3-snapshot-5 26.3-snapshot-6

平台: fabric forge neoforge quilt

标签: game-mechanics mobs utility

资源介绍

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:

  • Items are checked after 5900 ticks.
  • Each egg has an 80% chance to hatch.
  • Spawned chickens are babies.
  • Hatching is blocked when 50 entities from #hatchable:density_entities are already within 20 blocks.
  • All eggs hatch their respective chicken variant.

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:

  • Hatch chance.
  • Minimum item age.
  • Spawned entity age.
  • Density limit and range.
  • Ordered hatch mappings.
  • Hatch particles and sound.
  • Debug categories and message subscriptions.

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:

  • items for item IDs or item tags.
  • hatchers for block IDs or block tags.
  • predicate for an additional referenced predicate.
  • entity for the entity type to spawn.
  • entity_data for data merged into the spawned entity.
  • chance, minimum_item_age, entity_age, density_limit and density_range for rule-specific behavior.

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.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Traveler's Backpack Overhaul

价格:0 墨喵币
下载量:0

查看详情
Limited Life

价格:0 墨喵币
下载量:0

查看详情
Oak Shaders

价格:0 墨喵币
下载量:0

查看详情
Totem of Boetacular (BoeTotem)

价格:0 墨喵币
下载量:0

查看详情