Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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)

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.

  • 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 by Synoot

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.

  • Author
Just now, Animefan8888 said:

What version of Minecraft are you modding for?

MC 1.12.2

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.

  • 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

  • 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.

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.

  • 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.

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.

  • 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 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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.