Topic category: User side tutorials
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
where can i find it :) like a video tutorial is nice :)