Jump to content

BlackEviL

Members
  • Posts

    3
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

BlackEviL's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  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.
×
×
  • Create New...

Important Information

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