Skip to content

feat: fry eggs using chicken genetics for quality - #38

Merged
Drefvelin merged 1 commit into
mainfrom
feat/fried-egg
Sep 24, 2026
Merged

Drefvelin merged 1 commit into
mainfrom
feat/fried-egg

Conversation

@Drefvelin

@Drefvelin Drefvelin commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Eggs are a raw cooking ingredient. A whole egg keeps the vanilla egg look, switches to a rotten egg texture when it spoils, and cannot be eaten until it is fried.
  • Frying uses the new raw, cooked, burnt, and rotten fried-egg models. Chickens lay the ingredient with stars from their genetics.
  • Picking up a vanilla egg converts it the same way as other cooking ingredients.

Documentation impact

Contract

  • Affected behavior: managed chickens drop food(type=egg) instead of a plain vanilla egg. The egg is raw (cooked.0) and edible-when-cooked, so eating is refused until the frying pan sets cooked or burnt. Fresh and stale whole eggs use v.egg; rotten whole eggs use ia.tfmc_cooking:egg_rotten.
  • Tests run (mvn test, or why not): EggIngredientTest and the rest of the suite except HusbandryRepositoryTest, which fails in this environment because SQLite cannot map its native library from /tmp.
  • Player wiki (ProvinceSystem /wiki/cooking or related pages): no change

Notes

  • Config source is src/main/resources. Do not edit target/.
  • plugin.yml version and pom.xml version are known drift. Do not mix a version bump into unrelated work.
  • cookware.yml is not loaded.
  • Frying pans also need the InteractibleFurniture whitelist entry c.egg(type=egg).

Made with Cursor

Summary by CodeRabbit

  • New Features
    • Added eggs as a cookable food, with raw, cooked, burnt, and rotten states and matching item visuals.
    • Raw eggs cannot be eaten; eggs become edible once cooked.
    • Chicken eggs now use the configured egg food item.
    • Added freshness labels for stale and rotten eggs.

Whole eggs stay raw and inedible, spoil into a rotten egg texture, and become edible only after they are fried. Chickens lay that ingredient with stars from their genetics.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Sep 24, 2026

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: b0f8cbe9-3a1e-4573-b3c4-93e67846b9ec

📥 Commits

Reviewing files that changed from the base of the PR and between 1623bc0 and b795a35.

⛔ Files ignored due to path filters (9)
  • ItemsAdder/tfmc_cooking/resourcepack/assets/tfmc_cooking/textures/item/ingredients/egg/burnt_whites.png is excluded by !**/*.png
  • ItemsAdder/tfmc_cooking/resourcepack/assets/tfmc_cooking/textures/item/ingredients/egg/burnt_yolk.png is excluded by !**/*.png
  • ItemsAdder/tfmc_cooking/resourcepack/assets/tfmc_cooking/textures/item/ingredients/egg/cooked_whites.png is excluded by !**/*.png
  • ItemsAdder/tfmc_cooking/resourcepack/assets/tfmc_cooking/textures/item/ingredients/egg/cooked_yolk.png is excluded by !**/*.png
  • ItemsAdder/tfmc_cooking/resourcepack/assets/tfmc_cooking/textures/item/ingredients/egg/raw_whites.png is excluded by !**/*.png
  • ItemsAdder/tfmc_cooking/resourcepack/assets/tfmc_cooking/textures/item/ingredients/egg/raw_yolk.png is excluded by !**/*.png
  • ItemsAdder/tfmc_cooking/resourcepack/assets/tfmc_cooking/textures/item/ingredients/egg/rotten_whites.png is excluded by !**/*.png
  • ItemsAdder/tfmc_cooking/resourcepack/assets/tfmc_cooking/textures/item/ingredients/egg/rotten_yolk.png is excluded by !**/*.png
  • ItemsAdder/tfmc_cooking/resourcepack/assets/tfmc_cooking/textures/item/vanilla/egg_rotten.png is excluded by !**/*.png
📒 Files selected for processing (15)
  • ItemsAdder/tfmc_cooking/contents/categories.yml
  • ItemsAdder/tfmc_cooking/contents/items.yml
  • ItemsAdder/tfmc_cooking/resourcepack/assets/tfmc_cooking/models/item/ingredients/egg/fried_egg_burnt.json
  • ItemsAdder/tfmc_cooking/resourcepack/assets/tfmc_cooking/models/item/ingredients/egg/fried_egg_cooked.json
  • ItemsAdder/tfmc_cooking/resourcepack/assets/tfmc_cooking/models/item/ingredients/egg/fried_egg_raw.json
  • ItemsAdder/tfmc_cooking/resourcepack/assets/tfmc_cooking/models/item/ingredients/egg/fried_egg_rotten.json
  • ItemsAdder/tfmc_cooking/resourcepack/assets/tfmc_cooking/models/item/vanilla/egg_rotten.json
  • src/main/java/net/tfminecraft/cooking/cooking/FryingReference.java
  • src/main/java/net/tfminecraft/cooking/item/FoodItem.java
  • src/main/resources/config.yml
  • src/main/resources/conversions.yml
  • src/main/resources/husbandry.yml
  • src/main/resources/models.yml
  • src/main/resources/types.yml
  • src/test/java/net/tfminecraft/cooking/item/EggIngredientTest.java
 _________________________________________________________________________________________________________________________
< It is better to have 100 functions operate on one data structure than 10 functions on 10 data structures. - Alan Perlis >
 -------------------------------------------------------------------------------------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

@Drefvelin
Drefvelin merged commit 8252cdd into main Sep 24, 2026
1 of 2 checks passed
@Drefvelin
Drefvelin deleted the feat/fried-egg branch September 24, 2026 10:35
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.

1 participant