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

Started by The Ult1mate Guy on

Topic category: User side tutorials

Active 4 years ago
Joined Jan 2020
Points:
655

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 13
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!

Active 1 year ago
Joined Feb 2021
Points:
574

User statistics:

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

plzplzplz sent a procudure download!!!

Active 2 years ago
Joined Mar 2021
Points:
557

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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?
Active 2 years ago
Joined Mar 2021
Points:
557

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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
Active 1 year ago
Joined Feb 2021
Points:
575

User statistics:

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

can you send procudure download thank you