Entity Documentation - minecraft:ageable
minecraft:ageable
adds a timer for the entity to grow up. The timer can be accelerated by giving the entity items it likes as defined by feed_items
.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
drop_items | not set | List | List of items the entity drops when it grows up. |
duration | 1200.0 | Decimal | Amount of time before the entity grows up, -1 for always a baby. |
feed_items | not set | List | List of items that can be fed to the entity. Includes 'item' for the item name and 'growth' to define how much time growth is accelerated. |
grow_up | not set | JSON Object | Event to run when the entity grows up. |
interact_filters | -- | Minecraft Filter | A list of conditions to meet for the entity to be fed. |
transform_to_item | -- | Item Description Properties | The feed item used will transform into this item upon successful interaction. Format: itemName:auxValue . |
Example
"minecraft:ageable":{
"drop_items": "fish",
"duration": 1200.0,
"feed_items": ["carrot", "wheat"],
"grow_up": {
"event": "minecraft:ageable_grow_up",
"target": "self"
}
}
Vanilla entities examples
pig
"minecraft:ageable": {
"duration": 1200,
"feed_items": [ "carrot", "beetroot", "potato" ],
"grow_up": {
"event": "minecraft:ageable_grow_up",
"target": "self"
}
}
mule
"minecraft:ageable": {
"duration": 1200,
"feed_items": [
{
"item": "wheat",
"growth": 0.016667
},
{
"item": "sugar",
"growth": 0.025
},
{
"item": "hay_block",
"growth": 0.15
},
{
"item": "apple",
"growth": 0.05
},
{
"item": "golden_carrot",
"growth": 0.05
},
{
"item": "golden_apple",
"growth": 0.2
},
{
"item": "appleEnchanted",
"growth": 0.2
}
],
"grow_up": {
"event": "minecraft:ageable_grow_up",
"target": "self"
}
}
Vanilla entities using minecraft:ageable
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for