Jump to content

DreamingInsanity

Members
  • Posts

    2
  • Joined

  • Last visited

DreamingInsanity's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Thanks for the reply I will make the changes needed! Dream.
  2. I can tell this has been asked a lot, and yes before you tell me I did look at the common problems and issues section but it didnt help. FYI: This is my first mod, so I am just following a tutorial. I am trying to register my item, yet whenever I run the game it crashes on the 2/7 stage. public class CustomItems { public static Item CustomItem; public static void preInit() { CustomItem = new Item().setUnlocalizedName("custom_item").setCreativeTab(CircleMod.extraTab); registerItems(); } public static void registerItems() { ForgeRegistries.ITEMS.register(CustomItem); } public static void registerRenders() { registerRender(CustomItem); } public static void registerRender(Item item) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(CircleMod.MODID + ":" + item.getUnlocalizedName().substring(5), "inventory")); } } That is roughly what the tutorial say to use, although it has minor tweaks because the tutorial is for 1.10 and i'm in 1.12. I get the error: Can't use a null-name for the registry, object net.minecraft.item.Item@166fa7ab. I did a fair amount of research into it but I couldn't find anything that would help. My full log: https://pastebin.com/0jifnRW9 I hope this isn't "spam"! Thanks in advance, Dream.
×
×
  • Create New...

Important Information

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