How to Make Item in GUI Slot Display as Floating?

Started by Lil Shoosh on

Topic category: Help with modding (Java Edition)

Last seen on 18:22, 1. Jun 2024
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to Make Item in GUI Slot Display as Floating?

Heyo!

I wanted to know how I might create a procedure so that when an item is in a given block GUI slot, the item is then displayed as floating above the block (similar to how it floats when it is dropped)?

 

What might I be able to do to achieve this?

 

Thanks!

Last seen on 14:57, 22. Jun 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know there's some new…
Sat, 12/30/2023 - 15:13

I know there's some new commands in the latest version that let you display entities/items non interactably, but I don't personally know how to use them. If you've got something like geckolib installed, you could also try making a custom entity that hovers above your table, and have the texture be set to the item's- though again, not exactly sure about the specifics. ...Or you could maybe just cheat and literally just spawn/despawn an itemstack with a really long pickup delay. (But, uh, maybe do that as a last resort.)