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!

You can use the new…
Thu, 08/21/2025 - 14:36

You can use the new animations system to animate the mob eating the apple and spawn the particles when it is eating.

To run eating logic, you can do it in entity's tick procedure, where each tick you check custom synced entity data timer on how many ticks of something it should do. You can also store state of the entity in another synced entity data variable

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ohh Ok thank you.Would you…
Thu, 08/21/2025 - 17:19

Ohh Ok thank you.
Would you mind showing me an example since Im not sure how to do it and there arent any tutorials about it

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know how to make the…
Thu, 08/21/2025 - 23:59

I know how to make the mob
But not the eating procedures