How To Breed Mobs 2023

Started by loressa on

Topic category: User side tutorials

Last seen on 06:55, 18. Dec 2023
Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How To Breed Mobs 2023

Make an adult sized entity and a baby version - make them animals in the AI section and put your food item in there, but leave Can tame unchecked

Make 2 variables - Global Map with a number
- Feed
- GrowUp

Make the Feed procedure
if Get Global: Feed = 1 do Return true, and add Return false underneath.


For the adult sized entity:

Add a trigger in On Entity Tick Update
if Is Event/target entity a child
do Despawn Event/target entity and Spawn entity (baby version)

Add a trigger in On Right-clicked on Entity
if Item in in main hand of Source entity = (whatever food item)
do Set Global: Feed to 1

In the AI:
Put a 'follow (food item) item in hand'
Add 'Breed, find partner...' but add the condition Feed procedure you made earlier


For the baby sized entity:

Add a trigger in On Entity Tick Update
Set Global GrowUp to: Get Global: GrowUp + 1
if Get Global GrowUp (equal to or greater than) 200 (10 seconds)
do Spawn entity: (adult entity) at x: x y: y z: z
Despawn Event/target entity

In the AI:
Follow parent with speed factor...
Follow same mobs...
Follow (food item) in hand...
Wander around etc