Entity Documentation - minecraft:is_baby
minecraft:is_baby
sets that the entity is a baby.
Important
minecraft:is_baby
is a Boolean that is used to set the value for use in query functions like Molang and Filters. In order for the entity to have the desired affect, it will need to be paired with extra functionality.
The examples below will showcase both the property and how it works to create the desired effect on the entity.
Example
Plain
"minecraft:is_baby":{
}
With Functionality
"minecraft:hedgehog_baby": {
"minecraft:is_baby": {
},
"minecraft:scale": {
"value": 0.75
},
"minecraft:ageable": {
"duration": 400,
"feed_items": [
"carrots",
"chicken"
],
"grow_up": {
"event": "minecraft:ageable_grow_up",
"target": "self"
}
}
}
Note
If the Entity will have the ability to toggle between the two states, you can define the property in a Component Group and use the add
and remove
capabilities to act as a toggle based on Events.
Vanilla entities examples
wolf
"minecraft:is_baby":{
}
Vanilla entities using minecraft:is_baby
- axolotl
- bee
- cat
- chicken
- cow
- dolphin
- donkey
- drowned
- evocation_illager
- fox
- glow_squid
- goat
- hoglin
- horse
- husk
- llama
- mooshroom
- mule
- ocelot
- panda
- pig
- piglin
- pillager
- polar_bear
- rabbit
- ravager
- sheep
- skeleton_horse
- squid
- turtle
- vex
- villager_v2
- villager
- vindicator
- wolf
- zoglin
- zombie_horse
- zombie pigman
- zombie_villager_v2
- zombie_villager
- zombie