nineMinecraft is a joke site.
nineMinecraft is in no way affiliated with Modrinth or 9minecraft. (And frankly, who wants to be affiliated with the latter?)

Art's CLA - Chickens Lay Anything

Purpose

Art's CLA lets server admins (or, the player in single-player worlds) use a loot table to have chickens lay any item or block in its item state. This won't place blocks to build random constructions (although, that does sound interesting).

Directions for Use

Setup

  1. Install this datapack.
  2. Install additional datapack with a chickenslayanything:laid_by_chicken loot table. (There is a rather unimpressive default in this pack.)
  3. Ensure that the secondary datapack is enabled after this pack so its loot table overrides the default.

Adding the Loot Table

Adding a loot table is done by adding a loot table, which can be added by another datapack that add chickenslayanything:laid_by_chicken. The file is located at:

data/
  chickenslayanything/
    loot_table/
      laid_by_chicken.json

In-Game Usage

  1. Place a hopper (or multiples).
  2. Get a chicken to stay on the hoppers using your method of choice.
  3. Keep other chickens at least 16 blocks away.

Notes

Code Basis

This datapack is a modification of helmo2019's Chickens Lay Anything. My additions only add some abuse protection.

Abuse Reduction

Since chickens are easy to breed, allowing them to lay valuable items could easily be abused. To prevent this, the chickens have to be at least 16 blocks apart, or they just lay eggs.

Allowing chickens to drop items all over isn't generally problematic, but loot tables that produce a large number of items could begin to cause random lag spikes from entity processing. This is addressed by ensuring the drops aren't left on the surface - they have to be on a hopper.

Version Numbering

Please note that the version numbering has changed twice. First to indicate compatibility with MC versions, then to indicate pack changes within the same MC version. Current version numbering is v<pack version>-<MC version> (e.g. v1.1.0-1.21.3 is version 1.1.0 of the pack and was written using MC 1.21.3).

Known Issues

  • Prior to v1.1.0-1.21.3, chickens standing on the edge of two hoppers (possibly other similar cases) will ay an egg rather than the expected items. This was caused by the egg being laid over the hopper which was not set to cooldown. The logic says if a chciken is standing on a hopper, disable it so the egg stays available for turning into items. The fix was to disable all hoppers in a 3 by 3 grid.
  • Prior to "v1.21.3 - Distance Check Fixed", the check for minimum distance to another chicken was accidentally disabled during testing.

Support and Links

Bug Reporting and Update Notifications

To report bugs and to keep up to date with new versions and additional packs from me, please join our Discord.

Links

Check out my other packs on Modrinth.

Help support ongoing development at Patreon or Ko-Fi.

Watch development (generally troubleshooting) and gameplay with the packs in use on my Twitch Channel.

External resources


Project members

Artecie

Member


Technical information

License
LGPL-3.0-only
Project ID