Display item from block slot in overlay

Started by snoweyrawr on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Display item from block slot in overlay
Thu, 03/20/2025 - 20:23 (edited)

I'm making an overlay which shows when a player looks at a 'shop' block which pulls the information from slots 0:Item for sale and 1:Cost of item. Managed to get it to display the item name as text and amount. Is there a way I can make it display the image of the item for sale? Would repeat for cost of item also just so it's easier for players to view?

 

OverlayLook

Edited by snoweyrawr on Thu, 03/20/2025 - 20:23
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Did you figure this out?I…
Sun, 03/30/2025 - 13:35

Did you figure this out?
I think I have a method that might work for you

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if you know a solution, can…
Wed, 06/04/2025 - 16:52

if you know a solution, can you share friyes? just in case someone else has the same problem

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's been a while so I no…
Fri, 06/06/2025 - 09:24

It's been a while so I no longer have the files, but I'm pretty sure I just rendered an invisible allay/villager/player.
Or maybe, if you can't make them invisible, I made my own humanoid entity which had an empty texture.

 

Then I made that entity hold the item.