Is there a way to change the texture of a block on right click?

Started by God_Of_Wood on

Topic category: Help with modding (Java Edition)

Last seen on 16:55, 21. Nov 2023
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way to change the texture of a block on right click?

I am making a block that is supposed to be able to "charge" itself up, and I wanted to know if there is a way to change its texture every time it charges. Also, it is possible that if I have a certain item in hand I can change the texture to another one? Because I need to be able to extract what is charged up using a bucket model that I made. Any help is greatly appreciated.

Last seen on 16:47, 29. Oct 2023
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Instead of changing the…
Wed, 08/05/2020 - 19:54

Instead of changing the block texture, you should simply change the block. Make block variants, one for charged, one for uncharged. Then switch them around when they are right clicked.

Last seen on 16:55, 21. Nov 2023
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, I tried it and it worked…
Thu, 08/06/2020 - 18:09

Ok, I tried it and it worked! Thanks!