#gui concept

224 messages Ā· Page 1 of 1 (latest)

round verge
#

Something like this

bitter inlet
#

You want icons for what's in the chest?

round verge
acoustic raven
#

I'm going to have a go at something like this

#

I gotta learn world rendering anyways

#

It'll be a fun project

round verge
neon citrus
#

i requested something similar once but never got an answer

sly kindle
#

Like a floating thing or a preview? Tweakeroo has a preview option.

rose latch
acoustic raven
#

I will come back to this

#

eventually šŸ˜„

pseudo tree
acoustic raven
#

Hm! I didn't know that existed

#

thanks

#

Not so much that I cant

#

but i just dont have time lately

round verge
pseudo tree
#

no clue

acoustic raven
surreal pagoda
acoustic raven
#

yeah but in the HUD

#

not on the chest itself

surreal pagoda
#

Jade’s chest preview is in the HUD though?

pseudo tree
#

that's what he said

acoustic raven
#

This is clearly on the chest? (the request, not jade)

round verge
#

Any progress?

surreal pagoda
#

!!mr container-tooltips if anyone's wondering, there is a mod for this now, even though the thread hasn't been closed or updated

glad rootBOT
round verge
surreal pagoda
#

that's probably possible in the configs

timber rose
#

This one feels like something i could make, will keep you updated

timber rose
#

Currently trying, unfortunately its a bit complicated the way mc handles anticheat

timber rose
#

I did it, tomorrow i'll fix some rendering issues and add a bit of polish and then it's good to go

timber rose
#

@round verge hi, how would you like the item to be displayed? Currently i have it so that when a chest is looked at you see the item rendered above it. Is there a certain position you would like? For example on the front of the chest that way when chests are stacked above you can still see it?

timber rose
#

Making it so that it shows up when you are close to it makes the client send a packet to the server for each chest block, which isn’t very effective. I could still do it if you prefer it that way but it’s not really a good idea as it might spam the server and might kick you out

round verge
#

it only displays after chest is opened once

timber rose
#

Well

#

That is way simpler than what i thought you wanted

round verge
#

what did you think?

timber rose
#

Well i made it so that you don’t need to open it

#

So the server has to send the itemstack to display to the client

#

Even if you never opened that chest, looking at it allows you to know what’s inside

round verge
#

doesnt that get detected by any anticheat and kick you?

timber rose
round verge
#

oh yeah i wanted a client side mod

timber rose
#

The way you want it is only client side which simplifies a lot of stuff

#

Yeeeeaaaah i should have asked more info lmao

#

Well, i’ll make it both ways

#

Too late to back down

#

So, for the displayed item, you want it above the chest right?

round verge
#

yes

timber rose
#

Perfect

#

Do you want it to spin?

round verge
#

yes

timber rose
#

Perfect

#

Alright, will keep you updated here

round verge
#

ok

#

for what mc version are you gonna make it?

timber rose
#

1.19 +

#

Every version above that will work

round verge
#

1.20.4?

timber rose
#

Yes that too

round verge
#

ok

timber rose
#

Should work on every version that is above 1.19.4

round verge
#

ok

timber rose
#

I’ll test it and make sure it works on the newest one before sending it

round verge
#

ok

#

do you have screenshot?

timber rose
#

I can make you one, just give me a bit

round verge
#

ok

timber rose
round verge
timber rose
#

It’s 3d

round verge
#

are you going to change that?

timber rose
#

I mean no? If you set the items in the ground to render 2d then it’s gonna do that

#

Like in the game settings

#

It automatically does that it’s the same code

round verge
#

ok

round verge
#

are you going to post on github?

timber rose
nocturne star
#

Out of curiosity, are you doing this purely client-side, or are you having to do some server-side stuff as well? I had a poke at this awhile back and needed to do server-side stuff

timber rose
#

That way it works client side

#

I will post the code for both the server side and client side versions

nocturne star
timber rose
#

Yeah it occurred to me once OP told what he wanted, i thought they wanted it to work even without opening it so i just did the server side one without really thinking about it

#

Although the server side works really well so I’m probably just going to release both

nocturne star
#

I think that's a somewhat good trade-off for the mod being client-side only. It also requires the player to actually interact with the chest.

timber rose
#

Yup! No cheating or anything, completely fair to use

nocturne star
#

this

timber rose
#

Alright it works!

#

Weirldy on the first try

#

Just need to make it so that it updates also when the player closes the chest and then we are done :)

round verge
#

nice

timber rose
#

Alright i finally did it!

#

It updates the render when the contents of the chests are changed (both by the client or by other players) while the chest is open!

#

I'll do a few more checks to make sure this works as intended and then i'll make the githubs

timber rose
#

Ok i found a pretty weird bug where sometimes (i have no idea when) the rendered item isn't from the correct chest

timber rose
#

alright that is fixed, although i found out double chests dont work(?)

#

trying to fix this rn

timber rose
#

Alright i fixed it

#

That was a messed up bug

timber rose
#

Here it is, there's a release on the github

#

I haven't checked if it works on 1.20.4 as it's kinda late

#

I will def check tomorrow

round verge
#

what if 2 chests are above eachother?

pseudo tree
#

test it?

wary oriole
#

I LIKE ITTT T

#

MAKE IT POSSIBLE

round verge
wary oriole
#

Make it possible i want it to work

round verge
#

it already exist

timber rose
round verge
#

oh

timber rose
#

I can make it display like half inside the chest on the front

#

If there’s a chest above

#

However you prefer

round verge
timber rose
#

Wait a sec

round verge
#

yeah good idea

timber rose
#

alr

timber rose
#

Got it

round verge
#

nice

timber rose
#

the item is not attached to the chest so it can still have the pretty spin

#

also works with double chests

round verge
#

have you pushed to github?

timber rose
timber rose
round verge
#

did you test 1.20.4

timber rose
#

not yet i just started a gamejam so i've been busy with that

#

it should work tho, if it doesnt just tag me i'll fix it right away

round verge
#

doesnt seem to do anything on 1.20.4

round verge
#

@timber rose

timber rose
#

lemme check

#

it works for me

#

oh wait

#

it doesnt auto update

#

mh

#

yeah that's an issue

#

is it ok if i fix it on sunday?

round verge
#

yes

timber rose
#

i have lots of work to do, sorry for the inconvenience!

round verge
#

i understand

timber rose
#

for now, it works only if you re-open the chest after changing the contents

#

if you find other bugs please send them over so i can fix them

uneven mica
round verge
#

also this is the fabric discord

uneven mica
round verge
#

you should really learn to read

timber rose
# uneven mica is it for 1.20.4?

its from 1.19.4 for an up, although there apparently is a bug for the newest versions but it doesnt crash the game or anything

uneven mica
#

my mistake

#

this is my monitor quality

timber rose
#

sunday i'll update with the fix so that the mod will work without problems

timber rose
uneven mica
timber rose
#

wow

round verge
#

@timber rose

timber rose
timber rose
#

i can't seem to find the root problem, this is really annoying

timber rose
#

@round verge im gonna make a wild guess, i think this is straight up impossible

#

i think the server (for some reason unbeknownst to me) handles when the inventory of the chest is shown

round verge
#

weird

timber rose
#

i have no idea why

#

this is the stupidest piece of code i have seen in minecraft

#

im going to try and find a new solution

#

altough i don't think it's possible

timber rose
round verge
#

nice

timber rose
#

gotta make it work tho

#

i'll ping you if i have news

timber rose
#

@round verge i did it!

#

now i'll check if it works in 1.20.4 and if everything does, i can update the mod

#

they apparently changed a class from MatrixStack to DrawContext so now i need to make a version for 1.19.4 and one for 1.20.4+

#

alright im going to go to sleep now, i'll update the mod tomorrow for both versions

neon citrus
#

@timber rose did you updste the mod

timber rose
#

im testing it as i think there might be some memory issues, although it's almost ready

timber rose
#

im polishing the mod rn, fixing some memory issues, some bugs with the item not showing sometimes with double chests and just some better code

round verge
#

@timber rose

timber rose
#

use this in the meantime if you don't mind some weird bugs like where if two chests are in the same place but in different worlds you see the last world's item and the bug that won't let you see the item if you open the last placed chest of a double chest while i fix these bugs

neon citrus
#

for what game and fabric versions is this? @timber rose

#

asking because i use 1.20.1 0.15.6

timber rose
#

It’s for 1.20 and every version after that

neon citrus
#

0.15.6 or higher?

#

feather doesnt have 0.15.7 yet @timber rose

round verge
#

It's for 1.20 fabric

timber rose
#

Theoretically 0.15.6 and higher, previous versions are untested

neon citrus
neon citrus
round verge
#

@timber rose when github push?

timber rose
#

Haven’t been modding, i have the theory exam for my drivers license this friday and an exam for uni next week

#

I could speedrun it right now but it will probably have some bugs and i want to make a clean version

timber rose
#

just so i can write them down and fix them later

timber rose
#

working on the fixes rn

timber rose
#

memory issues fixed, will fix the double chest problem tomorrow

round verge
#

@timber rose it going good?

timber rose
round verge
#

nice

timber rose
#

BUG FIXES:

Fixed memory issues:

  • Breaking a chest and placing a new one in the same place would show the old chest's item above.
  • When leaving a world and joining a new one, chests placed at the same coordinates would display the old world chest's item.

Fixed double chest display issues:

  • When opening the second chest on a double chest no item would be displayed.
#

you can also check the github if you want to have a look at the changes

timber rose
#

#update-releases message

#

Release is out on CurseForge

round verge
lament marsh
#

modrinth (2nd)

#

xD

timber rose
#

sorry i didn't see these messages, i'll upload it on modrinth now but they usually take a lot to accept the request

timber rose
#

mod was accepted on modrinth