diff --git a/src/main/java/de/jottyfan/gta/gdp/item/ModItems.java b/src/main/java/de/jottyfan/gta/gdp/item/ModItems.java index fba1772..7dc365f 100644 --- a/src/main/java/de/jottyfan/gta/gdp/item/ModItems.java +++ b/src/main/java/de/jottyfan/gta/gdp/item/ModItems.java @@ -19,6 +19,7 @@ import net.minecraft.util.Identifier; public class ModItems { public static final Item STUB = registerItem(Identifier.of(GTAGDP.MOD_ID, "stub"), new Item.Settings()); + public static final Item RUBYBALL = registerItem(Identifier.of(GTAGDP.MOD_ID, "rubyball"), new Item.Settings()); private static Item registerItem(Identifier identifier, Settings settings) { return Registry.register(Registries.ITEM, identifier, @@ -28,8 +29,9 @@ public class ModItems { public static void registerModItems() { GTAGDP.LOGGER.info("registering mod items for " + GTAGDP.MOD_ID); - ItemGroupEvents.modifyEntriesEvent(ItemGroups.INGREDIENTS).register(entries -> { + ItemGroupEvents.modifyEntriesEvent(ItemGroups.TOOLS).register(entries -> { entries.add(STUB); + entries.add(RUBYBALL); }); } } diff --git a/src/main/resources/assets/gtagdp/items/rubyball.json b/src/main/resources/assets/gtagdp/items/rubyball.json new file mode 100644 index 0000000..ea3ac42 --- /dev/null +++ b/src/main/resources/assets/gtagdp/items/rubyball.json @@ -0,0 +1,6 @@ +{ + "model": { + "type": "minecraft:model", + "model": "gtagdp:item/rubyball" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/gtagdp/lang/de_de.json b/src/main/resources/assets/gtagdp/lang/de_de.json index 115d08c..db8e62c 100644 --- a/src/main/resources/assets/gtagdp/lang/de_de.json +++ b/src/main/resources/assets/gtagdp/lang/de_de.json @@ -1,3 +1,4 @@ { - "item.gtagdp.stub": "Stummel" + "item.gtagdp.stub": "Stummel", + "item.gtagdp.rubyball": "Rubinball" } \ No newline at end of file diff --git a/src/main/resources/assets/gtagdp/lang/en_us.json b/src/main/resources/assets/gtagdp/lang/en_us.json index 2f0f009..88fee5f 100644 --- a/src/main/resources/assets/gtagdp/lang/en_us.json +++ b/src/main/resources/assets/gtagdp/lang/en_us.json @@ -1,3 +1,4 @@ { - "item.gtagdp.stub": "Stub" + "item.gtagdp.stub": "Stub", + "item.gtagdp.rubyball": "Ruby ball" } \ No newline at end of file diff --git a/src/main/resources/assets/gtagdp/models/item/rubyball.json b/src/main/resources/assets/gtagdp/models/item/rubyball.json new file mode 100644 index 0000000..2122e6b --- /dev/null +++ b/src/main/resources/assets/gtagdp/models/item/rubyball.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "gtagdp:item/rubyball" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/gtagdp/textures/item/rubyball.png b/src/main/resources/assets/gtagdp/textures/item/rubyball.png new file mode 100644 index 0000000..1869900 Binary files /dev/null and b/src/main/resources/assets/gtagdp/textures/item/rubyball.png differ