Hello!
I've recently wanted to add a cool feature to my texture pack, and I'm not sure if it's possible.
I want to know if it's possible to be able to code exactly when your animation loop starts.
All tutorials I have seen just loop the animation from when it ends.
I want my animation to start when the item (a fishing rod) loses durability.
I know you can't code it to loop when that happens, but I realized I can make separate animations for every durability level.
I just want to know if you can make that animation start over when the next animation is loaded.
Hello!
I've recently wanted to add a cool feature to my texture pack, and I'm not sure if it's possible.
I want to know if it's possible to be able to code exactly when your animation loop starts.
All tutorials I have seen just loop the animation from when it ends.
I want my animation to start when the item (a fishing rod) loses durability.
I know you can't code it to loop when that happens, but I realized I can make separate animations for every durability level.
I just want to know if you can make that animation start over when the next animation is loaded.
No, this isn't possible. Minecraft only allows for a single start point for all animations - when the world loads. It also has no way of terminating loops. The only exceptions are very specific key-driven animations like the clock and compass and even then only in older versions as those features have been taken over by predicates in newer editions. So sadly what you're trying to do isn't possible so far as I'm aware.
Hey thanks so much!
Yeah don't worry, I know what I was looking to do was REALLY out there, as I'm always looking for cool interesting things I can do with texture packs, but learning the boundaries to this is necessary ahah.
Hello!
I've recently wanted to add a cool feature to my texture pack, and I'm not sure if it's possible.
I want to know if it's possible to be able to code exactly when your animation loop starts.
All tutorials I have seen just loop the animation from when it ends.
I want my animation to start when the item (a fishing rod) loses durability.
I know you can't code it to loop when that happens, but I realized I can make separate animations for every durability level.
I just want to know if you can make that animation start over when the next animation is loaded.
No, this isn't possible. Minecraft only allows for a single start point for all animations - when the world loads. It also has no way of terminating loops. The only exceptions are very specific key-driven animations like the clock and compass and even then only in older versions as those features have been taken over by predicates in newer editions. So sadly what you're trying to do isn't possible so far as I'm aware.
Sorry to be the bearer of bad news.
Hey thanks so much!
Yeah don't worry, I know what I was looking to do was REALLY out there, as I'm always looking for cool interesting things I can do with texture packs, but learning the boundaries to this is necessary ahah.