mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 07:17:58 +01:00
Added a nuts food category for hippogriffs
This commit is contained in:
parent
1c878be324
commit
4d4647a385
7 changed files with 42 additions and 2 deletions
|
@ -80,8 +80,11 @@ public record DietProfile(
|
|||
return null;
|
||||
}
|
||||
|
||||
float hunger = food.getHunger() * ratios.getFirst();
|
||||
int baseline = (int)hunger;
|
||||
|
||||
return FoodAttributes.copy(food)
|
||||
.hunger(Math.max(1, (int)(food.getHunger() * ratios.getFirst())))
|
||||
.hunger(Math.max(1, (hunger - baseline) >= 0.5F ? baseline + 1 : baseline))
|
||||
.saturationModifier(food.getSaturationModifier() * ratios.getSecond())
|
||||
.build();
|
||||
}
|
||||
|
|
|
@ -612,6 +612,7 @@
|
|||
"tag.unicopia.food_types.cooked_fish": "Prepared Fish",
|
||||
"tag.unicopia.food_types.raw_insect": "Bugs & Insects",
|
||||
"tag.unicopia.food_types.cooked_insect": "Cooked Bugs & Insects",
|
||||
"tag.unicopia.food_types.nuts_and_seeds": "Nuts & Seeds",
|
||||
"tag.unicopia.food_types.love": "Love",
|
||||
"tag.unicopia.food_types.rocks": "Rocks",
|
||||
"tag.unicopia.food_types.pinecone": "Nuts & Seeds",
|
||||
|
|
6
src/main/resources/data/c/tags/items/nuts.json
Normal file
6
src/main/resources/data/c/tags/items/nuts.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"replace": false,
|
||||
"values": [
|
||||
{ "id": "#c:crops/peanuts", "require": false }
|
||||
]
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"tags": [ "unicopia:food_types/nuts_and_seeds" ],
|
||||
"food_component": {
|
||||
"hunger": 2,
|
||||
"saturation": 2.5
|
||||
},
|
||||
"ailment": {
|
||||
"effects": [
|
||||
]
|
||||
}
|
||||
}
|
|
@ -10,6 +10,13 @@
|
|||
"hunger": 1.6,
|
||||
"saturation": 1.6
|
||||
},
|
||||
{
|
||||
"tags": [
|
||||
"unicopia:food_types/nuts_and_seeds"
|
||||
],
|
||||
"hunger": 1.4,
|
||||
"saturation": 1.4
|
||||
},
|
||||
{
|
||||
"tags": [
|
||||
"unicopia:food_types/baked_goods"
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
{ "id": "farmersdelight:pumpkin_slice", "required": false },
|
||||
{ "id": "farmersdelight:tomato", "required": false },
|
||||
{ "id": "farmersdelight:melon_juice", "required": false },
|
||||
{ "id": "farmersdelight:fruit_salad", "required": false }
|
||||
{ "id": "farmersdelight:fruit_salad", "required": false },
|
||||
{ "id": "#garnished:berries", "require": false }
|
||||
]
|
||||
}
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"replace": false,
|
||||
"values": [
|
||||
"#c:seeds",
|
||||
"#c:acorns",
|
||||
"#c:nuts",
|
||||
{ "id": "#garnished:nuts", "require": false },
|
||||
{ "id": "#garnished:nut_mix", "require": false },
|
||||
{ "id": "#garnished:neverable_delecacies", "require": false }
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue