How to get name of a storage tile entity?

Started by ooooggll on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined May 2021
Points:
576

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 12
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?