Inventory Tabs (updated)

Inventory Tabs (updated)

196k Downloads

[Feature Request] Change Chest Icon based on nearby item frames

CodeF53 opened this issue ยท 7 comments

commented

Given Chests that have item frames on them, render the item in the item frame instead of the chest icon

image

image

commented

Ooh, I really like this idea. I'll look into implementing it in the future. For now, you can rename your inventories to get a slightly similar effect

commented

I've started work on this feature. Right now, putting an item in an item frame near a chest will now display that item on the tab, but the item frame detection isn't the most efficient and it can only detect item frames if they are spaced out a little.

InventoryTabs_Itemframe

commented

I've refined the item frame detection down and gotten this feature working for double chest hitboxes!

InventoryTabs-nearby-item-frames

It is in release 0.8.1.

commented

Yeah, that was intentional. Wasn't sure what icon to use (item frame item, regular chest, no icon, etc), so I just left it use the result of ItemFrameEntity.getHeldItemStack(). Is there something you'd rather the icon be?

commented

Empty item frames make chests not have an icon at all?
image

commented

Just felt a bit odd, maybe later on add an option to show it as a chest?

commented

Yeah I can change it to do that. Didn't imagine anyone would use empty item frames on a chest, haha