Skip to content

Add chicken entities with harvestable meat as food source#203

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/add-chickens-as-food-source
Draft

Add chicken entities with harvestable meat as food source#203
Copilot wants to merge 4 commits intomainfrom
copilot/add-chickens-as-food-source

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 15, 2026

Implements wandering chicken NPCs that drop meat when harvested, providing an additional food source beyond apples.

Implementation

Entity System

  • Added CHICKEN to EntityType enum and CHICKEN_MEAT to ItemType enum
  • Created Chicken entity class with autonomous wandering behavior (retargets every 3s, speed 5-10 units)
  • Chickens render as 0.5x scale capsules in beige, drop 1-2 meat on harvest

World Generation

  • 20% chunk spawn probability, 1-3 chickens per spawn
  • Lag prevention cap at 50 total chickens

Game Loop Integration

  • Chickens update via wander() in WorldScreen.FixedUpdate
  • Uses cached Rigidbody reference and Time.fixedDeltaTime for consistent physics

Economy

  • Chicken meat base cost: 50 coins (between apples at 40 and wood at 60)
  • Fully integrated with existing inventory and market systems
  • UI updated to display chicken meat count
// Chicken harvesting added to InteractCommand
else if (chicken != null && Vector3.Distance(player.getPosition(), chicken.getPosition()) < 5) {
    chicken.markForDeletion();
    player.getInventory().transferContentsOfInventory(chicken.getInventory());
    player.getStatus().update("Harvested chicken meat.");
}
Original prompt

This section details on the original issue you should resolve

<issue_title>Chickens</issue_title>
<issue_description>We should have chickens wandering around that can be utilized as a source of food.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits February 15, 2026 08:43
Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
Copilot AI changed the title [WIP] Add chickens to wander and serve as food source Add chicken entities with harvestable meat as food source Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chickens

2 participants