Skip to main content

Entity component reference (4/23)

This page carries the component pages of MS Learn (MicrosoftDocs/minecraft-creator a9fd1c0, CC BY 4.0). IDs, property names, types, default values and JSON are as in the original. The full list is in the index.

minecraft:breathable​

(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_breathable.md)

Defines what blocks this entity can breathe in and gives them the ability to suffocate.

Breathable Properties​

NameDefault ValueTypeDescriptionExample Values
breathe_blocksnot setArray of stringsList of blocks this entity can breathe in, in addition to the selected items above.
breathes_airtrueBoolean true/falseIf set, this entity can breathe in air.
breathes_lavatrueBoolean true/falseIf set, this entity can breathe in lava.
breathes_solidsfalseBoolean true/falseIf set, this entity can breathe in solid blocks.
breathes_waterfalseBoolean true/falseIf set, this entity can breathe in water.Bogged: true
can_dehydratefalseBoolean true/falseIf true, entities that only breathe water (for example, fish) will take dehydration damage when out of water. This item requires a format version of at least 1.21.130.
generates_bubblestrueBoolean true/falseIf set, this entity will have visible bubbles while in water.
inhale_time0Decimal numberTime in seconds to recover breath to maximum.
non_breathe_blocksnot setArray of stringsList of blocks this entity cannot breathe in, in addition to the selected items above.
suffocate_time-20Integer numberTime in seconds between suffocation damage.
suffocateTimenot setDecimal number
total_supply15Integer numberTime in seconds the entity can hold its breath.Bat: 15
totalSupplynot setDecimal numberAllay: 15

Samples​

Allay​
"minecraft:breathable": {
"suffocateTime": 0,
"totalSupply": 15
}
Bat​
"minecraft:breathable": {
"suffocate_time": 0,
"total_supply": 15
}
Bogged​
"minecraft:breathable": {
"breathes_water": true,
"suffocate_time": 0,
"total_supply": 15
}

minecraft:breedable​

(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_breedable.md)

Allows an entity to establish a way to get into the love state used for breeding.

[!Note] This component is commonly used in conjunction with the 'minecraft:behavior.breed' component.

[!Note] In 1.21.130 the transform_to_item field on each entry of breed_items was renamed to result_item. The new field is defined per-item, so different breed items can transform into different result items on use.

[!Note] In 1.26.0 the offspring-related fields were split out into the separate minecraft:offspring_data component. minecraft:breedable now contains only love-state, taming/health requirements, and pregnancy-flow data; the new minecraft:offspring_data component is required to actually spawn the child entity.

Breedable Properties​

NameDefault ValueTypeDescriptionExample Values
allow_sittingfalseBoolean true/falseIf true, entities can breed while sitting
blend_attributestrueBoolean true/falseIf true, the entities will blend their attributes in the offspring after they breed. For example, horses blend their health, movement, and jump_strength in their offspring.
breed_cooldown60Decimal numberTime in seconds before the Entity can breed again.
breed_itemsnot setArray of stringsThe list of items that can be used to get the entity into the 'love' state. Can be a single item or an array.Chicken: ["wheat_seeds","beetroot_seeds","melon_seeds","pumpkin_seeds","pitcher_pod","torchflower_seeds"], Cow: ["wheat"], Frog: ["slime_ball"]
breed_items (as String)not setString
breeds_withnot setArray of Breeds With itemsThe entity definitions that this entity can breed with. Can be a single object or an array.Chicken: {"minecraft:chicken":{}}, Cow: {"minecraft:cow":{}}, Frog: {"minecraft:frog":{"event":"become_pregnant","target":"self"}}
breeds_with (as Object)not setBreeds With (Breed With Single) item
causes_pregnancyfalseBoolean true/falseIf true, the entity will become pregnant instead of spawning a baby.Frog: true
combine_parent_colorsfalseBoolean true/falseIf true and no color mutation occurs, the baby's minecraft:color is set to a blend of the parents' colors (following DyeItem combination rules).
deny_parents_variantnot setDeny Parents Variant itemDetermines how likely the baby of parents with the same variant will deny that variant and take a random variant within the given range instead.
environment_requirementsnot setArray of Environment Requirements itemsThe list of nearby block requirements to get the entity into the 'love' state.
extra_baby_chance0Percent RangeChance that up to 16 babies will spawn.
inherit_tamednot setBoolean true/falseIf true, the babies will be automatically tamed if its parents are.
love_filtersnot setMinecraft filterThe filters to run when attempting to fall in love.
mutation_factornot setMutation Factor itemDetermines how likely the babies are to NOT inherit one of their parent's variances.
require_full_healthfalseBoolean true/falseIf true, the entity needs to be at full health before it can breed.
require_tametrueBoolean true/falseIf true, the entities need to be tamed first before they can breed.Llama: true

combine_parent_colors​

If true and no color mutation occurs, the baby's minecraft:color is set to a blend of the parents' colors (following DyeItem combination rules). If the parents' colors aren't compatible, the baby inherits one parent's color at random. This item requires a format version of at least 1.21.60.

Breeds With​

Breeds With Properties​

JSON path: breeds_with

NameDefault ValueTypeDescription
baby_typenot setStringThe entity definition of this entity's babies.
breed_eventnot setStringEvent to run when this entity breeds. Can be a simple event name string or a trigger object with event and optional filters.
breed_event (as Object)not setObject
mate_typenot setString from a list of choicesThe entity definition that this entity can mate with.

Breeds With (Breed With Single)​

Same structure as Breeds With.

Deny Parents Variant​

Deny Parents Variant Properties​

JSON path: deny_parents_variant

NameDefault ValueTypeDescription
chancenot setDecimal numberThe percentage chance of denying the parents' variant.
max_variantnot setStringThe inclusive maximum of the variant range.
min_variantnot setStringThe inclusive minimum of the variant range.

Environment Requirements​

Environment Requirements Properties​

JSON path: environment_requirements

NameDefault ValueTypeDescription
block_typesnot setArray of stringsThe block types required nearby for the entity to breed.
countnot setInteger numberThe number of the required block types nearby for the entity to breed.
radiusnot setDecimal numberHow many blocks radius from the mob's center to search in for the required blocks. Bounded between 0 and 16.

Mutation Factor​

Mutation Factor Properties​

JSON path: mutation_factor

NameDefault ValueTypeDescription
colornot setPercent RangeThe percentage chance of denying the parents' variant.
color (as Decimal number)not setDecimal number
extra_variantnot setPercent RangeThe percentage chance of a mutation on the entity's extra variant type.
extra_variant (as Decimal number)not setDecimal number
variantnot setPercent RangeThe percentage chance of a mutation on the entity's variant type.
variant (as Decimal number)not setDecimal number

Samples​

Chicken​
"minecraft:breedable": {
"require_tame": false,
"breeds_with": {
"minecraft:chicken": {}
},
"breed_items": [
"wheat_seeds",
"beetroot_seeds",
"melon_seeds",
"pumpkin_seeds",
"pitcher_pod",
"torchflower_seeds"
]
}
Cow​
"minecraft:breedable": {
"require_tame": false,
"breed_items": [
"wheat"
],
"breeds_with": {
"minecraft:cow": {}
}
}
Frog​
"minecraft:breedable": {
"breed_items": [
"slime_ball"
],
"breeds_with": {
"minecraft:frog": {
"event": "become_pregnant",
"target": "self"
}
},
"causes_pregnancy": true,
"require_tame": false
}
Goat​
"minecraft:breedable": {
"require_tame": false,
"breed_items": [
"wheat"
],
"breeds_with": {
"minecraft:goat": {}
}
}
Llama​
"minecraft:breedable": {
"require_tame": true,
"breeds_with": {
"minecraft:llama": {}
},
"breed_items": [
"hay_block"
]
}

minecraft:bribeable​

(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_bribeable.md)

Defines the way an entity can get into the 'bribed' state.

Bribeable Properties​

NameDefault ValueTypeDescriptionExample Values
bribe_cooldown2Decimal numberTime in seconds before the Entity can be bribed again.
bribe_itemsnot setArray of stringsThe list of items that can be used to bribe the entity. Can be an array or a single item string.Dolphin: ["fish","salmon"]
bribe_items (as String)not setString

Samples​

Dolphin​
"minecraft:bribeable": {
"bribe_items": [
"fish",
"salmon"
]
}

minecraft:buoyant​

(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_buoyant.md)

Enables an entity to float on the specified liquid blocks.

[!Note] In 1.26.10 the simulate_waves boolean was replaced with the movement_type string field (waves / bobbing / none). big_wave_probability and big_wave_speed only apply when movement_type is waves.

Entity Buoyant Properties​

NameDefault ValueTypeDescriptionExample Values
apply_gravitytrueBoolean true/falseApplies gravity each tick. Causes "movement_type" to be more impactful, but also gravity to be applied more intensely outside liquids.
base_buoyancy1Decimal numberBase buoyancy used to calculate how much will a entity float.
big_wave_probability0.029999999329447746Decimal numberProbability for a big wave hitting the entity. Only used if "movement_type" is "waves".
big_wave_speed10Decimal numberMultiplier for the speed to make a big wave. Triggered depending on "big_wave_probability".
can_auto_step_from_liquidfalseBoolean true/falseWhether the entity can step out of a liquid block onto a neighboring solid block when pushed against it. This item requires a format version of at least 1.26.10.
drag_down_on_buoyancy_removed0Decimal numberHow much an entity will be dragged down when the component is removed.
liquid_blocks (Liquid Blocks)[]Array of Liquid Blocks itemsList of blocks this entity can float on. Must be a liquid block.Xp Orb: ["minecraft:flowing_water","minecraft:water"]
liquid_blocks (as String)not setString
liquid_blocks (as Object)not setObject
movement_typewavesMovement Type choicesType of vertical movement applied to the entity.

movement_type​

Type of vertical movement applied to the entity. waves simulates wave movement based on the entity's speed (default). bobbing moves the entity up and down at a constant pace. none disables wave movement. Replaces the previous simulate_waves boolean. This item requires a format version of at least 1.26.10.

Liquid Blocks​

Liquid Blocks Properties​

JSON path: liquid_blocks

NameDefault ValueTypeDescription
nameString
states{}Integer number
states (as String)not setString
states (as Boolean true/false)not setBoolean true/false
tagsString

Movement Type choices​

ValueTitleDescription
bobbingBobbing
noneNone
wavesWaves

Samples​

Xp Orb​
"minecraft:buoyant": {
"apply_gravity": false,
"liquid_blocks": [
"minecraft:flowing_water",
"minecraft:water"
]
}

minecraft:burns_in_daylight​

(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_burns_in_daylight.md)

Specifies that this entity takes fire damage when exposed to direct sunlight. This component is used by undead mobs like zombies, skeletons, and phantoms. The entity will catch fire when in sunlight unless it is wearing armor in the protection slot, standing in water, or in a shaded area.

Entity Burns In Daylight Properties​

NameDefault ValueTypeDescription
protection_slotslot.armor.headProtection Slot choicesThe equipment slot that provides protection from burning in sunlight.

protection_slot​

The equipment slot that provides protection from burning in sunlight. If armor is equipped in this slot, the entity will not burn. Commonly set to 'slot.armor.head' for helmets or 'slot.armor.body' for horse armor. This item requires a format version of at least 1.21.130.

Protection Slot choices​

ValueTitleDescription
slot.armor.bodySlot.armor.body
slot.armor.chestSlot.armor.chest
slot.armor.feetSlot.armor.feet
slot.armor.headSlot.armor.head
slot.armor.legsSlot.armor.legs
slot.weapon.mainhandSlot.weapon.mainhand
slot.weapon.offhandSlot.weapon.offhand

Samples​

Bogged​
"minecraft:burns_in_daylight": {}

minecraft:can_climb​

(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_can_climb.md)

Allows an entity to climb ladders.

Samples​

Blaze​
"minecraft:can_climb": {}

minecraft:can_fly​

(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_can_fly.md)

Marks the entity as being able to fly, the pathfinder won't be restricted to paths where a solid block is required underneath it.

Samples​

Allay​
"minecraft:can_fly": {}

minecraft:can_join_raid​

(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_can_join_raid.md)

Specifies if an entity can join a raid.

Samples​

minecraft:can_power_jump​

(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_can_power_jump.md)

Allows the entity to power jump like the Horse does in Vanilla.

Samples​

minecraft:cannot_be_attacked​

(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_cannot_be_attacked.md)

When set, blocks entities from attacking the owner entity unless they have the "minecraft:ignore_cannot_be_attacked" component.

[!Note] This item requires a format version of at least 1.21.50.

Samples​

minecraft:celebrate_hunt​

(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_celebrate_hunt.md)

Specifies hunt celebration behaviour.

Celebrate Hunt Properties​

NameDefault ValueTypeDescription
broadcasttrueBoolean true/falseIf true, celebration will be broadcasted to other entities in the radius.
celeberation_targetsnot setMinecraft filterThe list of conditions that target of hunt must satisfy to initiate celebration.
celebrate_soundnot setStringThe sound event to play when the mob is celebrating
duration4Integer numberDuration, in seconds, of celebration
radius16Decimal numberIf broadcast is enabled, specifies the radius in which it will notify other entities for celebration.
sound_interval0Range of integersThe range of time in seconds to randomly wait before playing the sound again.

Samples​

minecraft:collision_box​

(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_collision_box.md)

Sets the width and height of the Entity's collision box.

Entity Collision Box Properties​

NameDefault ValueTypeDescriptionExample Values
height1.7999999523162842Decimal numberHeight of the collision box in blocks. A negative value will be assumed to be 0. Value must be >= -100000000. Value must be <= 100000000.Allay: 0.6, Armor Stand: 1.975, Arrow: 0.25
width0.6000000238418579Decimal numberWidth and Depth of the collision box in blocks. A negative value will be assumed to be 0. Value must be >= -100000000. Value must be <= 100000000.Allay: 0.35, Armor Stand: 0.5, Arrow: 0.25

Samples​

Allay​
"minecraft:collision_box": {
"height": 0.6,
"width": 0.35
}
Armor Stand​
"minecraft:collision_box": {
"height": 1.975,
"width": 0.5
}
Arrow​
"minecraft:collision_box": {
"height": 0.25,
"width": 0.25
}
Bat​
"minecraft:collision_box": {
"height": 0.9,
"width": 0.5
}
Blaze​
"minecraft:collision_box": {
"height": 1.8,
"width": 0.5
}

minecraft:color​

(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_color.md)

Defines the entity's main color.

[!Note] This attribute only works on vanilla entities that have predefined color values (sheep, llama, shulker).

Color Properties​

NameDefault ValueTypeDescription
value0Integer numberThe Palette Color value of the entity.

Samples​

minecraft:color2​

(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_color2.md)

Defines the entity's second texture color.

[!Note] Only works on vanilla entities that have a second predefined color values (tropical fish).

Color2 Properties​

NameDefault ValueTypeDescription
value0Integer numberThe second Palette Color value of the entity.

Samples​

Sources
idSourceLicenseCommitAccessed
ms-learnMinecraft Creator documentation (Microsoft Learn)CC BY 4.0 (documentation), MIT (code)a9fd1c02026-11-13