#Custom UI

13 messages · Page 1 of 1 (latest)

wicked prairie
#

You might want to take a look at fancy menu, it's pretty cool

wicked prairie
#

Uh, I'm not sure, can't you change those with a texture pack anyways though?

light basin
#

OptiGUI can do custom GUI textures, but there is no released mod that can change the location of GUI slots.

A while back, I experimented with that, and did manage to get client-side slot hitbox and color customization: #showcase-old message

#showcase-old message

Never got around to finishing it though

wicked prairie
#

oooh, I see now

#

np!

light basin
#

It's not currently in a proper state to be usable, but here is the (very WIP) code: https://github.com/Andrew6rant/Slot-Helper
I built it before I really knew how to properly write API's, and it is not super performance-friendly or intuitive to use. I'm planning on rewriting it entirely in the future.
Here is the container.blast_furnace.json used in my showcase:

{
  "slot_helper": {
    "0": {
      "coords": [
        [0, 0],
        [0, 3],
        [-3, 3],
        [-3, 7],
        [0, 7],
        [0, 16],
        [5, 16],
        [5, 20],
        [16, 20],
        [16, 16],
        [13, 16],
        [13, 9],
        [19, 9],
        [19, 3],
        [9, 3],
        [9, 0]
      ],
      "color": "80FFFFFF"
    },
    "1": {
      "coords": [
        [-10, 0],
        [-10, 16],
        [26, 16],
        [26, 0]
      ],
      "color": "805A62CA"
    },
    "2": {
      "coords": [
        [-12, -26],
        [-12, -2],
        [12, -2],
        [12, -26]
      ],
      "color": "DC66130D"
    }
  }
}
GitHub

Client-side library mod to make custom slot rendering and hitboxes easier - GitHub - Andrew6rant/Slot-Helper: Client-side library mod to make custom slot rendering and hitboxes easier

light basin
#

Sometime before the next year, I'll rewrite this mod to actually work nicely

light basin
#

Thank you!

#

Are you sure you want it? I haven't touched the mod in 8 months - it'll only work in 1.19 (not 1.19.1+).
The JSON format is also extremely unintuitive, since you need to know whatever inventory's translation key and internal slot IDs to use it.
I also haven't made a proper resource reload, so you need to restart the game to show any changes unless you are running Minecraft in debug mode.
But the most glaring issue is that there is no custom item rendering yet, so while you can move slot hitboxes, the items in those slots render in their default inventory positions.

light basin
#

I will rewrite this from the ground up entirely in the future. It will use a much better configuration system that will be incompatible with this current implementation.

kindred pivot
#

This reminds me; I had the idea for a mod a while back. It would basically be a system which expands on map-making-like areas of vanilla which are currently lacking. It would have a polymer server-side only base version, but clients with the mod installed would be able to join servers which run the mod to experience things which are just not possible with normal map-making tools today. Fully custom GUIs, client-interpreted scripts for modifying for example rendering, custom inventories, blocks etc. Essentially a mod for playing with custom contents without installing mods. The mod itself would also provide a simpler API to access these functionalities than what Java does.