From 047a7f3e72f64bb85844be3adb1b06f1b4921151 Mon Sep 17 00:00:00 2001 From: Justin Parsell Date: Sat, 23 Oct 2021 23:21:02 -0400 Subject: [PATCH] addition of textures and lang --- .../me/parsell/glowstonewire/GlowstoneWire.java | 5 +++-- .../me/parsell/glowstonewire/core/glowItems.java | 10 +++++++--- .../assets/glowstonewire/lang/en_us.json | 4 ++++ .../glowstonewire/models/item/glowstone_dust.json | 6 ++++++ .../textures/item/glowstone_dust.png | Bin 0 -> 191 bytes src/main/resources/fabric.mod.json | 1 - src/main/resources/glowstonewire.mixins.json | 14 -------------- 7 files changed, 20 insertions(+), 20 deletions(-) create mode 100644 src/main/resources/assets/glowstonewire/lang/en_us.json create mode 100644 src/main/resources/assets/glowstonewire/models/item/glowstone_dust.json create mode 100644 src/main/resources/assets/glowstonewire/textures/item/glowstone_dust.png delete mode 100644 src/main/resources/glowstonewire.mixins.json 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 0000000000000000000000000000000000000000..24181098ad8dc82e9dadd2caeb7925aa3eb677bb GIT binary patch literal 191 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`ZJsWUAr_~T6C~~}IOqJ)o@4Ub zpI^21|NsB}$izGj4`z?Y=e3Iue3|Cd{y%V<(f^Z|c#2p%e5WWHoHgiq!!$uA&N-pZ zZJXp0#v|@&-&pZx?tMr0vf`W(8GRY%tnQmq*%egP`HfA>6