跳到正文

Art’s CLA

作者:Artecie

A datapack that allows chickens to lay anything with some restrictions to reduce abuse and server lag. Based on helmo2019's Chickens Lay Anything.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

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- (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.

常见问题

Art’s CLA 支持哪些 Minecraft 版本?

Art’s CLA 支持 Minecraft Java 版 1.20–26.3,共 12 个版本。下载时注意选择和你游戏版本一致的文件。

Art’s CLA 怎么安装?

新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。

评论

登录后评论和评分

Artecie 的其他作品

查看全部 →