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.

kroist

Members
  • Joined

  • Last visited

  1. Okay, I just deleted everything and rewrited, and it started working.
  2. Hey guys, So I am a total newbie to minecraft modding. And I am trying to make my first "test mod". I am making an item now. The problem is, that the item texture doesn't appear in game. I tried to find bug, but everything seems okay. I would be really grateful if somebody helps me. That's github project :https://github.com/kroist/micromod This is my items registering class public class ItemsRegister { public static Item KEY = new ItemKey("roflan"); public static void register(){ setRegister(KEY); } @SideOnly(Side.CLIENT) public static void registerRender(){ setRender(KEY); } private static void setRegister(Item item){ GameRegistry.register(item); } @SideOnly(Side.CLIENT) private static void setRender(Item item){ ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory")); } } json file { "parent": "item/generated", "textures": { "layer0": "micromod:items/roflan" } } That's the class for item public class ItemKey extends Item { public ItemKey(String name){ this.setRegistryName(name); this.setUnlocalizedName(name); this.setCreativeTab(Mod1.tabEmotes); } } CommonProxy and ClientProxy public class CommonProxy { public void preInit(FMLPreInitializationEvent event){ ItemsRegister.register(); } public void init(FMLInitializationEvent event){ } public void postInit(FMLPostInitializationEvent event){ } } public class ClientProxy extends CommonProxy { @Override public void preInit(FMLPreInitializationEvent event){ super.preInit(event); } @Override public void init(FMLInitializationEvent event){ super.init(event); ItemsRegister.registerRender(); } @Override public void postInit(FMLPostInitializationEvent event){ super.postInit(event); } }

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.