Compatibility
Minecraft: Java Edition
Platforms
Supported environments
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Links
Creators
Details
Chickenfix
If raw chicken keeps appearing in your cooked chicken farm, this will probably fix it. That's why I made it in the first place!
A really simple brute-force fix to chickens suffocating to death when they grow up in a confined space, such as in fox-based chicken farms. This datapack "fixes" the problem by teleporting a chicken that has just grown up to the horizontal center of the block it is standing on, but only if it is within five blocks of any entity named chickenfix
(no upper case, no spaces).
Why isn't the fix applied globally?
The primary reason is that normal chicken farms are very unlikely to run into this as an issue. If you know you need this fix, then you know you need it - for everyone else, it isn't a problem.
As a side effect of applying this solution globally, if a chicken was standing in the same block as a fence when it grew up, it would be teleported to the center of the block and could escape. This would cause issues for chicken pens.
Performance
The Age
NBT data of chickens is only accessed once every 60 seconds, and not for all chickens in the world - only those within five blocks of entities named chickenfix. This is extremely unlikely to cause any performance problems for real-world chicken farms.