Hello
I just started learning minecraft modding and I have already found a problem that I canno't fix. I have been trying for several hours to fix it, but I just can't get it working.
The problem is that I have a basic item. In this case a Ruby Hoe. It does show up in my inventory, the name based on the lang file is working the only problem is that it's texture doesn't show up.
(I have added multiple tools befor it and they worked fine)
I hope you guys can help me out. <3
Codes:
ToolHoe.java:
public class ToolHoe extends ItemHoe implements IHasModel{
public ToolHoe(String name, ToolMaterial material) {
super(material);
setUnlocalizedName(name);
setRegistryName(name);
setCreativeTab(CreativeTabs.TOOLS);
ModItems.ITEMS.add(this);
}
@Override
public void registerModels() {
Main.proxy.registerItemRenderer(this, 0, "inventory");
}
}
ModItems.java:
public class ModItems{
public static final List<Item> ITEMS = new ArrayList<Item>();
//Materials
public static final ToolMaterial MATERIAL_RUBY = EnumHelper.addToolMaterial("material_ruby", 3, 2500, 15.0f, 10.0f, 22);
//Items
public static final Item RUBY = new ItemBaseMaterial("ruby");
public static final Item OBSIDIAN_INGOT = new ItemBaseMaterial("obsidian_ingot");
//Tools
public static final ItemSword RUBY_SWORD = new ToolSword("ruby_sword", MATERIAL_RUBY);
public static final ItemSpade RUBY_SPADE = new ToolSpade("ruby_spade", MATERIAL_RUBY);
public static final ItemPickaxe RUBY_PICKAXE = new ToolPickaxe("ruby_pickaxe", MATERIAL_RUBY);
public static final ItemHoe RUBY_HOE = new ToolHoe("ruby_hoe", MATERIAL_RUBY);
//public static final ItemAxe RUBY_AXE = new ToolAxe("ruby_axe", MATERIAL_RUBY);
}
ruby_hoe.json
{
"parent": "item/handheld",
"textures": {
"layer0": "fm:items/ruby_hoe"
}
}
The texture png is called: ruby_hoe.png and it's in the right folder.
PS.: The Axe is commented because it crashes the launcher. If you have any idea why I would be happy not to open another topic (same file code only the tools are not the same and the ItemHoe -> ItemSword).
Thank you in advance!
Benji