Posted May 3, 20232 yr I am in the works of porting my mod from MC 1.16.5 to MC 1.18.2 and I am having a hard time figuring out why Minecraft is crashing on me. I think it might be some kind of registration issue based on some research I did myself on it. My mod's repository The crash report I'm getting Edited May 3, 20232 yr by NetherNoah777 grammar
May 3, 20232 yr Somewhere you are creating a block but not registering it. The logs/debug.log might have more information? Edited May 3, 20232 yr by warjort Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post.
May 3, 20232 yr Author I figured out what the issue was. With the help of the Forge Discord community, I figured that in one of my registry methods, I was registering blocks and items wrong. This: public static <B extends Block> RegistryObject<B> regBlockItem(String name, Supplier<B> block, CreativeModeTab tab) { var toReturn = BLOCKS.register(name, block); ITEMS.register(name, () -> new BlockItem(block.get(), new Item.Properties().tab(tab))); return toReturn; } Should have been this: public static <B extends Block> RegistryObject<B> regBlockItem(String name, Supplier<B> block, CreativeModeTab tab) { var toReturn = BLOCKS.register(name, block); ITEMS.register(name, () -> new BlockItem(toReturn.get(), new Item.Properties().tab(tab))); return toReturn; }
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.