diff --git a/src/main/java/com/megatrex4/ukrainian_dlight/UkrainianDelight.java b/src/main/java/com/megatrex4/ukrainian_dlight/UkrainianDelight.java index f6aaaed..8591edb 100644 --- a/src/main/java/com/megatrex4/ukrainian_dlight/UkrainianDelight.java +++ b/src/main/java/com/megatrex4/ukrainian_dlight/UkrainianDelight.java @@ -15,6 +15,7 @@ public class UkrainianDelight implements ModInitializer { @Override public void onInitialize() { ModItems.registerModItems(); + ModItemGroups.registerItemGroups(); LOGGER.info("Hello Fabric world it`s " + MOD_ID + "!"); } diff --git a/src/main/java/com/megatrex4/ukrainian_dlight/item/ModItemGroups.java b/src/main/java/com/megatrex4/ukrainian_dlight/item/ModItemGroups.java index bb334fd..681a64c 100644 --- a/src/main/java/com/megatrex4/ukrainian_dlight/item/ModItemGroups.java +++ b/src/main/java/com/megatrex4/ukrainian_dlight/item/ModItemGroups.java @@ -11,20 +11,16 @@ import net.minecraft.util.Identifier; public class ModItemGroups { - public static final ItemGroup UKRANIAN_DELIGHT_GROUP = Registry.register(Registries.ITEM_GROUP, - new Identifier(UkrainianDelight.MOD_ID, "Ukrainian Delight"), - FabricItemGroup.builder().displayName(Text.translatable("itemgroup.ruby")) - .icon(() -> new ItemStack(Items.CARROT)).entries((displayContext, entries) -> { - - entries.add(Items.CARROT); - + public static final ItemGroup UKRAINIAN_DELIGHT_GROUP = Registry.register(Registries.ITEM_GROUP, + new Identifier(UkrainianDelight.MOD_ID, "ukrainian_delight"), + FabricItemGroup.builder() + .displayName(Text.translatable("itemgroup.ukrainian_delight")) + .icon(() -> new ItemStack(Items.CARROT)) + .entries((displayContext, entries) -> { entries.add(ModItems.VARENYK); - - }).build()); - public static void registerItemGroups() { UkrainianDelight.LOGGER.info("Registering Item Groups for " + UkrainianDelight.MOD_ID); } -} \ No newline at end of file +} diff --git a/src/main/resources/assets/ukrainian-delight/lang/en_us.json b/src/main/resources/assets/ukrainian-delight/lang/en_us.json new file mode 100644 index 0000000..edaf92a --- /dev/null +++ b/src/main/resources/assets/ukrainian-delight/lang/en_us.json @@ -0,0 +1,5 @@ +{ + "item.ukrainian_delight.varenyk": "Varenyk", + + "itemgroup.ukrainian_delight": "Ukrainian Delight" +} \ No newline at end of file diff --git a/src/main/resources/assets/ukrainian-delight/lang/uk_ua.json b/src/main/resources/assets/ukrainian-delight/lang/uk_ua.json new file mode 100644 index 0000000..ba7f1d0 --- /dev/null +++ b/src/main/resources/assets/ukrainian-delight/lang/uk_ua.json @@ -0,0 +1,5 @@ +{ + "item.ukrainian_delight.varenyk": "Вареник", + + "itemgroup.ukrainian_delight": "Українська насолода" +} \ No newline at end of file