Posted August 28, 20187 yr My public void addInformation method isn't working, and it's not adding any lore to my item. Here's the code in two different pastebins: Method: https://pastebin.com/wMNSDrhp Full Class: https://pastebin.com/Eitecz3D Any help would be nice, and I'm using Eclipse. (No errors either)
August 28, 20187 yr 8 minutes ago, Synoot said: Here's the code in two different pastebins: Method: https://pastebin.com/wMNSDrhp Full Class: https://pastebin.com/Eitecz3D Both of these links are not working for me, could you please post the code in this post using the code button looks like this <> 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.
August 28, 20187 yr Author Full class Method It should work now, i didn't know that the fourms don't auto format links I also didn't post the full code in this... post because it's pretty long Edited August 28, 20187 yr by Synoot
August 28, 20187 yr Author Here's my GitHub, incase anyone needs it aswell: lol regular links dont work
August 28, 20187 yr 8 minutes ago, Synoot said: Here's my GitHub, incase anyone needs it aswell: lol regular links dont work What version of Minecraft are you modding for? 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.
August 28, 20187 yr Author Just now, Animefan8888 said: What version of Minecraft are you modding for? MC 1.12.2
August 28, 20187 yr Just now, Synoot said: MC 1.12.2 Eclipse should be yelling at you about your @Override annotation. You don't have the proper method signature. addInformation(ItemStack stack, World worldIn, List<String> tooltip, ITooltipFlag flagIn) 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.
August 28, 20187 yr Author Just now, Animefan8888 said: Eclipse should be yelling at you about your @Override annotation. You don't have the proper method signature. addInformation(ItemStack stack, World worldIn, List<String> tooltip, ITooltipFlag flagIn) hmm... ok, I'll try that
August 28, 20187 yr Author 19 minutes ago, Animefan8888 said: Eclipse should be yelling at you about your @Override annotation. You don't have the proper method signature. addInformation(ItemStack stack, World worldIn, List<String> tooltip, ITooltipFlag flagIn) Eclipse was yelling at me to change it to void, or change it to a constructor ItemTape(ItemStack stack, World worldIn, List<String> tooltip, ITooltipFlag flagIn) { tooltip.add("Test"); } Honest, I probably did something wrong.
August 28, 20187 yr 3 minutes ago, Synoot said: Eclipse was yelling at me to change it to void, or change it to a constructor It is a void method not a constructor. I was just trying to give you the parameters. 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.
August 28, 20187 yr Author Still, the tooltip wasn't showing, but I'm not sure if i need to add it to main to initalize it, I've been looking and nothing's come up.
August 28, 20187 yr 1 minute ago, Synoot said: Still, the tooltip wasn't showing, but I'm not sure if i need to add it to main to initalize it, I've been looking and nothing's come up. I'm not sure you understood me this is the full method. public void addInformation(ItemStack stack, World worldIn, List<String> tooltip, ITooltipFlag flagIn) {} 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.
August 28, 20187 yr Author It works now, for some reason there were some bits of text that I couldn't see in Eclipse. Thanks for the help. Edited August 28, 20187 yr by Synoot
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.