#gui concept
224 messages Ā· Page 1 of 1 (latest)
You want icons for what's in the chest?
yes
I'm going to have a go at something like this
I gotta learn world rendering anyways
It'll be a fun project
did it work?
i requested something similar once but never got an answer
Like a floating thing or a preview? Tweakeroo has a preview option.
project 3d to 2d š
there's a wiki called https://fabric.moddedmc.wiki/ that has a page on rendering, might wanna check it out
Hm! I didn't know that existed
thanks

Not so much that I cant
but i just dont have time lately
it loos realy nice, whomade it
no clue
Jade can do this. https://modrinth.com/mod/jade
Jadeās chest preview is in the HUD though?
that's what he said
This is clearly on the chest? (the request, not jade)
Any progress?
!!mr container-tooltips if anyone's wondering, there is a mod for this now, even though the thread hasn't been closed or updated
https://modrinth.com/mod/container-tooltips if anyone's wondering, there is a mod for this now, even though the thread hasn't been closed or updated
I want it to get 1 item that is in it the most
that's probably possible in the configs
This one feels like something i could make, will keep you updated
Currently trying, unfortunately its a bit complicated the way mc handles anticheat
I did it, tomorrow i'll fix some rendering issues and add a bit of polish and then it's good to go
@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?
when i am close to it
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
it only displays after chest is opened once
what did you think?
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
doesnt that get detected by any anticheat and kick you?
Not if the server has the mod
oh yeah i wanted a client side mod
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?
yes
yes
1.20.4?
Yes that too
ok
Should work on every version that is above 1.19.4
ok
Iāll test it and make sure it works on the newest one before sending it
I can make you one, just give me a bit
ok
are you going to make it flat or "3d"?
Itās 3d
are you going to change that?
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
ok
are you going to post on github?
yup
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
So right now it works server side, but as the OP wants it client side im trying to get the inventory when the player opens the chest, saving it in a map storing the blockās pos and itemstack i have to display and simply get the itemstack in the renderer by using the block pos as the key
That way it works client side
I will post the code for both the server side and client side versions
That's pretty smart. I didn't think of that.
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
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.
Yup! No cheating or anything, completely fair to use
this
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 :)
nice
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
Ok i found a pretty weird bug where sometimes (i have no idea when) the rendered item isn't from the correct chest
alright that is fixed, although i found out double chests dont work(?)
trying to fix this rn
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
what if 2 chests are above eachother?
test it?
what do you mean?
Make it possible i want it to work
it already exist
Thatās why i asked you how you wanted to display the item
oh
I can make it display like half inside the chest on the front
If thereās a chest above
However you prefer
i dont understand what you mean with this
yeah good idea
alr
nice
the item is not attached to the chest so it can still have the pretty spin
also works with double chests
have you pushed to github?
did it now
did you test 1.20.4
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
doesnt seem to do anything on 1.20.4
@timber rose
That's odd
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?
yes
i have lots of work to do, sorry for the inconvenience!
i understand
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
does it support fabric? if so can you make it support fabric?
also this is the fabric discord
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
sunday i'll update with the fix so that the mod will work without problems
wow that's horrible ahhaha
this is also the minecraft version I play =)
wow
@timber rose
Sorry man i had to go to Lisbon for a few days im really sorry, im coming back home this evening and will fix this asap
i can't seem to find the root problem, this is really annoying
@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
weird
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
i think i found the fix
nice
@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
@timber rose did you updste the mod
im testing it as i think there might be some memory issues, although it's almost ready
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
@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
for what game and fabric versions is this? @timber rose
asking because i use 1.20.1 0.15.6
Itās for 1.20 and every version after that
It's for 1.20 fabric
It will work for any fabric version
Theoretically 0.15.6 and higher, previous versions are untested
ye but i need it for 0.15.6 as feather doesnt have any fsbric version higher than that yet
thanks
@timber rose when github push?
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
have you had any bugs with the jar i sent here?
just so i can write them down and fix them later
working on the fixes rn
memory issues fixed, will fix the double chest problem tomorrow
@timber rose it going good?
I should be able to finish it today
nice
@round verge will upload the update to curseforge rn, while they accept it you can download it from here
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

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