Topic category: Advanced modding
I would like to create a command that will cause a custom geckolib entity to play a specific animation until you run the command again and change the animation. I am using MCreator 2023.1 and Nerdy's Geckolib Plugin 4.7.1. I am currently trying to use a command to change an nbt tag(animation) of the custom entity and having the animation play when a global variable is on(using the "Play returned animation" trigger, as well as keeping "Loop external animations" on for most of the time) The problem I have is that the entity just stops animating when I turn on the global variable, it even stops playing it's idle animation. I apologize if I have not explained this very well, I can try to explain a different way or provide additional information if it is needed.
One more thing, please don't say "start with something simpler" I have been using MCreator for over a year now and have been able to do some complex things with it, I only just recently created an account because I need help with this. I am willing to do custom code or file editing, if it is at least moderately well explained.
For the command couldn't you just use the block from the geckolib plugin "if entity element (entity) is the (event/target entity, source entity, entity iterator, etc.) entity then play the animation (animation name)"