Topic category: User side tutorials
Firstly, the procedure should be placed in the entity tick trigger.
It should look like:
Event Trigger (the top green part) [no additional trigger]
IF {[X velocity not equal to 0] AND [Z velocity not equal to 0]} OR {[X velocity not equal to 0] OR [Z velocity not equal to 0]}
do IF [Get Event/target entity] data logic NBT tag "PlayingAnim" = false
do {Play animation [animationnamehere] as entity [Event/target entity]. Should loop = false}
Set [Event/target entity] data logic NBT tag "PlayingAnim" to true
Else {set [Event/target entity] data number NBT tag "AnimTimer" to [Get [Event/target entity] data number NBT tag "AnimTimer"] - [1]
IF [Get [Event/target entity] data number NBT tag "AnimTimer"] is less than or equal to [0]
do {Set [Event/target entity] data logic NBT tag "PlayingAnim" to false}
{Set [Event/target entity] data number NBT tag "PlayingAnim" to [animation time in seconds *20]}
Else if {[X velocity = 0] AND [Z velocity = 0]}
do {Set [Event/target entity] data logic NBT tag "PlayingAnim" to false}
{Set [Event/target entity] data number NBT tag "PlayingAnim" to [animation time in seconds *20]}
LMK if you have questions!
I have one question. This works for mcreator 2020.5? Or only for snapshots?
It only works on the version the plugin is compatible for.
Is there a way to do something similar for a jump animation?
There is a global trigger called on entity jumps.
Check the entity is the custom entity and play the animation.
Nasıl animasyon ekleyebilirim?
i mean how can i import geckolib animations
I need active animations or no active?
And code blocks are too complicated
can you take a picture of the procedure?
I something like this?
It didn't work
I fixed it and it works
If i did sth wrong, please write me
Hey I just tried to recreate your code for a walking animation for the Attack Titan from AOT but it didn't work, I imported the .java file and the .json animation file, am I missing anything else?
how did you added "and" and "or" commands
Try to use only 'play animation' for other triggers. For example: 'when entity falls'.
Then you can be sure animation is working.
If animation is correct, error is in 'procedure'.