#Chest UI: The Expansion

1 messages · Page 1 of 1 (latest)

sly dove
#

The chest UI has been updated! Data value blocks & items are now supported, with highlights being:

  • Cobblestone walls
  • Prismarine blocks
  • Skulls
  • Flowers
  • Potions
  • Bed items
  • Wood blocks
  • ...and more! Check the typeIds.js file for a full list of supported data value item IDs.

More sizes have also been added! The UI now supports '5', '9', '18', '36', and '45' as valid sizes. '27' & '54' can also be used as sizes, but the old definitions are also allowed and work as before.

Pattern function update- The data object has been removed, and the whole thing is just defined in one object. iconPath has been renamed to texture for it, as well.

Breaking change: A prefix of minecraft: must be added to your item texture typeIDs now, as support for that has been removed.

gilded canyon
#

The best chest ui available

#

The chest ui had an opening animation as far as I can remember can you somehow disable that?

#

Bcs it didn’t look that great when switching from chest gui to chest gui

#

Im not 100% sure tho

#

Its been a long time since I last used it

sly dove
#

idk how to disable the pop-up & close anims lol

harsh cove
#

“There are no stupid questions, only stupid people who don't ask.”

#

What is a Chest UI?

sly dove
#

Retextured ActionFormData for scripts that appears like a chest

harsh cove
#

Oh I see, that’s very cool

rapid wing
reef yew
#

sick

sly dove
gilded canyon
fair wing
sly dove
#

Yea

fair wing
#

i test that later

merry oasis
merry oasis
# sly dove idk how to disable the pop-up & close anims lol

You have to put these in "[email protected]_screen"

"$screen_animations": [
            "@server_form.exit_wait"
        ],
        "$background_animations": [
            "@server_form.exit_wait"
        ],
        "force_render_below": true,
        "low_frequency_rendering": true,
        "load_screen_immediately": true,
        "render_only_when_topmost": false,
        "render_game_behind": true,
"exit_wait": {
        "anim_type": "offset",
        "easing": "linear",
        "duration": 0.08,
        "from": [
            0,
            0
        ],
        "to": [
            0,
            0
        ],
        "play_event": "screen.exit_pop",
        "end_event": "screen.exit_end"
    },
#

also if you want to give like a black background effect like real chests you can add these

#

in controls

sly dove
sly dove
cobalt apex
sly dove
#

Kinda hard to set up, as scripts don't come with data values

#

But they're there if ya need 'em

cobalt apex
#

so how do you implement it

sly dove
#

¯_(ツ)_/¯

cobalt apex
merry oasis
#

like this one

#

and for some reason this happened

#

all of the items work except the apple when adding custom items

sly dove
#

You need to shift all the IDs if you add custom items to the file

sly dove
scarlet egret
sly dove
#

Just data value items

#

And more slot options

cobalt apex
#

I have a ts script for it

merry oasis
#

that would be really helpful

placid heath
#

put that variable in your forms.js

#

works for me

sly dove
#

If you’re using non-exp items, that will not work, as non-exp items do not affect vanilla IDs

placid heath
#

yeah true

hallow tangle
#

@sly dove
I have updated the chestgui extension which you have fixed in the last 1 month, but in the show method there seems to be an error

hallow tangle
#

I don't understand at all what makes the texture look like this, is there something wrong with the file?

gilded canyon
hallow tangle
#

I compared it with a different old ID, the old one was Iron Sword 309

gilded canyon
#

Then maybe the ids aren’t updated yet

hallow tangle
#

is correct, just need to set the value 1 in the item variable

sly dove
#

No custom items?

hallow tangle
#

no

sly dove
#

I'll double-check the typeIds tonight then

cobalt apex
#

@sly dove

    ['minecraft:respawn_anchor_charge_0', -272],
    ['minecraft:respawn_anchor_charge_1', -272 + (1 / 65536)],
    ['minecraft:respawn_anchor_charge_2', -272 + (2 / 65536)],
    ['minecraft:respawn_anchor_charge_3', -272 + (3 / 65536)],
    ['minecraft:respawn_anchor_charge_4', -272 + (4 / 65536)],

So why do you add some arbatray decimal value. like why are you using 65536?

sly dove
cobalt apex
#

yours is outdated

sly dove
#

Idk, mine matches with the current one

cobalt apex
sly dove
#

It's not..? It's there.

#

Enchanted is 260, regular is 259.

#

I'm on 1.20.70 right now, updating the IDs.

cobalt apex
sly dove
cobalt apex
hallow tangle
atomic granite
#

herobrine how would i display the inv in the bottom

visual sinew
visual sinew
visual sinew
#

Thanks

visual sinew
# sly dove

What is the function of the Form.d.ts file?

visual sinew
#

@sly dove How do I add custom items to UI?

sharp jasper
sly dove
sharp jasper
sharp jasper
#

also a new error when I was testing my addon was this:

#

this occured

sharp jasper
sly dove
#

Never seen that error before…
Is it just that the IDs aren’t lining up for some items?

sly dove
#

What’s the issue you’re having with the pack?

sharp jasper
sly dove
#

Are you using the most recent one on the GitHub?

sharp jasper
#

yes

sly dove
#

Are you using any other ui packs?

sharp jasper
#

nope just my addon.

sly dove
#

Weird

#

I’ll test some stuff in a few minutes here

sharp jasper
#

k

sharp jasper
sly dove
sharp jasper
#

imma try agn and see

sharp jasper
#

I added a comma

#

in

#

_ui_defs.json

sharp jasper
sly dove
#

There’s an alternative branch on the GitHub with no inventory component

sharp jasper
sharp jasper
sharp jasper
#

ty

rancid tinsel
#

someone fix it its broken again

restive cairn
#

@sly dove I saw in the readme there was something about the typeId's needing to be shifted, I've just looked on the Minecraft wiki and the ID for a diamond is less than the one packaged in the code! Do I need to do something to get the right item to display?? Excellent add-on by the way!!!