[TUTORIAL] how to use custom colors for tooltips background

Started by Matteo Molinari on

Topic category: User side tutorials

Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[TUTORIAL] how to use custom colors for tooltips background
Tue, 08/05/2025 - 12:45 (edited)

first up, im in neoforge 1.21.4, idk if it works in other versions and im not testing it

1) create another java file in the client directory located like in the picture, call it TooltipHandler


https://imgur.com/a/test1-OkkuV5C
       

tree

2) paste this code and change my mod name into yours ex. package net.mcreator.forgottenrelics.client; ------> package net.mcreator.yourmod.client; and so on, change everywhere you see ForgottenItems or similar into your mod name

 

https://pastebin.com/embed_iframe/c5uJ30xb

 

3) customization, i left some pretty easy to understand commentary in the code


Some Results:

https://imgur.com/a/lNTXxVt

 

Edited by Matteo Molinari on Tue, 08/05/2025 - 12:45