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