Troy van Sleeuwen
Troy van Sleeuwen

Reputation: 61

problem loading model/texture of item forge 1.12.2 (intellij idea)

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

https://pastebin.com/WnNGPAGZ


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

Answers (1)

Troy van Sleeuwen
Troy van Sleeuwen

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

Related Questions