How can i make a mob lay an egg after breeding

Started by Pengu1nVic on

Topic category: Help with modding (Java Edition)

Last seen on 06:20, 17. Aug 2023
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can i make a mob lay an egg after breeding

i wanted to make a mob lay an egg after it breeds and i don't know how i can do it.

Last seen on 05:57, 3. Nov 2023
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi! I think you can use the…
Wed, 11/23/2022 - 18:03

Hi!

I think you can use the When Entity Spawning event and use condition "is a baby", despawn it or cancel the event, and place the egg there

Last seen on 05:57, 3. Nov 2023
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Dont forget in the condition…
Wed, 11/23/2022 - 18:04

Dont forget in the condition also add if the entity is your custom mob