#Can I make entity change texture on interaction with it on right click?

1 messages · Page 1 of 1 (latest)

blazing panther
#

I have a book entity with two animations: idle state and changing page animation. I need to change texture at the end of changing page animation. Is there a way to do it? Barely figured out how to start animation while query is on fire, don't know how to start an animation on interaction.

heady fractal
#

So, what you can do is use /playanimation to trigger the animation in a queue_command within the interaction.

Then, you can use a property and a render controller to control the texture change for it. Learn more about both here:

https://wiki.bedrock.dev/entities/entity-properties.html

https://wiki.bedrock.dev/entities/render-controllers.html