Reputation: 61
I have tried to change the name of the item and it doesn't work
o ya my lang file doesn't work too
error:
Exception loading model for variant rpc:ingot_titinium#inventroy for item "rpc:ingot_titinium", normal location exception
public void registerModel(Item item, int metadata)
{
ModelLoader.setCustomModelResourceLocation(item, metadata, new ModelResourceLocation(item.getRegistryName(), "inventory"));
}
edit: folder structure and ref code
Upvotes: 0
Views: 1070
Reputation: 61
if you're using intellij idea, add at the bottom of your build.gradle file:
sourceSets { main { output.resourcesDir = output.classesDir } }
Upvotes: 2