(CLOSED) How to make a check if the mob is standing or walking (for the Gekolib plugin)

Started by ImSeyo on

Topic category: Help with modding (Java Edition)

Last seen on 14:08, 26. Apr 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(CLOSED) How to make a check if the mob is standing or walking (for the Gekolib plugin)
Fri, 12/29/2023 - 13:01 (edited)

I need to add not one walking animation to my mob, but several. What for? For example, if my mob holds a certain object while walking, then..

In general, I need to make a check when my mob is standing and doing nothing (is in idle position) and when my mob is walking

Edited by ImSeyo on Fri, 12/29/2023 - 13:01
Last seen on 23:17, 26. Apr 2024
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
maybe you could check if x…
Tue, 07/18/2023 - 16:50

maybe you could check if x velocity and z velocity are both 0 to determine if the mob is standing.
If you need jump/fall animations as well, you could detect y velocity.

 

Last seen on 19:31, 26. Apr 2024
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hi ik im late but how did…
Sat, 03/23/2024 - 02:58

hi ik im late but how did you fix it

Last seen on 14:08, 26. Apr 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sinsamvae I didn't use it…
Sat, 03/23/2024 - 08:34

sinsamvae I didn't use it myself, as it turned out to be a useless feature.
But, as the guy above said, you can make a check if x and y and z movement delta = 0 (that is, it stands still), then reproduce your procedure. Otherwise, if it is greater than 0, then also reproduce your procedure