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.

BlackEviL

Members
  • Joined

  • Last visited

  1. Dont know if that better, but same error... String name = ((ResourceLocation)Item.REGISTRY.getNameForObject(itemold)).toString(); String newName = name.replaceFirst("minecraft:", ""); itemnew.setUnlocalizedName(newName); itemnew.setRegistryName(new ResourceLocation(MFRMod.MODID, newName)); GameRegistry.addSubstitutionAlias(name, GameRegistry.Type.ITEM, itemnew); freezing at loading : and same error finished by :
  2. my code : public static void overrideItem(Item itemold, Item itemnew) { try { itemold.setCreativeTab(null); String name = ((ResourceLocation)Item.REGISTRY.getNameForObject(itemold)).toString(); System.out.println("OVERRIDE: " + name); itemnew.setUnlocalizedName(itemold.getUnlocalizedName().replaceFirst("item.", "")); GameRegistry.addSubstitutionAlias((name), GameRegistry.Type.ITEM, itemnew); } catch (Exception e) { e.printStackTrace(); } } for example : overrideItem(Items.IRON_HELMET, new ItemArmorMod(ItemArmor.ArmorMaterial.IRON, 2, EntityEquipmentSlot.HEAD)); overrideItem(Items.IRON_CHESTPLATE, new ItemArmorMod(ItemArmor.ArmorMaterial.IRON, 2, EntityEquipmentSlot.CHEST)); overrideItem(Items.IRON_LEGGINGS, new ItemArmorMod(ItemArmor.ArmorMaterial.IRON, 2, EntityEquipmentSlot.LEGS)); overrideItem(Items.IRON_BOOTS, new ItemArmorMod(ItemArmor.ArmorMaterial.IRON, 2, EntityEquipmentSlot.FEET)); error : Thank you for reply
  3. Hello, first I use forge-1.10.2-12.18.1.2010 so when I want to use addSubstitutionAlias like previous versions, game compile, but when I join a world the game freeze : the cause is a duplication of StatBase. I think is a bug of forge.

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.