Started by
P.layRoom
on
Topic category: Help with Minecraft modding (Java Edition)
I'm new to MCreator, and I wanted to know how to find out the speed of an entity and play a specific animation. (Why do I need this: if I check the "Control keyframes using walk controller?" option, my animation doesn't display correctly, but if I set it to always play, it displays properly.) I want to do this through procedures. I've searched online for guides, but I haven't found a way to determine the speed of an entity. Is it possible to do this in MCreator without using programming?
MCreator version 2026.1(If there is no solution for this version, can it be done in other versions? But only 2024.4 - 2026.1)
Edited by P.layRoom on Sun, 06/07/2026 - 20:01
Well you can get the x y z delta movement and get whether those components make up your desired velocity. You should know the velocities at which your entity moves based on your ai speed factors and its base movement speed value.
To get the velocity from the x z delta, the x and z are sides of a triangle, with the velocity being the hypotenuse. So do (x^2 + z^2)^0.5 = v