
用途
Art's CLA 允许服务器管理员(或在单人世界中)使用战利品表让鸡掉落任何物品或处于物品状态的方块。这不会用于放置方块来建造随机结构(尽管那听起来很有趣)。
使用说明
设置
- 安装此数据包。
- 安装包含
chickenslayanything:laid_by_chicken 战利品表的附加数据包。(本包内有一个相当不起眼的默认配置。)
- 确保次要数据包在此数据包之后启用,以便其战利品表覆盖默认值。
添加战利品表
添加战利品表是通过另一个添加了 _chickenslayanything:laid_by_chicken_ 的数据包来实现的。文件位于:
data/
chickenslayanything/
loot_table/
laid_by_chicken.json
游戏内用法
- 放置漏斗(或多个漏斗)。
- 使用你选择的方法让鸡停留在漏斗上。
- 保持其他鸡至少距离 16 格远。
备注
代码基础
此数据包是基于 helmo2019 的 Chickens Lay Anything 修改而成。我的新增内容仅增加了一些防止滥用的保护机制。
减少滥用
由于鸡很容易繁殖,允许它们掉落贵重物品很容易被滥用。为了防止这种情况,鸡之间必须至少相距 16 格,否则它们只会下蛋。
让鸡掉落物品散落在各处通常不会造成问题,但如果战利品表生成大量物品,可能会因实体处理导致随机卡顿。该问题通过确保掉落物不留在表面上来解决——它们必须位于漏斗上。
版本号
请注意,版本号规则已更改两次。首先用于表示与 Minecraft 版本的兼容性,其次用于表示同一 Minecraft 版本内整合包的变更。当前版本号格式为 v<整合包版本>-<MC 版本>(例如 v1.1.0-1.21.3 表示该整合包的 1.1.0 版本,且基于 MC 1.21.3 编写)。
已知问题
- 在 v1.1.0-1.21.3 版本之前,站在两个漏斗边缘(可能还有其他类似情况)的鸡会产下鸡蛋而不是预期的物品。这是因为鸡蛋被产在了尚未进入冷却状态的漏斗上。逻辑设定为:如果鸡站在漏斗上,则禁用该漏斗,以便鸡蛋保留并转化为物品。修复方案是禁用 3x3 范围内的所有漏斗。
- 在“v1.21.3 - Distance Check Fixed”版本之前,由于测试原因,与另一只鸡的最小距离检查被意外禁用了。
支持与链接
Bug 报告与更新通知
如需报告 Bug 并获取有关新版本及我发布的其他整合包的最新动态,请加入我们的 Discord。
链接
在 Modrinth 上查看我的其他整合包。
通过 Patreon 或 Ko-Fi 支持持续的开发工作。
在 Twitch 频道 上观看开发过程(通常是故障排除)以及使用这些整合包的游戏实况。

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
- Install this datapack.
- Install additional datapack with a chickenslayanything:laid_by_chicken loot table. (There is a rather unimpressive default in this pack.)
- 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
- Place a hopper (or multiples).
- Get a chicken to stay on the hoppers using your method of choice.
- 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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧