Using your own image
Createplugins/LodeEntities/gui/ (the plugin doesn’t make it for you), drop a .png in it and reload.
- Name it
category.pngto replace the bundled default. - Name it anything else to add one, then point
menu-textureat it.
lodeentities:gui.
Size the image the way you want it drawn: with height: -1 it renders at its own pixel size, one texture pixel per GUI pixel. A 6-row chest window is 176×222 px; the bundled default is 182×140, a frame over the chest half of the window.
Options
All undergui-overlay in config.yml:
Getting the position right
Two numbers do the work, and both have a meaningful zero:ascent: 13lines the glyph’s top edge up with the chest window’s. The bundled art sits 5px above that, which is where18comes from.offset-x: -8sits flush with the window’s left edge, because the title starts 8px inside the GUI. The bundled art has 3px of its own margin, hence-11.
height: 140 is the bundled category.png’s own height, so it draws one texture pixel per GUI pixel. Once you add images of different sizes, -1 is usually what you want.
The label never drifts with the image: the rewind space is derived from offset-x, so the two always cancel out.
Button textures
The overlay paints the window; buttons are items, which a font glyph can’t draw, so they go through a separate route. Withitem-icons: true, every button in the menu, the editor, the gear screen and the anvil prompt is repainted from plugins/LodeEntities/gui/items/<name>.png. All of them are bundled, so the buttons are textured on a plain install; drop your own file of the same name to replace one.
Each button is a plain vanilla item with a custom model data number of its own:
Spawn eggs and the gear screen’s worn items show the real item, so they are never repainted. Buttons without art of their own carry
777, which falls through to the item’s ordinary model.
- Each button owns its number, because materials repeat: Search and Display name are both name tags, so a shared number would repaint both.
- Size icons 16x16 or 32x32. A sprite that isn’t a power-of-two square renders as the missing-texture checkerboard, so other sizes are padded (never stretched) up to the next power of two, with a console line saying so.
gui/items/is a subfolder ofgui/, and only files directly ingui/become window overlays. Puttingcreatenew.pngingui/itself would bake it as a title glyph instead.
Players without the pack
A client that has not received the resource pack cannot see the glyph and renders a missing-character box in front of the title. The title text itself stays perfectly readable either way. If your players do not receive a pack at all, setenabled: false and the menu is plain text with no stray box.