Skip to content

python script to generate a shader for rendering custom tooltip styles in vanilla minecraft

License

Notifications You must be signed in to change notification settings

Godlander/tooltip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

usage:

make sure Python and Pillow is installed, and place the script in the same directory as the input tooltip texture file.

script inputs:

file: path to an image file used for the tooltip

corner: corner square side length in pixels

pad: vertical and horizontal padding when displaying ingame

script output:

the script will generate a file tooltip.glsl which should replace the existing one in the resourcepack shaders/include folder

examples:

green tooltip

python tooltip.py --file green.png --corner 3 --pad 1 1

image

ingame:

image

gold tooltip

due to the decoration on the top and bottom of the tooltip, some extra vertical padding is neccesary to make space

python tooltip.py --file gold.png --corner 7 --pad 1 3

image

ingame:

image

credits:

shader and tool commissioned by MatchaXP

About

python script to generate a shader for rendering custom tooltip styles in vanilla minecraft

Resources

License

Stars

Watchers

Forks

Releases

No releases published