Manually adding Tool tooltips / descriptions

Started by egree on

Topic category: Help with MCreator software

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Manually adding Tool tooltips / descriptions

I know that adding tool descriptions is a feature that might get added in the future but I was wondering if there is a current up-to-date way to manually add tool descriptions in the code. I saw a method from 2017 but it's giving me compiling errors. Any images would be insanely helpful as well.

Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can already add them,…
Wed, 01/22/2020 - 01:40

you can already add them, and it supports minecraft color code too.

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I see that for regular items…
Wed, 01/22/2020 - 06:23

I see that for regular items but not for tools.

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
2019.5. Here's a picture -…
Wed, 01/22/2020 - 18:11

2019.5. Here's a picture - https://i.imgur.com/co0ERfM.png

You can see there's no description area like there is for standard items.

Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try blocking hte mod element…
Thu, 02/20/2020 - 00:25

Try blocking hte mod element so mcreator don't revert it then add this imports there is no need to do so if they are already there

----------------------------------------------

          import net.minecraft.world.World;
          import net.minecraft.item.ItemStack;
          import net.minecraft.client.util.ITooltipFlag;

          import java.util.List;

----------------------------------------------

then add the following lines
----------------------------------------------

           @SideOnly(Side.CLIENT)
           @Override
           public void addInformation(ItemStack itemstack, World world, List<String> list, ITooltipFlag flag) {
           super.addInformation(itemstack, world, list, flag);
           list.add("YOUR TEXT HERE");

 

Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No you don't need that the…
Thu, 02/20/2020 - 01:25

No you don't need that the tool description is on the second page

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Don't work for me =(
Mon, 03/23/2020 - 21:40

Don't work for me =(