added ruby item
Some checks failed
build / build (push) Has been cancelled

This commit is contained in:
Jottyfan
2025-09-30 21:30:19 +02:00
parent b2158b868a
commit 340900ac16
6 changed files with 22 additions and 3 deletions

View File

@@ -15,6 +15,8 @@ public class ModItems {
public static final Item STUB = registerItem(
Identifier.of(Gtamfmd.MOD_ID, "stub"), new Item.Settings());
public static final Item RUBY = registerItem(
Identifier.of(Gtamfmd.MOD_ID, "ruby"), new Item.Settings());
private static Item registerItem(Identifier identifier, Settings settings) {
RegistryKey<Item> registrykey = RegistryKey.of(RegistryKeys.ITEM, identifier);
@@ -26,6 +28,9 @@ public class ModItems {
Gtamfmd.LOGGER.info("registering mod items for " + Gtamfmd.MOD_ID);
ItemGroupEvents.modifyEntriesEvent(ItemGroups.TOOLS)
.register(entries -> { entries.add(STUB); });
.register(entries -> {
entries.add(STUB);
entries.add(RUBY);
});
}
}

View File

@@ -0,0 +1,6 @@
{
"model": {
"type": "minecraft:model",
"model": "gtamfmd:item/ruby"
}
}

View File

@@ -1,3 +1,4 @@
{
"item.gtamfmd.stub": "Stummel"
"item.gtamfmd.stub": "Stummel",
"item.gtamfmd.ruby": "Rubin"
}

View File

@@ -1,3 +1,4 @@
{
"item.gtamfmd.stub": "Stub"
"item.gtamfmd.stub": "Stub",
"item.gtamfmd.ruby": "Ruby"
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "gtamfmd:item/ruby"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 470 B