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

Started by God_Of_Wood on Wed, 08/05/2020 - 14:17

Topic category: Help with modding (Java Edition)

Last seen on 23:18, 17. Jun 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Is there a way to change the texture of a block on right click?
Wed, 08/05/2020 - 14:17

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 23:05, 16. Jun 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 23:18, 17. Jun 2021
Joined Aug 2020
Points:

User statistics:

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

Ok, I tried it and it worked! Thanks!