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
ITooltipItem
orITooltipBlock
then implements it's methods. - Override at
getItemID
for items orgetBlockID
for 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 implementsITooltipItem
orITooltipBlock
; - In your mod
puzzle.mod.json
underentrypoints
add"tooltip": []
. - Now, we need to add the path of the class that implements
ToolTipFactory
to"tooltip": []
, and now run your mod!