mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-08 06:26:43 +01:00
Adjust food balancing and create separate categories for fruit and baked goods,
fix desserts and candy showing as fruits and vegetables in tooltips fix farmers delight dessert items not being part of the dessert category #293
This commit is contained in:
parent
385c412a9d
commit
7d48821770
20 changed files with 169 additions and 14 deletions
|
@ -49,7 +49,7 @@ public record Effect(
|
||||||
});
|
});
|
||||||
if (tooltip.size() == size) {
|
if (tooltip.size() == size) {
|
||||||
if (stack.isFood()) {
|
if (stack.isFood()) {
|
||||||
tooltip.add(Text.literal(" ").append(Text.translatable("tag.unicopia.food_types.fruits_and_vegetables")).formatted(Formatting.GRAY));
|
tooltip.add(Text.literal(" ").append(Text.translatable("tag.unicopia.food_types.misc")).formatted(Formatting.GRAY));
|
||||||
} else if (stack.getUseAction() == UseAction.DRINK) {
|
} else if (stack.getUseAction() == UseAction.DRINK) {
|
||||||
tooltip.add(Text.literal(" ").append(Text.translatable("tag.unicopia.food_types.drinks")).formatted(Formatting.GRAY));
|
tooltip.add(Text.literal(" ").append(Text.translatable("tag.unicopia.food_types.drinks")).formatted(Formatting.GRAY));
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,6 +82,15 @@ public class PonyDiets implements DietView {
|
||||||
|
|
||||||
tooltip.add(Text.translatable("unicopia.diet.information").formatted(Formatting.DARK_PURPLE));
|
tooltip.add(Text.translatable("unicopia.diet.information").formatted(Formatting.DARK_PURPLE));
|
||||||
getEffects(stack, pony).appendTooltip(stack, tooltip, context);
|
getEffects(stack, pony).appendTooltip(stack, tooltip, context);
|
||||||
|
|
||||||
|
/*for (Race race : Race.REGISTRY) {
|
||||||
|
var diet = diets.get(race);
|
||||||
|
if (diet != null) {
|
||||||
|
tooltip.add(race.getDisplayName());
|
||||||
|
diet.appendTooltip(stack, user, tooltip, context);
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
getDiet(pony).appendTooltip(stack, user, tooltip, context);
|
getDiet(pony).appendTooltip(stack, user, tooltip, context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -622,6 +622,9 @@
|
||||||
"tag.unicopia.food_types.shelly": "Sea Shells",
|
"tag.unicopia.food_types.shelly": "Sea Shells",
|
||||||
"tag.unicopia.food_types.candy": "Candy",
|
"tag.unicopia.food_types.candy": "Candy",
|
||||||
"tag.unicopia.food_types.desserts": "Desserts",
|
"tag.unicopia.food_types.desserts": "Desserts",
|
||||||
|
"tag.unicopia.food_types.fruit": "Fruit",
|
||||||
|
"tag.unicopia.food_types.baked_goods": "Baked Goods",
|
||||||
|
"tag.unicopia.food_types.misc": "Misc",
|
||||||
"tag.unicopia.food_types.fruits_and_vegetables": "Fruits & Vegetables",
|
"tag.unicopia.food_types.fruits_and_vegetables": "Fruits & Vegetables",
|
||||||
"tag.unicopia.food_types.drinks": "Drinks",
|
"tag.unicopia.food_types.drinks": "Drinks",
|
||||||
"tag.minecraft.leaves": "Leaves",
|
"tag.minecraft.leaves": "Leaves",
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
"replace": false,
|
"replace": false,
|
||||||
"values": [
|
"values": [
|
||||||
"unicopia:mango",
|
"unicopia:mango",
|
||||||
"unicopia:banana",
|
"#c:pineapples",
|
||||||
"unicopia:pineapple"
|
"#c:apples",
|
||||||
|
"#c:bananas"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"tags": [ "unicopia:food_types/baked_goods" ],
|
||||||
|
"food_component": {
|
||||||
|
"hunger": 1,
|
||||||
|
"saturation": 1
|
||||||
|
},
|
||||||
|
"ailment": {
|
||||||
|
"effects": [
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"tags": [ "unicopia:food_types/candy" ],
|
||||||
|
"food_component": {
|
||||||
|
"hunger": 1,
|
||||||
|
"saturation": 1
|
||||||
|
},
|
||||||
|
"ailment": {
|
||||||
|
"effects": [
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"tags": [ "unicopia:food_types/desserts" ],
|
||||||
|
"food_component": {
|
||||||
|
"hunger": 1,
|
||||||
|
"saturation": 1
|
||||||
|
},
|
||||||
|
"ailment": {
|
||||||
|
"effects": [
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"tags": [ "unicopia:food_types/fruit" ],
|
||||||
|
"food_component": {
|
||||||
|
"hunger": 1,
|
||||||
|
"saturation": 1
|
||||||
|
},
|
||||||
|
"ailment": {
|
||||||
|
"effects": [
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"default_multiplier": 0.8,
|
"default_multiplier": 1.4,
|
||||||
"foraging_multiplier": 1,
|
"foraging_multiplier": 0.9,
|
||||||
"multipliers": [
|
"multipliers": [
|
||||||
{
|
{
|
||||||
"tags": [ "unicopia:food_types/cooked_fish" ],
|
"tags": [ "unicopia:food_types/cooked_fish" ],
|
||||||
|
@ -12,6 +12,13 @@
|
||||||
"hunger": 0.5,
|
"hunger": 0.5,
|
||||||
"saturation": 0.6
|
"saturation": 0.6
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"tags": [
|
||||||
|
"unicopia:food_types/baked_goods"
|
||||||
|
],
|
||||||
|
"hunger": 1,
|
||||||
|
"saturation": 1
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"tags": [
|
"tags": [
|
||||||
"unicopia:food_types/cooked_insect",
|
"unicopia:food_types/cooked_insect",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"default_multiplier": 0.5,
|
"default_multiplier": 0.6,
|
||||||
"foraging_multiplier": 0.9,
|
"foraging_multiplier": 0.9,
|
||||||
"multipliers": [
|
"multipliers": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -27,6 +27,13 @@
|
||||||
"hunger": 0.6,
|
"hunger": 0.6,
|
||||||
"saturation": 0.6
|
"saturation": 0.6
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"tags": [
|
||||||
|
"unicopia:food_types/baked_goods"
|
||||||
|
],
|
||||||
|
"hunger": 0.5,
|
||||||
|
"saturation": 0.9
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"tags": [ "unicopia:food_types/love" ],
|
"tags": [ "unicopia:food_types/love" ],
|
||||||
"hunger": 1,
|
"hunger": 1,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"default_multiplier": 1,
|
"default_multiplier": 0.7,
|
||||||
"foraging_multiplier": 1,
|
"foraging_multiplier": 1,
|
||||||
"multipliers": [
|
"multipliers": [
|
||||||
{
|
{
|
||||||
|
@ -11,6 +11,13 @@
|
||||||
"hunger": 2.5,
|
"hunger": 2.5,
|
||||||
"saturation": 1.7
|
"saturation": 1.7
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"tags": [
|
||||||
|
"unicopia:food_types/baked_goods"
|
||||||
|
],
|
||||||
|
"hunger": 1.2,
|
||||||
|
"saturation": 2
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"tags": [ "unicopia:food_types/cooked_fish" ],
|
"tags": [ "unicopia:food_types/cooked_fish" ],
|
||||||
"hunger": 0.2,
|
"hunger": 0.2,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"default_multiplier": 0.3,
|
"default_multiplier": 0.5,
|
||||||
"foraging_multiplier": 0.8,
|
"foraging_multiplier": 0.8,
|
||||||
"multipliers": [
|
"multipliers": [
|
||||||
{
|
{
|
||||||
|
@ -10,6 +10,13 @@
|
||||||
"hunger": 1.6,
|
"hunger": 1.6,
|
||||||
"saturation": 1.6
|
"saturation": 1.6
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"tags": [
|
||||||
|
"unicopia:food_types/baked_goods"
|
||||||
|
],
|
||||||
|
"hunger": 1,
|
||||||
|
"saturation": 1
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"tags": [
|
"tags": [
|
||||||
"unicopia:food_types/raw_meat",
|
"unicopia:food_types/raw_meat",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"default_multiplier": 0,
|
"default_multiplier": 0.25,
|
||||||
"foraging_multiplier": 0.9,
|
"foraging_multiplier": 0.9,
|
||||||
"multipliers": [
|
"multipliers": [
|
||||||
{
|
{
|
||||||
|
@ -12,6 +12,13 @@
|
||||||
"hunger": 0.5,
|
"hunger": 0.5,
|
||||||
"saturation": 0.6
|
"saturation": 0.6
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"tags": [
|
||||||
|
"unicopia:food_types/baked_goods"
|
||||||
|
],
|
||||||
|
"hunger": 1,
|
||||||
|
"saturation": 1
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"tags": [
|
"tags": [
|
||||||
"unicopia:food_types/cooked_insect",
|
"unicopia:food_types/cooked_insect",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"default_multiplier": 0.5,
|
"default_multiplier": 0.9,
|
||||||
"foraging_multiplier": 1,
|
"foraging_multiplier": 1,
|
||||||
"multipliers": [
|
"multipliers": [
|
||||||
{
|
{
|
||||||
|
@ -12,6 +12,13 @@
|
||||||
"hunger": 0.5,
|
"hunger": 0.5,
|
||||||
"saturation": 0.6
|
"saturation": 0.6
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"tags": [
|
||||||
|
"unicopia:food_types/baked_goods"
|
||||||
|
],
|
||||||
|
"hunger": 1,
|
||||||
|
"saturation": 1
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"tags": [
|
"tags": [
|
||||||
"unicopia:food_types/cooked_insect",
|
"unicopia:food_types/cooked_insect",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"default_multiplier": 0.5,
|
"default_multiplier": 0.4,
|
||||||
"foraging_multiplier": 0.7,
|
"foraging_multiplier": 0.7,
|
||||||
"multipliers": [
|
"multipliers": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"default_multiplier": 0.7,
|
"default_multiplier": 1.2,
|
||||||
"foraging_multiplier": 1,
|
"foraging_multiplier": 1,
|
||||||
"multipliers": [
|
"multipliers": [
|
||||||
{
|
{
|
||||||
|
@ -11,6 +11,13 @@
|
||||||
"hunger": 0.1,
|
"hunger": 0.1,
|
||||||
"saturation": 0.1
|
"saturation": 0.1
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"tags": [
|
||||||
|
"unicopia:food_types/baked_goods"
|
||||||
|
],
|
||||||
|
"hunger": 1,
|
||||||
|
"saturation": 1
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"tags": [
|
"tags": [
|
||||||
"unicopia:food_types/love",
|
"unicopia:food_types/love",
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
{
|
||||||
|
"replace": false,
|
||||||
|
"values": [
|
||||||
|
"minecraft:bread",
|
||||||
|
"minecraft:cookie",
|
||||||
|
"unicopia:muffin",
|
||||||
|
"#c:grain",
|
||||||
|
"unicopia:cooked_zap_apple",
|
||||||
|
"minecraft:pumpkin_pie",
|
||||||
|
"#unicopia:pies",
|
||||||
|
"unicopia:apple_pie_slice",
|
||||||
|
"unicopia:toast",
|
||||||
|
"unicopia:burned_toast",
|
||||||
|
"unicopia:jam_toast",
|
||||||
|
"unicopia:imported_oats",
|
||||||
|
"unicopia:oatmeal",
|
||||||
|
"unicopia:hay_fries",
|
||||||
|
"unicopia:crispy_hay_fries",
|
||||||
|
"unicopia:horse_shoe_fries",
|
||||||
|
{ "id": "farmersdelight:wheat_dough", "required": false },
|
||||||
|
{ "id": "farmersdelight:raw_pasta", "required": false },
|
||||||
|
{ "id": "farmersdelight:pie_crust", "required": false },
|
||||||
|
{ "id": "farmersdelight:sweet_berry_cookie", "required": false },
|
||||||
|
{ "id": "farmersdelight:honey_cookie", "required": false },
|
||||||
|
{ "id": "farmersdelight:egg_sandwich", "required": false }
|
||||||
|
]
|
||||||
|
}
|
|
@ -2,7 +2,11 @@
|
||||||
"replace": false,
|
"replace": false,
|
||||||
"values": [
|
"values": [
|
||||||
"minecraft:cake",
|
"minecraft:cake",
|
||||||
"#unicopia:pies",
|
{ "id": "farmersdelight:sweet_berry_cheesecake", "required": false },
|
||||||
{ "id": "bakersdelight:sweet_berry_cheesecake", "required": false }
|
{ "id": "farmersdelight:sweet_berry_cheesecake_slice", "required": false },
|
||||||
|
{ "id": "farmersdelight:chocolate_pie_slice", "required": false },
|
||||||
|
{ "id": "farmersdelight:cake_slice", "required": false },
|
||||||
|
{ "id": "farmersdelight:apple_pie_slice", "required": false },
|
||||||
|
{ "id": "farmersdelight:glow_berry_custard", "required": false }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"replace": false,
|
||||||
|
"values": [
|
||||||
|
"#c:fruits",
|
||||||
|
"unicopia:zap_apple",
|
||||||
|
"unicopia:zap_bulb",
|
||||||
|
"unicopia:rotten_apple",
|
||||||
|
"minecraft:melon_slice",
|
||||||
|
"minecraft:sweet_berries",
|
||||||
|
"minecraft:glow_berries",
|
||||||
|
"minecraft:chorus_fruit",
|
||||||
|
"unicopia:juice",
|
||||||
|
{ "id": "farmersdelight:pumpkin_slice", "required": false },
|
||||||
|
{ "id": "farmersdelight:tomato", "required": false },
|
||||||
|
{ "id": "farmersdelight:melon_juice", "required": false },
|
||||||
|
{ "id": "farmersdelight:fruit_salad", "required": false }
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in a new issue