Topic category: Help with Minecraft modding (Java Edition)
For some reason, I can't get it to work. I don't think it's a bug, rather, I think I'm doing something wrong. It play the attack animation correctly the first time, but it won't play the attack animation more than once.
I think the AI Setup is fine. The first block says, "Do melee contact with speed factor 1.2", which I would think allows for melee contact.
The actual attack animation code is simply "return logic: is entity swinging attack", with a global procedure of "on entity tick update". (I also tried without any extra procedures, but it still didn't work)
If it matters, I set the Blockbench animation to "play once", but I'd think that'd mean each time it's triggered, right? I tried setting it to loop, but then it just plays it on repeat forever!
The image for AI and code should appear below:
If anyone knows how to fix it, I would greatly appreciate it!