changing textures based on NBT

Started by TheRidiculousR on

Topic category: Advanced modding

Last seen on 10:28, 25. Nov 2022
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...

Last seen on 22:41, 29. Dec 2021
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.

Last seen on 13:50, 6. Apr 2024
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes it's possible to change…
Fri, 05/22/2020 - 17:20

Yes it's possible to change a block's texture. The problem of Trolmaso solution is that you have to make 2 mods elements.
My solution requires code but I made a tutorial right here : https://mcreator.net/forum/60469/tutorial-1144-change-blocks-texture-game