1. Wiki
  2. /Entities
  3. /minecraft:ageable

minecraft:ageable

Don't want to write this by hand? GodCraft sets minecraft:ageable for you with a switch.Get GodCraft

Overview

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

FieldTypeDefaultDescription
drop_itemsListnoneItems the entity drops at the moment it grows up.
durationDecimal"1200.0"Seconds until the baby becomes an adult. Use -1 to keep it a baby forever.
feed_itemsListnoneItems players can feed it to speed up growing. Each entry can set how much growth it gives and an item handed back.
grow_upStringnoneEvent that fires when the entity becomes an adult, usually to swap in adult components.
interact_filtersMinecraft FilternoneConditions that must be true before the entity accepts food.
pause_growth_itemsListnoneItems that freeze the baby's growth when fed to it.
reset_growth_itemsListnoneItems 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": {}
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more