Jump to content

Problem with textures


MrHubbard

Recommended Posts

So i recently changed the mod id and name in my reference class, and changed all other relevant code to fit in the new name and id. But now no textures are showing, but it is using the Lang file, so i know it is going to the new asset folder.

 

Reference Class

package hubbard.randommachines;

public class Reference 
{
public static final String MOD_ID = "RandomMachines";
public static final String MOD_NAME = "Random Machines and more";
public static final String MOD_VERSION= "2.1.0";
public static final String CLIENT_PROXY_CLASS = "hubbard.randommachines.proxy.ClientProxy";
public static final String SERVER_PROXY_CLASS = "hubbard.randommachines.proxy.CommonProxy";
}

Bronze_Block.json Block Model Example

{
    "parent": "block/cube_all",
    "textures": {
        "all": "RandomMachines:blocks/Bronze_Block"
    }
}

 

Bronze_Block.json BlockState Example

{
    "variants": 
    {
        "normal": 
        { 
            "model": "RandomMachines:Bronze_Block" 
        }
    }
}

 

This is what registers the textures in my Block_List.class

public static void RegisterRender(Block block)
{
	Item item = Item.getItemFromBlock(block);
	Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5), "inventory"));
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.