A simple item tooltip mod for Cosmic Reach (Puzzle Loader).
Written very poorly because I have no experience with this kind of thing, so feel free to make fun of it.
- Tooltips when hovering over items in catalog and inventory/containers
- Press alt while hovering to see advanced info
- WAILA style display that shows the name and info of the block you're looking at
Puzzle Loader only
If you would like to add custom tooltips, add this to the dependencies section of your build.gradle:
mod files('libs/CosmicTooltips-1.2.4-bundle.jar')You will need to place the jar in the libs folder in the root of your project.
- Create a new class that implements
ITooltipItemorITooltipBlockthen implements it's methods. - Override at
getItemIDfor items orgetBlockIDfor blocks, method will let CosmicTooltip to know what item this additional Text go to. - Override at
getTooltipText(Stack stack)method will allow return text of whatever you want.
- Create a new class that implements
ToolTipFactory. - Create your class constructor.
- In your constructor add
addTooltip(new YOUR CLASS)in it, where YOUR CLASS has to implementsITooltipItemorITooltipBlock; - In your mod
puzzle.mod.jsonunderentrypointsadd"tooltip": []. - Now, we need to add the path of the class that implements
ToolTipFactoryto"tooltip": [], and now run your mod!