
Art's CLA (NLAM)
A datapack that allows chickens to lay anything with some restrictions to reduce abuse and server lag. Based on helmo2019's Chickens Lay Anything.
- Загрузки
- 107
- Подписчики
- 3
- Обновлён
- 9 ноября 2024 г.
- Лицензия
- LGPL-3.0-only
Опубликован 22 августа 2024 г.
No longer actively maintained.
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- (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.
Ченджлог
1.1.0Релиз1.21.1, 1.21.2, 1.21.3 · 9 ноября 2024 г.
Fixed the hopper check. Fixed the anomalous case of a chicken standing on the edge of two hoppers laying an egg. In testing with a field of hoppers, the chickens seem to prefer standing on the edge of the block. They now lay the proper items in this case.
1.21.3Релиз1.21.1, 1.21.2, 1.21.3 · 9 ноября 2024 г.
Restored distance check which was disabled for troubleshooting.
1.21.3Релиз1.21.1, 1.21.2, 1.21.3 · 9 ноября 2024 г.
Confirmed compatibility with MC Java 1.21.3. Updated pack supported_formats to be 48 through 57 (inclusive).
1.0.0Релиз1.20.6, 1.21, 1.21.1 · 22 августа 2024 г.
Initial release. Features:
- Chickens can be configured to lay anything using loot tables.
- data/chickenslayanything/loot_table/laid_by_chicken.json can be edited in this pack, or
- data/chickenslayanything/loot_table/laid_by_chicken.json can be created in a separate pack (recommended to prevent losing the table in the event of an upgrade)
- Chickens must be standing on a hopper, otherwise they just lay an egg.
- Chickens must be at least 16 blocks apart, otherwise they just lay an egg.
Комментарии
Загружаем…