Change Textures

How to change the health bar textures with Vitalo.

If you wish to change the textures, head over to the resource pack and find this folder. It is the default location for all health bar images.

assets\minecraft\textures\custom\health_bars\health_bar_1\*

To change out the textures, just replace the files inside, making sure that the names and image sizes still match, with your own textures. Remember, the size of the image is important, you need to make sure that the size of the image is the same, or else it wont display correctly.

Changing Texture Size

If you wish to use a different size, you will need to adjust the default.json found at:

assets\minecraft\font\default.json

The default unicode replacement JSON is attached below. If you wish to change out the sizing, then change the height value to be the height of the file, and then adjust the as needed. If you change any of the unicode values, make sure to change it in the config as well.

default.json
{"type": "bitmap", "file": "minecraft:custom/health_bars/health_bar_1/health_pixel.png", "ascent": 13, "height": 20, "chars": ["\uE000"]},
{"type": "bitmap", "file": "minecraft:custom/health_bars/health_bar_1/no_health_pixel.png", "ascent": 13, "height": 20, "chars": ["\uE001"]},
{"type": "bitmap", "file": "minecraft:custom/health_bars/health_bar_1/damage_health.png", "ascent": 13, "height": 20, "chars": ["\uE002"]},
{"type": "bitmap", "file": "minecraft:custom/health_bars/health_bar_1/frame.png", "ascent": 13, "height": 20, "chars": ["\uE003"]},
{"type": "bitmap", "file": "minecraft:custom/health_bars/health_bar_1/flashing_frame.png", "ascent": 13, "height": 20, "chars": ["\uE004"]},

If you adjusted the texture size, you will also need to change the spacing. Within Vitalo, there are "negative" spaces, which move the images closer to each other, as by default Minecraft puts a space in between. If the texture size has been changed, you will need to also the spacing as well. Spaces are defined like the following, with the height being the width of the space in pixels.

default.json
{"type": "bitmap", "file": "minecraft:custom/spacing/space_split.png", "ascent": -32768, "height": -6, "chars": ["\uF012"]},

Do not change the images or the ascent of spaces, as it requires a special value for both to work properly. You should also not need to change the unicode characters of this either. However, if you do, make sure to change them in the config as well.

Last updated