#render client side entities within gui
17 messages · Page 1 of 1 (latest)
There's a method in I think the players inventory that can render a player that you can just call
Unsure if it can render other entities
it can cuz it’s used for horses and stuff too
iirc it’s InventoryScreen.renderEntityInScreen (mojmaps) or something along those lines
do note you’ll probably need fabric api if you plan on rendering multiple in a single frame
alright i got rendering players working but how do i get a client side ItemEntity that i can then render
i do want to also ask how to render just normal items but at a custom size
could you elaborate?
basically for most picture in picture renderers (like the entity in gui one), the game will only use the last submitted state for all of them in the same frame, so they all render the last entity
fabric api fixes that, can’t remember what module specifically but probably one of the rendering ones
sounds interesting, i can try to look for it
u dont need to do anything special for it to work btw, just as long as its installed pip renderers will work as you expect
pip renderer?
picture in picture
ah so just like screens?
when you see an entity or other 3d element in a gui its a picture in picture renderer, i think yarn calls them special ui element or something but yea
ah ok gotcha