Posted September 30, 20186 yr Error Log: https://pastebin.com/PjKwnPvg ModItems: https://pastebin.com/ZfeJvZyz The error log says on line 51 of ModItems there is an error. I have no idea what is wrong, however. I think it has to do something with when the mod registers the armor models. This applies to lines 51-54. I used MCJty's tutorials to learn modding, but he has not provided an armor tutorial, so any help would be much appreciated :)
September 30, 20186 yr Non broken links: https://pastebin.com/PjKwnPvg https://pastebin.com/ZfeJvZyz I don’t see any problems with your code other than Mod Ids need to be lowercase. Also you should be able to just add @ObjectHolder to your ModItems class & name your items the same names as the variables. Also, you haven’t shown where your method is being called from, and please use a GitHub repository for posting code. Pastebin & GitHubGist are fine for logs but they don’t really work for code. Edited September 30, 20186 yr by Cadiboo About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
September 30, 20186 yr 1) Code Style#2 - A common proxy doesn’t make sense. Proxies hold code that runs on both sides BUT DOES DIFFERENT THINGS. If the code does the same thing on both sides (common code) it shouldn’t be in a proxy. Put it literally anywhere else 2) Please reorganise your packages into the way vanilla does it 3) 26 minutes ago, Cadiboo said: Mod Ids need to be lowercase You mod Id is “Boundless”. 4) 28 minutes ago, Cadiboo said: just add @ObjectHolder to your ModItems class & name your items the same names as the variables. About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
September 30, 20186 yr 1) Yeah, makes sense I don't know why he did it like that 2) ¯\_(ツ)_/¯ 3) Our modid is "boundless" 4) For example @GameRegistry.ObjectHolder("boundless:leather_sword") public static LeatherSword leather_sword; Edited September 30, 20186 yr by Synoot
September 30, 20186 yr 11 minutes ago, Synoot said: 1) Yeah, makes sense I don't know why he did it like that 2) ¯\_(ツ)_/¯ 3) Our modid is "boundless" 4) For example @GameRegistry.ObjectHolder("boundless:leather_sword") public static LeatherSword leather_sword; Uh... About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
September 30, 20186 yr Just now, Cadiboo said: Uh... Try doing MOD_ID+":"+"name" next time About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
September 30, 20186 yr Author Note, that I said in my original post, that I used McJty's tutorials to learn modding, this is generally how he did it in those tutorials.
September 30, 20186 yr 1 minute ago, InternalCow said: Note, that I said in my original post, that I used McJty's tutorials to learn modding, this is generally how he did it in those tutorials. Just because that's how they did it does not mean it is correct. It simply doesn't crash. 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.
September 30, 20186 yr Author 2 minutes ago, Draco18s said: Just because that's how they did it does not mean it is correct. It simply doesn't crash. Yes, but the thing is, he doesn't have any armor tutorials etc. I had to use other tutorials and bend it to the way I learned (McJty). Also, it being not correct, the only issue I have is with the Armor, everything else works. I even got ore generation to work. Edited September 30, 20186 yr by InternalCow Fixed things.
September 30, 20186 yr 1 minute ago, InternalCow said: everything else works. for now. That said, the "code style" type issues are ones that are just bad practice, not that they cause the game to break. In some cases it makes things more complicated than they need to be (IHasModel) and in some cases simplifies something that shouldn't be (Proxies). 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.
September 30, 20186 yr Author 28 minutes ago, Draco18s said: for now. That said, the "code style" type issues are ones that are just bad practice, not that they cause the game to break. In some cases it makes things more complicated than they need to be (IHasModel) and in some cases simplifies something that shouldn't be (Proxies). I understand that IHasModel would work, possibly easier. I don't want to restart because I already have this all done. So, instead of making me restart my mod, you, or someone else could help me find an answer. And if there is none, i'll restart it. Edited September 30, 20186 yr by InternalCow Fixed Typo
September 30, 20186 yr 50 minutes ago, InternalCow said: someone else could help me find an answer. I believe if you are using @ObjectHolder the fields need to be public static final and equal to null. And the string passed into the annotations needs to match the registry name of the object. Also it seems that it is erroring on your Lunarium Sword because the field is null. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
September 30, 20186 yr Author 14 minutes ago, Animefan8888 said: I believe if you are using @ObjectHolder the fields need to be public static final and equal to null. And the string passed into the annotations needs to match the registry name of the object. Also it seems that it is erroring on your Lunarium Sword because the field is null. Can you show me some example code, what do you mean by make it public static? (I know what it means, but where would I put it) . EDIT: I did all that you said, and I end up getting the same errors at lines 51-54. I think it has to do with when it registers the models. Edited September 30, 20186 yr by InternalCow Fixed things.
September 30, 20186 yr 1 hour ago, InternalCow said: I think it has to do with when it registers the models. Of course it does the error is saying that your lunarium_sword field is null. Are you actually registering an instance of LunariumSword? VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
September 30, 20186 yr Author 1 minute ago, Animefan8888 said: Of course it does the error is saying that your lunarium_sword field is null. Are you actually registering an instance of LunariumSword? Hmm, okay let me check, I thought the error was with the armor, however.
September 30, 20186 yr 2 minutes ago, InternalCow said: Hmm, okay let me check, I thought the error was with the armor, however. Sorry I was off a line. It seems like your lunarium_helmet is null. Are you sure you registered an instance that has that registry name. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
September 30, 20186 yr Author 1 minute ago, Animefan8888 said: Sorry I was off a line. It seems like your lunarium_helmet is null. Are you sure you registered an instance that has that registry name. I've tested, and if I remove the lunarium_helmet, the same happens to the chestplate etc. So it has to be something with all of them.
September 30, 20186 yr @InternalCow You never register an instance of LunariumHelmet VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
September 30, 20186 yr Author Just now, Animefan8888 said: @InternalCow You never register an instance of LunariumHelmet Yeah, just realized that, fixing it now!
September 30, 20186 yr Author Okay, your fix fixed it. I must've of accidentally deleted the helmet in the process! Thanks!
September 30, 20186 yr 7 minutes ago, InternalCow said: I've tested, and if I remove the lunarium_helmet, the same happens to the chestplate etc. So it has to be something with all of them. Removed. Edited September 30, 20186 yr by Animefan8888 Not needed. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
September 30, 20186 yr Author 1 minute ago, Animefan8888 said: Could you also post the debug.log, there may be some errors printed out in there. I fixed it. (It was the helmet, read my comment above yours) Edited September 30, 20186 yr by InternalCow
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.