Skip to content

Commit

Permalink
new items
Browse files Browse the repository at this point in the history
  • Loading branch information
MEGATREX4 committed Aug 7, 2024
1 parent 7e02b55 commit 43fb9ec
Show file tree
Hide file tree
Showing 18 changed files with 51 additions and 1 deletion.
Binary file added projectfiles/cherry.aseprite
Binary file not shown.
Binary file added projectfiles/cottage_cheese.aseprite
Binary file not shown.
Binary file added projectfiles/salo.aseprite
Binary file not shown.
Binary file added projectfiles/yeast.aseprite
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ public class BrewingKegBlockEntity extends BlockEntity implements ExtendedScreen
private int maxProgress = 200; // Adjusted to match the brewing time in the JSON
private Text customName;
private ItemStack drinkContainer;
private ItemStack lastContainer;



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,18 @@ public class ModFoodComponents {
.saturationModifier(0.1f)
.build();

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

public static final FoodComponent SALO = 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 @@ -42,6 +42,10 @@ public class ModItemGroups {
entries.add(ModItems.CUTTED_CUCUMBER);
entries.add(ModItems.APPLE_SLICE);
entries.add(ModItems.DRIED_APPLE_SLICE);
entries.add(ModItems.CHERRY_BERRY);
entries.add(ModItems.COTTAGE_CHEESE);
entries.add(ModItems.SALO);
entries.add(ModItems.YEAST);
}).build());

public static final ItemGroup JARS_UKRAINIAN_DELIGHT = Registry.register(Registries.ITEM_GROUP,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,17 @@ public class ModItems {
.food(ModFoodComponents.CHERRY_BERRY)
.build());

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

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

// Simple items without specifying maxCount, defaults to 64
public static final Item SALT = registerItem("salt", new ItemBuilder().build());
public static final Item YEAST = registerItem("yeast", new ItemBuilder().build());

// Register items
public static Item registerItem(String name, Item item) {
Expand Down
4 changes: 4 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 @@ -13,6 +13,10 @@
"block.ukrainian_delight.cucumber_crate": "Cucumber Crate",
"item.ukrainian_delight.apple_slice": "Apple Slice",
"item.ukrainian_delight.dried_apple_slice": "Dried Apple Slice",
"item.ukrainian_delight.cherry_berry": "Cherry Berry",
"item.ukrainian_delight.cottage_cheese": "Cottage Cheese",
"item.ukrainian_delight.salo": "Salo",
"item.ukrainian_delight.yeast": "Yeast",

"_comment3": "meals",
"item.ukrainian_delight.varenyk": "Varenyk",
Expand Down
4 changes: 4 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 @@ -13,6 +13,10 @@
"block.ukrainian_delight.cucumber_crate": "Ящик огірків",
"item.ukrainian_delight.apple_slice": "Скибка яблука",
"item.ukrainian_delight.dried_apple_slice": "Сушена скибка яблука",
"item.ukrainian_delight.cherry_berry": "Вишня",
"item.ukrainian_delight.cottage_cheese": "Домашній сир",
"item.ukrainian_delight.salo": "Сало",
"item.ukrainian_delight.yeast": "Дріжджі",

"_comment3": "meals",
"item.ukrainian_delight.varenyk": "Вареник",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "ukrainian_delight:item/cottage_cheese"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "ukrainian_delight:item/salo"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "ukrainian_delight:item/yeast"
}
}
Binary file not shown.
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.

0 comments on commit 43fb9ec

Please sign in to comment.