Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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"));
}

Guest
This topic is now closed to further replies.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.