make sure Python and Pillow is installed, and place the script in the same directory as the input tooltip texture file.
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
the script will generate a file tooltip.glsl
which should replace the existing one in the resourcepack shaders/include
folder
python tooltip.py --file green.png --corner 3 --pad 1 1
ingame:
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
ingame:
shader and tool commissioned by MatchaXP