This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
6
src/main/resources/assets/gtamfmd/items/ruby.json
Normal file
6
src/main/resources/assets/gtamfmd/items/ruby.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "gtamfmd:item/ruby"
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
{
|
||||
"item.gtamfmd.stub": "Stummel"
|
||||
"item.gtamfmd.stub": "Stummel",
|
||||
"item.gtamfmd.ruby": "Rubin"
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
{
|
||||
"item.gtamfmd.stub": "Stub"
|
||||
"item.gtamfmd.stub": "Stub",
|
||||
"item.gtamfmd.ruby": "Ruby"
|
||||
}
|
||||
6
src/main/resources/assets/gtamfmd/models/item/ruby.json
Normal file
6
src/main/resources/assets/gtamfmd/models/item/ruby.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "gtamfmd:item/ruby"
|
||||
}
|
||||
}
|
||||
BIN
src/main/resources/assets/gtamfmd/textures/item/ruby.png
Normal file
BIN
src/main/resources/assets/gtamfmd/textures/item/ruby.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 470 B |
Reference in New Issue
Block a user