Entity component reference (9/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:ignore_cannot_be_attacked
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_ignore_cannot_be_attacked.md)
Allows the owner entity to ignore the "minecraft:cannot_be_attacked" component on entities that fulfill the filter.
[!Note] This item requires a format version of at least 1.21.50.
Entity Ignore Cannot Be Attacked Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| filters (Filters) | {"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null} | Filters item | Defines which entities are exceptions and are allowed to be attacked by the owner entity, potentially attacked entity is subject "other". |
| filters (Alternate 1) | not set | Object |
filters
Defines which entities are exceptions and are allowed to be attacked by the owner entity, potentially attacked entity is subject "other". If this is not specified then all attacks by the owner are allowed.
Filters
Filters Properties
JSON path: filters
| Name | Default Value | Type | Description |
|---|---|---|---|
| domain | not set | Object | The domain the test should be performed in. |
| operator | not set | Object | The comparison to apply with 'value'. |
| subject | not set | Object | The subject of this filter test. |
| test | not set | String | The name of the test to apply. |
| value | not set | Object | The value being compared with the test. |
minecraft:input_air_controlled
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_input_air_controlled.md)
When configured as a rideable entity, the entity will be controlled using WASD controls and mouse to move in three dimensions.
[!Note] This item requires a format version of at least 1.21.90.
Input Air Controlled Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| backwards_movement_modifier | 0.5 | Decimal number | Modifies speed going backwards. | Happy Ghast: 0.5 |
| strafe_speed_modifier | 0.4 | Decimal number | Modifies the strafe speed. | Happy Ghast: 1 |
Samples
Happy Ghast
"minecraft:input_air_controlled": {
"strafe_speed_modifier": 1,
"backwards_movement_modifier": 0.5
}
minecraft:input_ground_controlled
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_input_ground_controlled.md)
When configured as a rideable entity, the entity will be controlled using WASD controls. Beginning with 1.19.50 the default auto step height for rideable entities is half a block. Consider adding the "minecraft:variable_max_auto_step" component to increase it.
Samples
minecraft:inside_block_notifier
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_inside_block_notifier.md)
Verifies whether the entity is inside any of the listed blocks.
Inside Block Notifier Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| block_list | not set | Array of Block List items | List of blocks, with certain block states, that we are monitoring to see if the entity is inside. | Boat: [{"block":{"name":"minecraft:bubble_column","states":{"drag_down":true}},"entered_block_event":{"event":"minecraft:entered_bubble_column_down","target":"self"},"exited_block_event":{"event":"minecraft:exited_bubble_column","target":"self"}},{"block":{"name":"minecraft:bubble_column","states":{"drag_down":false}},"entered_block_event":{"event":"minecraft:entered_bubble_column_up","target":"self"},"exited_block_event":{"event":"minecraft:exited_bubble_column","target":"self"}}] |
Block List
Block Entry Properties
JSON path: block_list
| Name | Default Value | Type | Description |
|---|---|---|---|
| block | not set | Block item | The block to monitor, including name and optional states. |
| entered_block_event | not set | Minecraft Event Trigger | Event to fire when the entity enters the block. |
| exited_block_event | not set | Minecraft Event Trigger | Event to fire when the entity exits the block. |
Block
Block Descriptor Properties
JSON path: block_list > block
| Name | Default Value | Type | Description |
|---|---|---|---|
| name | not set | String | The block identifier. |
| states | not set | Keyed collection of boolean values | Block states to match. |
Samples
Boat
"minecraft:inside_block_notifier": {
"block_list": [
{
"block": {
"name": "minecraft:bubble_column",
"states": {
"drag_down": true
}
},
"entered_block_event": {
"event": "minecraft:entered_bubble_column_down",
"target": "self"
},
"exited_block_event": {
"event": "minecraft:exited_bubble_column",
"target": "self"
}
},
{
"block": {
"name": "minecraft:bubble_column",
"states": {
"drag_down": false
}
},
"entered_block_event": {
"event": "minecraft:entered_bubble_column_up",
"target": "self"
},
"exited_block_event": {
"event": "minecraft:exited_bubble_column",
"target": "self"
}
}
]
}
minecraft:insomnia
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_insomnia.md)
Adds a timer since last rested to see if phantoms should spawn.
Entity Insomnia Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| days_until_insomnia | 3 | Decimal number | Number of days the mob has to stay up until the insomnia effect begins. | Player: 3 |
Samples
Player
"minecraft:insomnia": {
"days_until_insomnia": 3
}
minecraft:instant_despawn
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_instant_despawn.md)
Despawns the Actor immediately.
Entity Instant Despawn Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| remove_child_entities | false | Boolean true/false | If true, all entities linked to this entity in a child relationship (eg. leashed) will also be despawned. |
Samples
minecraft:interact
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_interact.md)
Defines interactions with this entity.
[!Note] In 1.26.0, the
swingfield on each interaction entry defaults totrue(it previously defaulted tofalse). Set it explicitly tofalseto opt out of the player's swing animation.
Entity Interact Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| cooldown | 0 | Decimal number | Time in seconds before this entity can be interacted with again. |
| cooldown_after_being_attacked | 0 | Decimal number | Time in seconds before this entity can be interacted with after being attacked. |
| drop_item_slot | not set | String | The entity's slot to remove and drop the item from, if any, upon successful interaction. |
| drop_item_y_offset | 0 | Decimal number | Will offset the item drop position this amount in the y direction. Requires "drop_item_slot" to be specified. |
| equip_item_slot | not set | String | The entity's slot to equip the item to, if any, upon successful interaction. |
| health_amount | 0 | Integer number | The amount of health this entity will recover or lose when interacting with this item. Negative values will harm the entity. |
| hurt_item | 0 | Integer number | The amount of damage the item will take when used to interact with this entity. A value of 0 means the item won't lose durability. |
| interact_text | not set | String | Text to show when the player is able to interact in this way with this entity when playing with touch-screen controls. |
| interactions (Entity InteractionData) | [] | Array of Interactions items | The list of interactions for this entity. |
| interactions (as Object) | not set | Object |
drop_item_slot
The entity's slot to remove and drop the item from, if any, upon successful interaction. Inventory slots are denoted by positive numbers. Equipment slots are denoted by 'slot.weapon.mainhand', 'slot.weapon.offhand', 'slot.armor.head', 'slot.armor.chest', 'slot.armor.legs', 'slot.armor.feet' and 'slot.armor.body'.
equip_item_slot
The entity's slot to equip the item to, if any, upon successful interaction. Inventory slots are denoted by positive numbers. Equipment slots are denoted by 'slot.weapon.mainhand', 'slot.weapon.offhand', 'slot.armor.head', 'slot.armor.chest', 'slot.armor.legs', 'slot.armor.feet' and 'slot.armor.body'.
Entity InteractionData
Entity InteractionData Properties
JSON path: interactions
| Name | Default Value | Type | Description |
|---|---|---|---|
| add_items | {"table":""} | Add Items item | Loot table with items to add to the player's inventory upon successful interaction. |
| admire | false | Boolean true/false | If true, the mob that's interacted with will try to do an admire action after interaction. For this to be successful the mob has to have an Admire component and an Admire goal in place. |
| barter | false | Boolean true/false | If true, the mob that's interacted with will try to do a barter action after interaction. For this to be successful the mob has to have a Barter component and a Barter goal in place. |
| cooldown | 0 | Decimal number | Time in seconds before this entity can be interacted with again. |
| cooldown_after_being_attacked | 0 | Decimal number | Time in seconds before this entity can be interacted with after being attacked. |
| drop_item_slot | not set | String | The entity's slot to remove and drop the item from, if any, upon successful interaction. |
| drop_item_y_offset | 0 | Decimal number | Will offset the item drop position this amount in the y direction. Requires "drop_item_slot" to be specified. |
| equip_item_slot | not set | String | The entity's slot to equip the item to, if any, upon successful interaction. |
| give_item | false | Boolean true/false | If true, the mob that's interacted with will try to replace its current main-hand item with the interactable item after interaction. |
| health_amount | 0 | Integer number | The amount of health this entity will recover or lose when interacting with this item. Negative values will harm the entity. |
| hurt_item | 0 | Integer number | The amount of damage the item will take when used to interact with this entity. A value of 0 means the item won't lose durability. |
| interact_text | String | Text to show when the player is able to interact in this way with this entity when playing with touch-screen controls. | |
| on_interact | {"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"} | Interact item | Event to fire when the interaction occurs. |
| particle_on_start | {"copper_event":"none","particle_offset_towards_interactor":false,"particle_type":"none","particle_y_offset":0} | Particle On Start item | Particle effect that will be triggered at the start of the interaction. |
| play_sounds | [] | Array of strings | List of sounds to play when the interaction occurs. |
| repair_entity_item | {"amount":1,"slot":null} | Repair Entity Item item | Allows to repair one of the entity's items. |
| spawn_entities | [] | Array of strings | List of entities to spawn when the interaction occurs. |
| spawn_items | {"table":"","y_offset":1} | Spawn Items item | Loot table with items to drop on the ground upon successful interaction. |
| swing | true | Boolean true/false | If true, the player will do the 'swing' animation when interacting with this entity. |
| take_item | false | Boolean true/false | If true, the mob that's interacted with will try to replace its current main-hand item with an empty item, and its current main-hand item will occupy the empty selected slot of the player. |
| transform_to_item | String | The item used will transform to this item upon successful interaction. Format: itemName:auxValue | |
| use_item | false | Boolean true/false | If true, the interaction will use an item. |
| vibration | entity_interact | Vibration choices | Vibration to emit when the interaction occurs. |
drop_item_slot
The entity's slot to remove and drop the item from, if any, upon successful interaction. Inventory slots are denoted by positive numbers. Equipment slots are denoted by 'slot.weapon.mainhand', 'slot.weapon.offhand', 'slot.armor.head', 'slot.armor.chest', 'slot.armor.legs', 'slot.armor.feet' and 'slot.armor.body'.
equip_item_slot
The entity's slot to equip the item to, if any, upon successful interaction. Inventory slots are denoted by positive numbers. Equipment slots are denoted by 'slot.weapon.mainhand', 'slot.weapon.offhand', 'slot.armor.head', 'slot.armor.chest', 'slot.armor.legs', 'slot.armor.feet' and 'slot.armor.body'.
Entity AddItemsData
Entity AddItemsData Properties
JSON path: interactions > add_items
| Name | Default Value | Type | Description |
|---|---|---|---|
| table | not set | String | File path, relative to the Behavior Pack's path, to the loot table file. |
Entity ActorDefinitionTrigger
Triggers an entity event when specified conditions are met. Events activate component groups that change entity behavior—transforming villagers into zombie villagers, switching mobs to aggressive mode, or triggering growth stages. Combine with filters to create conditional state machines that respond to gameplay.
Entity ActorDefinitionTrigger Properties
JSON path: interactions > on_interact
| Name | Default Value | Type | Description |
|---|---|---|---|
| event | String | ||
| filters (Filters) | {"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null} | Filters item | Filters allow data objects to specify test criteria which allows their use. |
| filters (Alternate 1) | not set | Object | |
| target | self | Target choices |
filters
Filters allow data objects to specify test criteria which allows their use. Filters can be defined by a single object of type (Filter Test), an array of tests, collection groups, or a combination of these objects.
Filters
Filters Properties
JSON path: interactions > on_interact > filters
| Name | Default Value | Type | Description |
|---|---|---|---|
| domain | not set | Object | The domain the test should be performed in. |
| operator | not set | Object | The comparison to apply with 'value'. |
| subject | not set | Object | The subject of this filter test. |
| test | not set | String | The name of the test to apply. |
| value | not set | Object | The value being compared with the test. |
Target choices
| Value | Title | Description |
|---|---|---|
| baby | Baby | |
| block | Block | |
| damager | Damager | |
| holder | Holder | |
| item | Item | |
| other | Other | |
| parent | Parent | |
| player | Player | |
| self | Self | |
| target | Target |
Entity InteractParticleData
Entity InteractParticleData Properties
JSON path: interactions > particle_on_start
| Name | Default Value | Type | Description |
|---|---|---|---|
| copper_event | none | Copper Event choices | |
| particle_offset_towards_interactor | false | Boolean true/false | Whether or not the particle will appear closer to who performed the interaction. |
| particle_type | none | Particle Type choices | The type of particle that will be spawned. |
| particle_y_offset | 0 | Decimal number | Will offset the particle this amount in the y direction. |
Copper Event choices
| Value | Title | Description |
|---|---|---|
| none | None | |
| scrape | Scrape | |
| wax_off | Wax off | |
| wax_on | Wax on |
Particle Type choices
| Value | Title | Description |
|---|---|---|
| balloongas | Balloongas | |
| bleach | Bleach | |
| blockforcefield | Blockforcefield | |
| blueflame | Blueflame | |
| breezewindexplosion | Breezewindexplosion | |
| bubble | Bubble | |
| bubblecolumndown | Bubblecolumndown | |
| bubblecolumnup | Bubblecolumnup | |
| bubblemanual | Bubblemanual | |
| campfiresmoke | Campfiresmoke | |
| campfiresmoketall | Campfiresmoketall | |
| candleflame | Candleflame | |
| carrotboost | Carrotboost | |
| coloredflame | Coloredflame | |
| conduit | Conduit | |
| creakingcrumble | Creakingcrumble | |
| crit | Crit | |
| dragonbreath | Dragonbreath | |
| dragonbreathfire | Dragonbreathfire | |
| dragonbreathtrail | Dragonbreathtrail | |
| dragondestroyblock | Dragondestroyblock | |
| driphoney | Driphoney | |
| driplava | Driplava | |
| dripwater | Dripwater | |
| dustplume | Dustplume | |
| electricspark | Electricspark | |
| enchantingtable | Enchantingtable | |
| endrod | Endrod | |
| evaporation | Evaporation | |
| explode | Explode | |
| eyeblossomclose | Eyeblossomclose | |
| eyeblossomopen | Eyeblossomopen | |
| fallingborderdust | Fallingborderdust | |
| fallingdust | Fallingdust | |
| fireworks | Fireworks | |
| fireworksoverlay | Fireworksoverlay | |
| fireworksstarter | Fireworksstarter | |
| flame | Flame | |
| food | Food | |
| greenflame | Greenflame | |
| heart | Heart | |
| hugeexplosion | Hugeexplosion | |
| iceballbreak | Iceballbreak | |
| iconcrack | Iconcrack | |
| ink | Ink | |
| largeexplode | Largeexplode | |
| largesmoke | Largesmoke | |
| lava | Lava | |
| mobappearance | Mobappearance | |
| mobflame | Mobflame | |
| mobspell | Mobspell | |
| mobspellambient | Mobspellambient | |
| mobspellinstantaneous | Mobspellinstantaneous | |
| myceliumdust | Myceliumdust | |
| none | None | |
| note | Note | |
| obsidiantear | Obsidiantear | |
| orangepoplarleaves | Orangepoplarleaves | |
| paleoakleaves | Paleoakleaves | |
| pausemobgrowth | Pausemobgrowth | |
| portal | Portal | |
| portalreverse | Portalreverse | |
| rainsplash | Rainsplash | |
| reddust | Reddust | |
| redpoplarleaves | Redpoplarleaves | |
| resetmobgrowth | Resetmobgrowth | |
| risingborderdust | Risingborderdust | |
| sculksoul | Sculksoul | |
| shriek | Shriek | |
| shulkerbullet | Shulkerbullet | |
| slime | Slime | |
| smoke | Smoke | |
| sneeze | Sneeze | |
| snowballpoof | Snowballpoof | |
| snowflake | Snowflake | |
| sonicexplosion | Sonicexplosion | |
| soul | Soul | |
| sparkler | Sparkler | |
| spit | Spit | |
| stalactitedriplava | Stalactitedriplava | |
| stalactitedripwater | Stalactitedripwater | |
| sulfurcube | Sulfurcube | |
| terrain | Terrain | |
| totem | Totem | |
| townaura | Townaura | |
| trackingemitter | Trackingemitter | |
| vaultconnection | Vaultconnection | |
| villagerangry | Villagerangry | |
| villagerhappy | Villagerhappy | |
| watersplash | Watersplash | |
| watersplashmanual | Watersplashmanual | |
| waterwake | Waterwake | |
| wax | Wax | |
| whitesmoke | Whitesmoke | |
| windexplosion | Windexplosion | |
| witchspell | Witchspell | |
| wolfarmorcrack | Wolfarmorcrack | |
| yellowpoplarleaves | Yellowpoplarleaves |
Entity RepairEntityItemData
Entity RepairEntityItemData Properties
JSON path: interactions > repair_entity_item
| Name | Default Value | Type | Description |
|---|---|---|---|
| amount | 1 | Integer number | How much of the item durability should be restored upon interaction. Value must be > 0. |
| slot | not set | String | The entity's slot containing the item to be repaired. |
slot
The entity's slot containing the item to be repaired. Inventory slots are denoted by positive numbers. Equipment slots are denoted by 'slot.weapon.mainhand', 'slot.weapon.offhand', 'slot.armor.head', 'slot.armor.chest', 'slot.armor.legs', 'slot.armor.feet' and 'slot.armor.body'.
Entity SpawnItemsData
Entity SpawnItemsData Properties
JSON path: interactions > spawn_items
| Name | Default Value | Type | Description |
|---|---|---|---|
| table | String | File path, relative to the Behavior Pack's path, to the loot table file. | |
| y_offset | 1 | Decimal number | Will offset the items spawn position this amount in the y direction. |
Vibration choices
| Value | Title | Description |
|---|---|---|
| entity_act | Entity act | |
| entity_die | Entity die | |
| entity_interact | Entity interact | |
| none | None | |
| shear | Shear |
Samples
minecraft:inventory
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_inventory.md)
Defines this entity's inventory properties.
Entity Inventory Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| additional_slots_per_strength | 0 | Integer number | Number of slots that this entity can gain per extra strength. |
| can_be_siphoned_from | false | Boolean true/false | If true, the contents of this inventory can be removed by a hopper. |
| container_type | none | String | Type of container this entity has. Can be horse, minecart_chest, chest_boat, minecart_hopper, inventory, container or hopper. |
| inventory_size | 5 | Integer number | Number of slots the container has. |
| private | false | Boolean true/false | If true, the entity will not drop its inventory on death. |
| restrict_to_owner | false | Boolean true/false | If true, the entity's inventory can only be accessed by its owner or itself. |
Samples
minecraft:is_baby
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_is_baby.md)
Sets that this entity is a baby. This is used to set the is_baby value for use in query functions like Molang and Filters.
Samples
Chicken
"minecraft:is_baby": {}
minecraft:is_charged
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_is_charged.md)
Sets that this entity is charged. This is used to set the is_charged value for use in query functions like Molang and Filters.
Samples
minecraft:is_chested
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_is_chested.md)
Sets that this entity is currently carrying a chest.
Samples
Llama
"minecraft:is_chested": {}
minecraft:is_collidable
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_is_collidable.md)
Allows other mobs to have vertical and horizontal collisions with this mob. For a collision to occur, both mobs must have a "minecraft:collision_box" component. This component can only be used on mobs and enables collisions exclusively between mobs. Please note that this type of collision is unreliable for moving collidable mobs. It is recommended to use this component only in scenarios where the collidable mob remains stationary. Collidable behavior is closely related to stackable behavior. While the "minecraft:is_collidable" component governs how other mobs interact with the component's owner, the "minecraft:is_stackable" component describes how an entity interacts with others of its own kind.
Samples
Boat
"minecraft:is_collidable": {}
| id | Source | License | Commit | Accessed |
|---|---|---|---|---|
ms-learn | Minecraft Creator documentation (Microsoft Learn) | CC BY 4.0 (documentation), MIT (code) | a9fd1c0 | 2026-11-13 |