Help Needed: Make My Custom Mob Eat Golden Apples Like a Player

Started by Hygerian on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help Needed: Make My Custom Mob Eat Golden Apples Like a Player

Hi everyone!

I’m working on a Minecraft mod in MCreator and I want to create a custom mob that eats a golden apple when its health is low, but I want it to look exactly like a real player eating, meaning:

  • The mob should hold the golden apple in its hand,
  • The eating animation should play (hand-to-mouth movement),
  • The particle effects should appear, just like when a player eats an apple,
  • The eating sound (crunch) should play,
  • After eating, the mob should heal and get the golden apple effects (regeneration, absorption).

I’ve tried basic procedures to heal the mob when health is low, but I don’t know how to combine animations, particles, and sounds like a real player.

I’m using MCreator 2024.4 with standard mob models (not GeckoLib), and I’d appreciate step-by-step instructions or an example procedure.

Thanks in advance for any help!