Food Update (#2223)

* new food

* Changelog

* Removed venus requirement so players could craft cheese now

* molecular diagrams
This commit is contained in:
Redeix 2025-11-16 18:54:32 -06:00 committed by GitHub
parent 0e806878b9
commit b69645a263
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
46 changed files with 1656 additions and 111 deletions

View file

@ -40,6 +40,15 @@ function registerTFGHeatData(event) {
event.itemHeat('betterend:cave_pumpkin_pie_raw', 1.0, null, null);
event.itemHeat('betterend:cave_pumpkin_pie', 1.0, null, null);
event.itemHeat('tfg:food/raw_beer_battered_cheese_curds', 1.0, null, null);
event.itemHeat('tfg:food/cooked_beer_battered_cheese_curds', 1.0, null, null);
event.itemHeat('tfg:food/raw_fries', 1.0, null, null);
event.itemHeat('tfg:food/cooked_fries', 1.0, null, null);
event.itemHeat('tfg:food/brioche_dough', 1.0, null, null);
event.itemHeat('tfg:food/brioche_bun', 1.0, null, null);
event.itemHeat('tfg:food/raw_burger_patty', 1.0, null, null);
event.itemHeat('tfg:food/cooked_burger_patty', 1.0, null, null);
}
//#endregion
@ -324,8 +333,8 @@ function registerTFGSupportData(event) {
/** @param {Internal.TFCDataEventJS} event */
function registerTFGFoodData(event) {
// meats
// Birt
event.foodItem("tfg:food/raw_birt", (food) => {
food.hunger(2);
food.protein(1.2);
@ -339,6 +348,7 @@ function registerTFGFoodData(event) {
food.decayModifier(2.25);
});
// Crawlermari
event.foodItem("tfg:food/raw_crawlermari", (food) => {
food.hunger(2);
food.water(5);
@ -353,6 +363,7 @@ function registerTFGFoodData(event) {
food.decayModifier(2.25);
});
// Limpet
event.foodItem("tfg:food/raw_limpet", (food) => {
food.hunger(2);
food.water(5);
@ -367,6 +378,7 @@ function registerTFGFoodData(event) {
food.decayModifier(2.25);
});
// Moon Rabbit
event.foodItem("tfg:food/raw_moon_rabbit", (food) => {
food.hunger(2);
food.protein(1.2);
@ -380,6 +392,7 @@ function registerTFGFoodData(event) {
food.decayModifier(2.25);
});
// Glacian Mutton
event.foodItem("tfg:food/raw_glacian_mutton", (food) => {
food.hunger(2);
food.protein(1.5);
@ -393,6 +406,7 @@ function registerTFGFoodData(event) {
food.decayModifier(2.25);
});
// Sniffer Beef
event.foodItem("tfg:food/raw_sniffer_beef", (food) => {
food.hunger(2);
food.protein(1.5);
@ -406,6 +420,7 @@ function registerTFGFoodData(event) {
food.decayModifier(2.25);
});
// Wraptor
event.foodItem("tfg:food/raw_wraptor", (food) => {
food.hunger(2);
food.protein(1.5);
@ -419,6 +434,7 @@ function registerTFGFoodData(event) {
food.decayModifier(2.25);
});
// Springling Collar
event.foodItem("tfg:food/raw_springling_collar", (food) => {
food.hunger(2);
food.protein(1.5);
@ -432,6 +448,7 @@ function registerTFGFoodData(event) {
food.decayModifier(2.25);
});
// Surfer Steak
event.foodItem("tfg:food/raw_surfer_steak", (food) => {
food.hunger(2);
food.protein(1.5);
@ -445,6 +462,7 @@ function registerTFGFoodData(event) {
food.decayModifier(2.25);
});
// Cruncher Ribs
event.foodItem("tfg:food/raw_cruncher_ribs", (food) => {
food.hunger(2);
food.protein(2.0);
@ -458,6 +476,7 @@ function registerTFGFoodData(event) {
food.decayModifier(2.25);
});
// Long Pig Filet
event.foodItem("tfg:food/raw_long_pig_filet", (food) => {
food.hunger(2);
food.protein(1.5);
@ -471,6 +490,7 @@ function registerTFGFoodData(event) {
food.decayModifier(2.25);
});
// Stackatick Chunks
event.foodItem("tfg:food/raw_stackatick_chunks", (food) => {
food.hunger(2);
food.protein(1.2);
@ -490,6 +510,7 @@ function registerTFGFoodData(event) {
food.decayModifier(2.25);
});
// Walker Steak
event.foodItem("tfg:food/raw_walker_steak", (food) => {
food.hunger(2);
food.protein(2.0);
@ -503,6 +524,7 @@ function registerTFGFoodData(event) {
food.decayModifier(2.25);
});
// Glider Wings
event.foodItem("tfg:food/raw_glider_wings", (food) => {
food.hunger(2);
food.protein(1.5);
@ -516,6 +538,7 @@ function registerTFGFoodData(event) {
food.decayModifier(2.25);
});
// Soarer
event.foodItem("tfg:food/raw_whole_soarer", (food) => {
food.hunger(2);
food.protein(1.5);
@ -529,6 +552,7 @@ function registerTFGFoodData(event) {
food.decayModifier(2.25);
});
// Crusher Meat
event.foodItem("tfg:food/raw_crusher_meat", (food) => {
food.hunger(2);
food.protein(1.5);
@ -542,6 +566,7 @@ function registerTFGFoodData(event) {
food.decayModifier(2.25);
});
// Goober Meat
event.foodItem("tfg:food/raw_goober_meat", (food) => {
food.hunger(2);
food.protein(1.5);
@ -557,7 +582,6 @@ function registerTFGFoodData(event) {
});
// high-tech food
global.FOOD_FRUIT.forEach((fruit) => {
event.foodItem(`tfg:food/freeze_dried/${fruit.name}`, (food) => {
food.hunger(4);
@ -581,8 +605,7 @@ function registerTFGFoodData(event) {
food.type("dynamic");
});
// crops
// Sunflower products
event.foodItem("tfg:roasted_sunflower_seeds", (food) => {
food.hunger(4);
food.decayModifier(0.5);
@ -594,6 +617,7 @@ function registerTFGFoodData(event) {
food.decayModifier(0.5);
});
// Amber Roots
event.foodItem("betterend:amber_root_product", (food) => {
food.hunger(4);
food.decayModifier(1);
@ -601,6 +625,7 @@ function registerTFGFoodData(event) {
food.grain(3);
});
// Blossom Berries
event.foodItem("betterend:blossom_berry_product", (food) => {
food.hunger(5);
food.decayModifier(2);
@ -609,6 +634,7 @@ function registerTFGFoodData(event) {
food.fruit(2.1);
});
// Cave Pumpkin
event.foodItem("betterend:cave_pumpkin", (food) => {
food.hunger(4);
food.saturation(0);
@ -644,6 +670,7 @@ function registerTFGFoodData(event) {
food.dairy(1);
});
// Chorus Mushroom
event.foodItem("betterend:chorus_mushroom_product", (food) => {
food.hunger(2);
food.saturation(1);
@ -659,6 +686,7 @@ function registerTFGFoodData(event) {
food.vegetables(2.5);
});
// Shadow Berry
event.foodItem("betterend:shadow_berry_product", (food) => {
food.hunger(5);
food.decayModifier(2);
@ -674,6 +702,7 @@ function registerTFGFoodData(event) {
food.fruit(2.2);
});
// Bolux Mushroom
event.foodItem("betterend:bolux_mushroom_product", (food) => {
food.hunger(2);
food.saturation(1);
@ -689,6 +718,7 @@ function registerTFGFoodData(event) {
food.vegetables(2.4);
});
// Dino Nuggets
event.foodItem('tfg:food/raw_dino_nugget', (food) => {
food.type("dynamic");
food.hunger(1);
@ -702,22 +732,89 @@ function registerTFGFoodData(event) {
food.decayModifier(1.5);
});
// misc
// Ice Soup
event.foodItem("tfg:food/ice_soup", (food) => {
food.hunger(1);
food.water(20);
food.decayModifier(0);
});
event.drinkable("tfg:semiheavy_ammoniacal_water", (data) => {
data.thirst(10);
data.effect("minecraft:nausea", (effect) => {
effect.chance(0.5);
effect.duration(200);
});
// Fries
event.foodItem('tfg:food/raw_fries', (food) => {
food.hunger(1);
food.decayModifier(3);
food.vegetables(0.25);
});
event.foodItem('tfg:food/cooked_fries', (food) => {
food.hunger(2);
food.decayModifier(1.5);
food.vegetables(0.6);
food.saturation(2);
});
// Cheese Curds
event.foodItem('tfg:food/raw_beer_battered_cheese_curds', (food) => {
food.hunger(1);
food.decayModifier(1.3);
food.dairy(1);
food.saturation(1);
});
event.foodItem('tfg:food/cooked_beer_battered_cheese_curds', (food) => {
food.hunger(3);
food.decayModifier(0.8);
food.dairy(1.2);
food.saturation(2);
food.grain(0.5);
});
// Hamburgers
event.foodItem('tfg:food/raw_burger_patty', (food) => {
food.hunger(2);
food.decayModifier(2.3);
food.protein(2);
});
event.foodItem('tfg:food/cooked_burger_patty', (food) => {
food.hunger(4);
food.decayModifier(2);
food.protein(2.5);
food.saturation(2);
});
event.foodItem('tfg:food/brioche_dough', (food) => {
food.hunger(1.5);
food.decayModifier(2.3);
});
event.foodItem('tfg:food/brioche_bun', (food) => {
food.hunger(3.5);
food.decayModifier(1.5);
food.grain(1.5);
food.dairy(0.5);
food.saturation(1);
});
event.foodItem('tfg:food/hamburger', (food) => {
food.type("dynamic");
});
event.foodItem('tfg:food/cheeseburger', (food) => {
food.type("dynamic");
});
// Poutine
event.foodItem('tfg:food/poutine', (food) => {
food.type("dynamic_bowl");
});
// Oatmeal
event.foodItem('tfg:food/oatmeal', (food) => {
food.type("dynamic_bowl");
});
// Biochem Items
event.foodItem("tfg:progenitor_cells", (food) => {
food.decayModifier(1);
});
@ -728,6 +825,23 @@ function registerTFGFoodData(event) {
food.decayModifier(0.5);
});
// Instant Mac
event.foodItem('tfg:food/raw_instant_mac', (food) => {
food.hunger(2);
food.decayModifier(0.2);
});
event.foodItem('tfg:food/cooked_instant_mac', (food) => {
food.hunger(3.5);
food.decayModifier(1.6);
food.grain(1.5);
food.dairy(2.5);
food.protein(0.8);
food.saturation(1.8);
});
//#region Drinkables
// Proto Growth Medium
event.drinkable("tfg:proto_growth_medium", (data) => {
data.thirst(10);
data.food(food => {
@ -740,6 +854,57 @@ function registerTFGFoodData(event) {
effect.duration(1200);
});
});
// Semiheavy Ammoniacal Water
event.drinkable("tfg:semiheavy_ammoniacal_water", (data) => {
data.thirst(10);
data.effect("minecraft:nausea", (effect) => {
effect.chance(0.5);
effect.duration(200);
});
});
// Dark Stock
event.drinkable('tfg:dark_stock', (data) => {
data.thirst(4);
data.effect("tfc:thirst", (effect) => {
effect.chance(0.2);
effect.duration(20*5);
});
data.food(food => {
food.protein(0.25);
food.vegetables(0.25);
});
});
// Light Stock
event.drinkable('tfg:light_stock', (data) => {
data.thirst(4);
data.effect("tfc:thirst", (effect) => {
effect.chance(0.2);
effect.duration(20*5);
});
data.food(food => {
food.protein(0.25);
food.vegetables(0.25);
});
});
// Brown Gravy
event.drinkable('tfg:brown_gravy', (data) => {
data.thirst(2);
data.effect("tfc:thirst", (effect) => {
effect.chance(0.3);
effect.duration(20*5);
});
data.food(food => {
food.protein(0.5);
food.vegetables(0.5);
food.grain(0.25);
});
});
//#endregion
}
//#endregion