Posted February 6, 20205 yr Hi! I'm trying to get back into Minecraft modding after many years, and after following Cadiboo's tutorial I'm running into a crash whenever I try to test my mod in a world. Here's the crash report: https://pastebin.com/6zyfS9bj The mod I have right now is very barebones, only two files: https://pastebin.com/j8cNskDW and https://pastebin.com/3QTChgVJ. My programming background is primarily in C# and Javascript, so if this is a simple issue I'm sorry to waste your time, but any help is really appreciated.
February 6, 20205 yr By the way, I don't know why you typed out two helper functions instead of doing this: event.getRegistry().registerAll( new Item(new Item.Properties()).setRegistryName(new ResourceLocation(CraftOfTheWildMod.MODID,"travelers_sword")) ); If you really really wanted to avoid doing setRegistryName and new Resource location a bunch, then only one helper: return entry.setRegistryName(new ResourceLocation(CraftOfTheWildMod.MODID, name)); Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
February 6, 20205 yr Author I could be wrong, but I think the logic behind it was to have the two helpers be usable for multiple types of registries to reduce clutter in the future, hence the use of Generics. (I'm not sure how to reply on this forum so I hope you see this Draco lol)
February 6, 20205 yr The only reason you'd want two methods is if you plan to pass strings sometimes and resource locations other times, but you aren't planning on doing that, are you? (In terms of different kinds of registries, its already a generic method that supports everything you need) Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
February 6, 20205 yr Author I don't think I am, that's a good point ? I'll change it in that case. I appreciate the tip! Do you have any idea where my crash is coming from, however? I'd love to learn more about Forge modding but this brought me to a standstill.
February 6, 20205 yr I don't see anything. Did you set up your toml file? Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
February 6, 20205 yr Author To the best of my knowledge I did. All I changed are modId, version, and dependencies.examplemod to the name of my mod. https://pastebin.com/CBPREBUn
February 6, 20205 yr Author That worked! Thanks so much diesie! Was this just an issue with the specific version of 1.15.1 that I was using?
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.