diff --git a/src/main/java/me/parsell/glowstonewire/GlowstoneWire.java b/src/main/java/me/parsell/glowstonewire/GlowstoneWire.java index 742b28e..d852e77 100644 --- a/src/main/java/me/parsell/glowstonewire/GlowstoneWire.java +++ b/src/main/java/me/parsell/glowstonewire/GlowstoneWire.java @@ -5,11 +5,12 @@ import me.parsell.glowstonewire.core.glowItems; import net.fabricmc.api.ModInitializer; import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder; import net.minecraft.item.ItemGroup; +import net.minecraft.item.ItemStack; +import net.minecraft.item.Items; import net.minecraft.util.Identifier; public class GlowstoneWire implements ModInitializer { - public static final String MODID = "GlowstoneWire"; - public static final ItemGroup GLOWSTONEWIRE_MOD = FabricItemGroupBuilder.create(new Identifier(MODID, "general")).build(); + public static final String MODID = "glowstonewire"; @Override public void onInitialize() { diff --git a/src/main/java/me/parsell/glowstonewire/core/glowItems.java b/src/main/java/me/parsell/glowstonewire/core/glowItems.java index ce6e33a..b4be0be 100644 --- a/src/main/java/me/parsell/glowstonewire/core/glowItems.java +++ b/src/main/java/me/parsell/glowstonewire/core/glowItems.java @@ -1,17 +1,21 @@ package me.parsell.glowstonewire.core; import me.parsell.glowstonewire.GlowstoneWire; +import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder; import net.fabricmc.fabric.api.item.v1.FabricItemSettings; import net.minecraft.item.BlockItem; import net.minecraft.item.Item; +import net.minecraft.item.ItemGroup; +import net.minecraft.item.ItemStack; +import net.minecraft.item.Items; import net.minecraft.util.Identifier; import net.minecraft.util.registry.Registry; public class glowItems { - public static final Item Glowstone = new BlockItem(glowBlocks.GLOWSTONEWIRE, new FabricItemSettings().group(GlowstoneWire.GLOWSTONEWIRE_MOD)); - + public static final ItemGroup GLOWSTONEWIRE_CTAB = FabricItemGroupBuilder.build(new Identifier(GlowstoneWire.MODID, "general"), () -> new ItemStack(Items.GLOWSTONE_DUST)); + public static final Item GLOWSTONE_DUST = new BlockItem(glowBlocks.GLOWSTONEWIRE, new FabricItemSettings().group(GLOWSTONEWIRE_CTAB)); public static void init(){ - Registry.register(Registry.ITEM, new Identifier(GlowstoneWire.MODID, "glowstone"), Glowstone); + Registry.register(Registry.ITEM, new Identifier(GlowstoneWire.MODID, "glowstone_dust"), GLOWSTONE_DUST); }; } diff --git a/src/main/resources/assets/glowstonewire/lang/en_us.json b/src/main/resources/assets/glowstonewire/lang/en_us.json new file mode 100644 index 0000000..437171a --- /dev/null +++ b/src/main/resources/assets/glowstonewire/lang/en_us.json @@ -0,0 +1,4 @@ +{ + "itemGroup.glowstonewire.general": "Glowstone Wire", + "block.glowstonewire.glowstone_wire": "Glowstone Dust" +} \ No newline at end of file diff --git a/src/main/resources/assets/glowstonewire/models/item/glowstone_dust.json b/src/main/resources/assets/glowstonewire/models/item/glowstone_dust.json new file mode 100644 index 0000000..795317b --- /dev/null +++ b/src/main/resources/assets/glowstonewire/models/item/glowstone_dust.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "glowstonewire:item/glowstone_dust" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/glowstonewire/textures/item/glowstone_dust.png b/src/main/resources/assets/glowstonewire/textures/item/glowstone_dust.png new file mode 100644 index 0000000..2418109 Binary files /dev/null and b/src/main/resources/assets/glowstonewire/textures/item/glowstone_dust.png differ diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index fcdc2c4..a69ef17 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -26,7 +26,6 @@ ] }, "mixins": [ - "glowstonewire.mixins.json" ], "depends": { diff --git a/src/main/resources/glowstonewire.mixins.json b/src/main/resources/glowstonewire.mixins.json deleted file mode 100644 index 0ac3734..0000000 --- a/src/main/resources/glowstonewire.mixins.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "required": true, - "minVersion": "0.8", - "package": "me.parsell.glowstonedust.mixin", - "compatibilityLevel": "JAVA_8", - "mixins": [ - ], - "client": [ - - ], - "injectors": { - "defaultRequire": 1 - } -}