The procedure for making a custom walk animation using the Geckolib plugin

Started by The Ult1mate Guy on

Topic category: User side tutorials

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The procedure for making a custom walk animation using the Geckolib plugin

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!

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
plzplzplz sent a procudure…
Sun, 03/07/2021 - 20:22

plzplzplz sent a procudure download!!!

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Did you find a solution? I…
Sun, 03/28/2021 - 23:34
Did you find a solution?
I did the same as "MrocznaWdowa" But it doesn't work for me, can someone help me with this please?
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry, it was for not…
Mon, 03/29/2021 - 01:38
Sorry, it was for not selecting one of the triggers. I already solved my problem, thanks: 3
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can you send procudure…
Sun, 04/04/2021 - 20:28

can you send procudure download thank you