minecraft:ageable for you with a switch.Get GodCraftOverview
minecraft:ageable is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Gives a baby entity a growth timer so it turns into an adult later. Feeding it the right items makes it grow faster.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
drop_items | List | none | Items the entity drops at the moment it grows up. |
duration | Decimal | "1200.0" | Seconds until the baby becomes an adult. Use -1 to keep it a baby forever. |
feed_items | List | none | Items players can feed it to speed up growing. Each entry can set how much growth it gives and an item handed back. |
grow_up | String | none | Event that fires when the entity becomes an adult, usually to swap in adult components. |
interact_filters | Minecraft Filter | none | Conditions that must be true before the entity accepts food. |
pause_growth_items | List | none | Items that freeze the baby's growth when fed to it. |
reset_growth_items | List | none | Items that restart the baby's growth timer from the beginning. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:ageable": {
"drop_items": {},
"duration": "1200.0",
"feed_items": {},
"grow_up": "",
"interact_filters": {},
"pause_growth_items": {},
"reset_growth_items": {}
}
}