Skip to content

Repository files navigation

Golden Chicken

A Fabric mod for Minecraft 1.20.1 that adds a faster, upgradeable egg-laying chicken variant, built to stay cheap even in large numbers.

What it does

Craft Golden Seeds and feed them to a chicken to turn it into a Golden Chicken. Feed a Golden Chicken more Golden Seeds to make it lay even faster.

Item Golden Seeds
Recipe 8x Gold Nugget around 1x Wheat Seeds (same pattern as a Golden Carrot)
Yield 1 Golden Seeds

Turning a chicken golden

Right-click any regular chicken with Golden Seeds. The chicken is replaced with a Golden Chicken at the same position, keeping its age (baby/adult) and custom name if it had one. This consumes 1 Golden Seeds (ignored in Creative) and plays a short sound/particle effect to confirm it worked.

Golden Chicken behavior

  • No pathfinding. Golden Chickens never wander, flee, follow, or breed - they only turn their head to look around and to look at nearby players. This is enforced twice over: they're never given a movement AI goal in the first place, and their pathfinding navigator itself refuses to plan or follow a path even if something else tries to move them. A pen of hundreds of them costs essentially nothing extra on the server's AI tick, unlike a pen of the same number of vanilla chickens.
  • Faster eggs. A freshly-converted Golden Chicken lays an egg every 3,000 ticks (2.5 minutes) - half of a vanilla chicken's fastest possible interval (6,000 ticks / 5 minutes).
  • Upgradeable. Feed a Golden Chicken another Golden Seeds and its egg interval halves again (3,000 -> 1,500 -> 750 -> ... ticks), down to a hard floor of 20 ticks (1 second). Once at the floor, feeding it more Golden Seeds does nothing and doesn't consume the item.
  • Immediate effect. Both converting a chicken and upgrading an existing Golden Chicken take effect on the current countdown right away (it's clamped down to the new, shorter interval) rather than only applying on the next egg cycle.
  • Compatible with "look at entity" mods. Golden Chickens store their egg timer in the exact same field vanilla Chicken entities use internally, so mods like Jade that already show a regular chicken's time-to-next-egg will show the correct, upgraded time for Golden Chickens too, with no extra integration needed.

Requirements

Minecraft 1.20.1
Mod loader Fabric Loader 0.19.3+
Fabric API 0.92.11+1.20.1 or newer
Java 17+

Installation

  1. Install Fabric Loader for Minecraft 1.20.1.
  2. Download Fabric API for 1.20.1 and place it in your mods folder.
  3. Place this mod's jar in the same mods folder.

Safe to add to an existing world/modpack - it doesn't replace or remove vanilla chickens, it only adds a new entity type and item alongside them.

Building from source

./gradlew build

The built jar is written to build/libs/.

Known limitations

  • The mod icon (src/main/resources/assets/goldenchicken/icon.png) is still the default Fabric template icon and needs real art before a public release.

Project layout

src/main/java/abcwarrior/goldenchicken/
  GoldenChicken.java          Mod entrypoint; wires up registration
  entity/GoldenChickenEntity  The chicken subclass: AI, egg timer, NBT
  entity/ModEntities          Entity type registration
  item/GoldenSeedsItem        Feed-to-convert / feed-to-upgrade behavior
  item/ModItems               Item registration
  mixin/ChickenEggTimeAccessor  Exposes vanilla Chicken's private egg timer

src/client/java/abcwarrior/goldenchicken/client/
  GoldenChickenClient          Client entrypoint; registers the renderer
  render/GoldenChickenRenderer Renders Golden Chickens with the vanilla model

src/main/resources/
  data/goldenchicken/recipe/         Golden Seeds crafting recipe
  data/goldenchicken/advancement/    Recipe unlock advancement
  assets/goldenchicken/              Lang, item model, textures

License

This project is licensed under CC0 1.0 - see LICENSE.

About

A mod for Minecraft version 1.20.1 where you can craft 'Golden Seed's with 8 gold nuggets and a wheat seed. These seeds halve the time it takes for a chicken to lay and egg and disable their pathfinding. This allows egg farms to exist without lagging out your worlds and servers. Enjoy!

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages