How to change texture of entity if gui button is pressed 2025.2 vers

Started by CloudySkies on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to change texture of entity if gui button is pressed 2025.2 vers
Fri, 07/11/2025 - 17:24 (edited)

Hey, I'm trying to change my entity's texture when I press a button on a GUI monitor, but I'm having trouble figuring out how to do it.

https://ibb.co/ksfPw1xc -Monitor

https://ibb.co/HTyvLj9g -Textures

What should the procedures be?

Edited by CloudySkies on Fri, 07/11/2025 - 17:24
Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create a boolean "data"…
Sat, 07/12/2025 - 12:09

Create a boolean "data" variable for your entity. Create a "When button is pressed" procedure. When you press it set the variable to true, and create a condition for the entity model where if the variable is true your entity is "lit", otherwise normal

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you show me a example of…
Sat, 07/12/2025 - 19:18

Can you show me a example of that, cause IDK how to do a boolean variable

 

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm still having trouble,…
Sun, 07/13/2025 - 16:37

I'm still having trouble, with the texture stuff. Still, I figure that if I press a button in the GUI of a new block I've made, I can call the Chameleon circuit. It sends a message to the player telling them to leave, then after 5 seconds or 100 ticks, another message plays, saying (Whatever texture) has been applied. However, I'm still struggling with the procedure, particularly with the whole changing texture of my entity.