Started by
CloudySkies
on
Topic category: Help with Minecraft modding (Java Edition)
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
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
Can you show me a example of that, cause IDK how to do a boolean variable
You need a some sort of association between GUI and entity, either bound GUI or get entity in range, for example
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.