Gecklib attack animation not syncing with damage

Started by Sharpblade1 on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 16:08, 16. Sep 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Gecklib attack animation not syncing with damage

In using the geckolib plugin, I’ve noticed that when a mob with an attack animation attacks you, the player is damaged and then, the animation plays. In the mod “Call of Yucatah” created by “Sweetygamer2” they seemed to be able to use attack animations, and they work properly.

So is there anything you can suggest, for a solution to this problem of damage and then animation.

Thank you

Last seen on 16:08, 16. Sep 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes. But as soon as the mob…
Sat, 07/20/2024 - 14:09

Yes.

But as soon as the mob attacks me the producer start, it damages me and keep doing so until the player is dead.

Last seen on 17:32, 16. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
send me a screenshot, I'll…
Sat, 07/20/2024 - 14:10

send me a screenshot, I'll recreate your procedure and see what's wrong

Last seen on 16:08, 16. Sep 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
https://ibb.co/zsLHBcp I…
Sat, 07/20/2024 - 14:15

https://ibb.co/zsLHBcp

I have tried to stop the damage form looping but nothing has worked.

Last seen on 17:32, 16. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so, the problem is kinda…
Sat, 07/20/2024 - 14:44

so, the problem is kinda complicated to explain, basically I'm stupid. 

to fix it you need two elements: "Damage type" and "Procedure"

 

Damage type: https://imgur.com/BlkKKVB 

Procedure: https://imgur.com/xFE5vSV 

 

Only thing you need to do is replacing "Test Entity" with your entity, and remember to put you custom damage name in the pink "damage source of type" block in the procedure 

Last seen on 16:08, 16. Sep 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I git to the damage…
Sat, 07/20/2024 - 18:24

How do I git to the damage type thing?

Last seen on 17:32, 16. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
create a new element like…
Sat, 07/20/2024 - 18:31

create a new element like when you create procedures, but instead of procedure click on Damage type

Last seen on 16:08, 16. Sep 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry. The damage is still…
Sat, 07/20/2024 - 18:59

Sorry. The damage is still looping, and I replaced the "source type: (mob attack)" with my "Damage type thing".

Last seen on 17:32, 16. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tested It before sending…
Sat, 07/20/2024 - 19:26

I tested It before sending It to you and It works, are you sure you did everything right? 

Last seen on 17:32, 16. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yours Is different, look at…
Sat, 07/20/2024 - 19:42

Yours Is different, look at the last part, where there Is the Pink block for the damage, yours ends with "caused by": source entity, mine doesen't have the "caused by" part at all, that's what causes the loop

Last seen on 16:08, 16. Sep 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes... yes! YES!!!!!!!!!!!…
Sat, 07/20/2024 - 20:04

yes... yes! YES!!!!!!!!!!! Glory! Hallelujah! Jubilee! IT WORKS! Thank you.

On another happy note I create a timer, so that I could send a screenshot to the forums to see what was wrong. But before I sent the timer I tested it and it worked. So hay!

Thank again and again God bless and have a great day.

 

O one more quick question, do you know how to check with producer if a player is in a certain area?

Last seen on 17:32, 16. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what kind of area? biome?…
Sat, 07/20/2024 - 20:09

what kind of area? biome? structure? coordinates? 

Last seen on 16:08, 16. Sep 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Coordinates probable, here…
Sat, 07/20/2024 - 20:17

Coordinates probable, here what I'm think. Lets say I want a boss to do a pound attack, but I want the player to be able to jump over it.

If the player is on the ground and in the area I've designated then his is damage but if his is one block above then his is not.

That's just the general idea.

Last seen on 17:32, 16. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the easiest way to do it is…
Sat, 07/20/2024 - 20:27

the easiest way to do it is to spawn an invisible, not touchable, without ai entity to the same position of the boss during the attack, make it have a large but short hitbox, make it despawn after the attack ends and making a procedure that damages the player when they collide with the hitbox