Skip to content

Commit

Permalink
added apple_slice
Browse files Browse the repository at this point in the history
added homemade_sausage

added @hnufelka as author
  • Loading branch information
MEGATREX4 committed Jun 14, 2024
1 parent 49de273 commit fb39e35
Show file tree
Hide file tree
Showing 15 changed files with 102 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ public class ModFoodComponents {
.hunger(6)
.saturationModifier(0.40f)
.statusEffect(new StatusEffectInstance(COMFORT, 25*20, 0), 1.0F)
.snack()
.build();

public static final FoodComponent BORSCHT = new FoodComponent.Builder()
Expand Down Expand Up @@ -50,6 +49,23 @@ public class ModFoodComponents {
.saturationModifier(0.1f)
.build();

public static final FoodComponent APPLE_SLICE = new FoodComponent.Builder()
.hunger(3)
.snack()
.saturationModifier(0.2f)
.build();

public static final FoodComponent DRIED_APPLE_SLICE = new FoodComponent.Builder()
.hunger(4)
.snack()
.saturationModifier(0.23f)
.build();

public static final FoodComponent HOMEMADE_SAUSAGE = new FoodComponent.Builder()
.hunger(5)
.saturationModifier(0.25f)
.build();

// Ensure that the class is initialized
public static void init() {
// This method is empty, but it ensures that the class is initialized
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ public class ModItemGroups {
.displayName(Text.translatable("itemgroup.meals_ukrainian_delight"))
.icon(() -> new ItemStack(ModItems.BORSCHT))
.entries((displayContext, entries) -> {
entries.add(ModItems.VARENYK);
entries.add(ModItems.BORSCHT);
entries.add(ModItems.LEAN_BORSCHT);
entries.add(ModItems.HOMEMADE_SAUSAGE);
entries.add(ModItems.VARENYK);
}).build());

public static final ItemGroup INGREDIENT_UKRAINIAN_DELIGHT = Registry.register(Registries.ITEM_GROUP,
Expand All @@ -36,6 +37,8 @@ public class ModItemGroups {
entries.add(ModBlock.CUCUMBER_CRATE);
entries.add(ModItems.CUCUMBER);
entries.add(ModItems.CUTTED_CUCUMBER);
entries.add(ModItems.APPLE_SLICE);
entries.add(ModItems.DRIED_APPLE_SLICE);
}).build());


Expand Down
44 changes: 28 additions & 16 deletions src/main/java/com/megatrex4/ukrainian_dlight/item/ModItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,44 @@ public class ModItems {

// Define items using the ItemBuilder
public static final Item VARENYK = registerItem("varenyk", new ItemBuilder()
.food(ModFoodComponents.VARENYK)
.build());
.food(ModFoodComponents.VARENYK)
.build());

public static final Item BORSCHT = registerItem("borscht", new ItemBuilder()
.food(ModFoodComponents.BORSCHT)
.maxCount(16)
.returnsBowl()
.build());
.food(ModFoodComponents.BORSCHT)
.maxCount(16)
.returnsBowl()
.build());

public static final Item LEAN_BORSCHT = registerItem("lean_borscht", new ItemBuilder()
.food(ModFoodComponents.LEAN_BORSCHT)
.maxCount(16)
.returnsBowl()
.build());
.food(ModFoodComponents.LEAN_BORSCHT)
.maxCount(16)
.returnsBowl()
.build());

public static final Item HORSERADISH = registerItem("horseradish", new ItemBuilder()
.food(ModFoodComponents.HORSERADISH)
.build());
.food(ModFoodComponents.HORSERADISH)
.build());

public static final Item CUCUMBER = registerItem("cucumber", new ItemBuilder()
.food(ModFoodComponents.CUCUMBER)
.build());
.food(ModFoodComponents.CUCUMBER)
.build());

public static final Item CUTTED_CUCUMBER = registerItem("cutted_cucumber", new ItemBuilder()
.food(ModFoodComponents.CUTTED_CUCUMBER)
.build());
.food(ModFoodComponents.CUTTED_CUCUMBER)
.build());

public static final Item APPLE_SLICE = registerItem("apple_slice", new ItemBuilder()
.food(ModFoodComponents.APPLE_SLICE)
.build());

public static final Item DRIED_APPLE_SLICE = registerItem("dried_apple_slice", new ItemBuilder()
.food(ModFoodComponents.DRIED_APPLE_SLICE)
.build());

public static final Item HOMEMADE_SAUSAGE = registerItem("homemade_sausage", new ItemBuilder()
.food(ModFoodComponents.HOMEMADE_SAUSAGE)
.build());

// Simple items without specifying maxCount, defaults to 64
public static final Item SALT = registerItem("salt", new ItemBuilder().build());
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/assets/ukrainian_delight/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@
"item.ukrainian_delight.cucumber": "Cucumber",
"item.ukrainian_delight.cutted_cucumber": "Cut Cucumber",
"block.ukrainian_delight.cucumber_crate": "Cucumber Crate",
"item.ukrainian_delight.apple_slice": "Apple Slice",
"item.ukrainian_delight.dried_apple_slice": "Dried Apple Slice",

"_comment3": "meals",
"item.ukrainian_delight.varenyk": "Varenyk",
"item.ukrainian_delight.borscht": "Borscht",
"item.ukrainian_delight.lean_borscht": "Lean Borscht",
"item.ukrainian_delight.homemade_sausage": "Homemade Sausage",

"_comment4": "blocks",
"block.ukrainian_delight.salt_block": "Salt Block",
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/assets/ukrainian_delight/lang/uk_ua.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@
"item.ukrainian_delight.cucumber": "Огірок",
"item.ukrainian_delight.cutted_cucumber": "Скибка огірка",
"block.ukrainian_delight.cucumber_crate": "Ящик огірків",
"item.ukrainian_delight.apple_slice": "Скибка яблука",
"item.ukrainian_delight.dried_apple_slice": "Сушена скибка яблука",

"_comment3": "meals",
"item.ukrainian_delight.varenyk": "Вареник",
"item.ukrainian_delight.borscht": "Борщ",
"item.ukrainian_delight.lean_borscht": "Пісний борщ",
"item.ukrainian_delight.homemade_sausage": "Домашня ковбаса",

"_comment4": "blocks",
"block.ukrainian_delight.salt_block": "Солевий блок",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "ukrainian_delight:item/apple_slice"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "ukrainian_delight:item/dried_apple_slice"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "ukrainian_delight:item/homemade_sausage"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"type": "farmersdelight:cutting",
"ingredients": [
{
"item": "minecraft:apple"
}
],
"result": [
{
"count": 2,
"item": "ukrainian_delight:apple_slice"
}
],
"tool": {
"tag": "c:tools/knives"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"type": "minecraft:smelting",
"category": "misc",
"cookingtime": 200,
"experience": 0.1,
"group": "copper_ingot",
"ingredient": {
"item": "ukrainian_delight:apple_slice"
},
"result": "ukrainian_delight:dried_apple_slice"
}
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Ukrainian Delight",
"description": "A mod for Minecraft that adds Ukrainian cuisine as a mod add-on to Farmer's Delight",
"authors": [
"MEGATREX4"
"MEGATREX4, hnufelka"
],
"contact": {
"sources": "https://github.com/SKZGx/ukrainian-delight",
Expand Down

0 comments on commit fb39e35

Please sign in to comment.