How to get name of a storage tile entity?

Started by ooooggll on

Topic category: Help with modding (Java Edition)

Last seen on 19:12, 16. Apr 2023
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to get name of a storage tile entity?

I made an Oak Crate that works very similarly to a barrel and it says "Oak Crate" at the top of the GUI. But if I rename it in an anvil it still says "Oak Crate" unlike how renaming a barrel/chest it changes the name at the top. How do I change the text at the top based on what the block is renamed? Is there some sort of NBT thing?