Help with player mob interact animations

Started by XPS on

Topic category: Help with modding (Java Edition)

Last seen on 02:45, 29. Jan 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with player mob interact animations

Hello everyone, I was wondering if anyone knew how to make player mob interactions like the Jenny mod.

Im using it for a pet shop villager and a few pets so it looks very nice.

I did use geckolib for them and I have player animations installed but I don't know how to use them together to make a similer effect.

If anyone knows how please tell me.

Thank you!!!

Last seen on 01:24, 26. Feb 2024
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could make a Procedure…
Mon, 01/22/2024 - 16:55

You could make a Procedure that detects when you interact with your Pet Shop Villager, (probably like right-clicking them or right-clicking them with an item), and then make it so it plays the Player Animation, and calls another Procedure.

 

Then, make the other Procedure check if the Event/target Entity is your Pet Shop Villager, and if a Player is within a certain distance of them, and if so, play the Pet Shop Villager's Geckolib Animation