changing textures based on NBT

Started by TheRidiculousR on

Topic category: Advanced modding

Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
changing textures based on NBT

I am making a mod for use in my server in which there are personal drawers. people cannot destroy or open someone elses drawer, but the owner can unlock it to let other people use it anyways.
However, I want the textures to change depending on if they are locked or if they aren't.
is it possible to do this with NBT data?
I know kind of how blockstates work but I have no idea what kind of block data it is reading to decide what state it is...

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think that there is a…
Wed, 05/20/2020 - 14:21

I think that there is a procedure block that replaces a block with another block but with the same contents of the block. So it will have the same slot contents. I think.