Manually adding Tool tooltips / descriptions

Started by egree on

Topic category: Help with MCreator software

Last seen on 06:10, 8. Mar 2020
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.

Last seen on 03:10, 19. Feb 2022
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.

Last seen on 06:10, 8. Mar 2020
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.

Last seen on 03:10, 19. Feb 2022
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what version do you use?…
Wed, 01/22/2020 - 06:40

what version do you use?

2019.5 has it.

Last seen on 06:10, 8. Mar 2020
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.

Last seen on 03:10, 19. Feb 2022
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oof. I remenber that 1.9.1…
Thu, 01/23/2020 - 00:09

oof.

I remenber that 1.9.1 has it.

Last seen on 22:07, 25. Jan 2022
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");

 

Last seen on 03:10, 19. Feb 2022
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

Last seen on 05:21, 24. Apr 2020
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 =(

Last seen on 03:10, 19. Feb 2022
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what version r u using?
Tue, 03/24/2020 - 01:18

what version r u using?