Entity component reference (7/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:experience_reward
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_experience_reward.md)
The original has no description. See the property table.
.
Entity Experience Reward Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| on_bred | Molang | A Molang expression defining the amount of experience rewarded when this entity is successfully bred. | Breeze: "Math.Random(1,7)" | |
| on_bred (as Named set of objects) | not set | Key/item pairs of Bred (Legacy Molang Expression) items | ||
| on_bred (as Decimal number) | not set | Decimal number | ||
| on_death | Molang | A Molang expression defining the amount of experience rewarded when this entity dies. | Blaze: "query.last_hit_by_player ? 10 : 0", Bogged: "query.last_hit_by_player ? 5 + (query.equipment_count * Math.Random(1,3)) : 0", Cave Spider: "query.last_hit_by_player ? 5 : 0" | |
| on_death (as Named set of objects) | not set | Key/item pairs of Death (Legacy Molang Expression) items | ||
| on_death (as Decimal number) | not set | Decimal number |
Legacy Molang Expression
Legacy Molang Expression Properties
JSON path: on_bred
| Name | Default Value | Type | Description |
|---|---|---|---|
| expression | not set | String | |
| version | not set | Integer number |
Samples
Blaze
"minecraft:experience_reward": {
"on_death": "query.last_hit_by_player ? 10 : 0"
}
Bogged
"minecraft:experience_reward": {
"on_death": "query.last_hit_by_player ? 5 + (query.equipment_count * Math.Random(1,3)) : 0"
}
Breeze
"minecraft:experience_reward": {
"on_bred": "Math.Random(1,7)",
"on_death": "query.last_hit_by_player ? 10 : 0"
}
Cave Spider
"minecraft:experience_reward": {
"on_death": "query.last_hit_by_player ? 5 : 0"
}
Chicken
"minecraft:experience_reward": {
"on_bred": "Math.Random(1,7)",
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
}
minecraft:explode
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_explode.md)
Defines how the entity explodes.
Explode Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| add | not set | Add item | Fireball: {"component_groups":["minecraft:exploding"]} | |
| allow_underwater | false | Boolean true/false | If true, the explosion will affect blocks and entities under water. This item requires a format version of at least 1.21.40. | Breeze Wind Charge Projectile: true |
| breaks_blocks | true | Boolean true/false | If true, the explosion will destroy blocks in the explosion radius. | |
| causes_fire | false | Boolean true/false | If true, blocks in the explosion radius will be set on fire. | Fireball: true |
| damage_scaling | 1 | Decimal number | A scale factor applied to the explosion's damage to entities. | |
| destroy_affected_by_griefing | false | Boolean true/false | If true, whether the explosion breaks blocks is affected by the mob griefing game rule. | Ender Crystal: true |
| fire_affected_by_griefing | false | Boolean true/false | If true, whether the explosion causes fire is affected by the mob griefing game rule. | Fireball: true |
| fuse_length | not set | Range of integers | The range for the random amount of time the fuse will be lit before exploding, a negative value means the explosion will be immediate. | Tnt Minecart: 4 |
| fuse_lit | false | Boolean true/false | If true, the fuse is already lit when this component is added to the entity. | Ender Crystal: true |
| knockback_scaling | 1 | Decimal number | A scale factor applied to the knockback force caused by the explosion. This item requires a format version of at least 1.21.40. | Breeze Wind Charge Projectile: 0.6, Wind Charge Projectile: 1.22 |
| max_resistance | 3.40282e+38 | Decimal number | A blocks explosion resistance will be capped at this value when an explosion occurs. | |
| negates_fall_damage | false | Boolean true/false | Defines whether the explosion should apply fall damage negation to Players above the point of collision. This item requires a format version of at least 1.21.40. | Wind Charge Projectile: true |
| particle_effect | explosion | String | The name of the particle effect to use. The accepted strings are 'explosion', 'wind_burst', or 'breeze_wind_burst'. This item requires a format version of at least 1.21.40. | Breeze Wind Charge Projectile: "breeze_wind_burst", Wind Charge Projectile: "wind_burst" |
| power | 3 | Decimal number | The radius of the explosion in blocks and the amount of damage the explosion deals. | Breeze Wind Charge Projectile: 3, Ender Crystal: 6, Fireball: 1 |
| sound_effect | explode | String | The name of the sound effect played when the explosion triggers. This item requires a format version of at least 1.21.40. | Breeze Wind Charge Projectile: "breeze_wind_charge.burst", Wind Charge Projectile: "wind_charge.burst" |
| toggles_blocks | false | Boolean true/false | If true, the explosion will toggle blocks in the explosion radius. This item requires a format version of at least 1.21.40. | Breeze Wind Charge Projectile: true |
damage_scaling
A scale factor applied to the explosion's damage to entities. A value of 0 prevents the explosion from dealing any damage. Negative values cause the explosion to heal entities instead. This item requires a format version of at least 1.21.40.
Add
Add Properties
JSON path: add
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| component_groups | not set | String | Fireball: ["minecraft:exploding"] |
Samples
Breeze Wind Charge Projectile
"minecraft:explode": {
"knockback_scaling": 0.6,
"damage_scaling": 0,
"allow_underwater": true,
"breaks_blocks": false,
"causes_fire": false,
"max_resistance": 0,
"negates_fall_damage": false,
"particle_effect": "breeze_wind_burst",
"toggles_blocks": true,
"power": 3,
"sound_effect": "breeze_wind_charge.burst"
}
Ender Crystal
"minecraft:explode": {
"causes_fire": false,
"fuse_lit": true,
"power": 6,
"destroy_affected_by_griefing": true,
"fuse_length": 0
}
Fireball
At /minecraft:entity/component_groups/minecraft:exploding/minecraft:explode/:
"minecraft:explode": {
"causes_fire": true,
"fire_affected_by_griefing": true,
"fuse_lit": true,
"power": 1,
"destroy_affected_by_griefing": true,
"fuse_length": 0
}
At /minecraft:entity/events/minecraft:explode/:
"minecraft:explode": {
"add": {
"component_groups": [
"minecraft:exploding"
]
}
}
Tnt Minecart
At /minecraft:entity/component_groups/minecraft:instant_explode_tnt/minecraft:explode/:
"minecraft:explode": {
"causes_fire": false,
"fuse_lit": true,
"power": 3,
"fuse_length": 0
}
At /minecraft:entity/component_groups/minecraft:primed_tnt/minecraft:explode/:
"minecraft:explode": {
"causes_fire": false,
"fuse_lit": true,
"power": 3,
"fuse_length": 4
}
Wind Charge Projectile
"minecraft:explode": {
"knockback_scaling": 1.22,
"damage_scaling": 0,
"allow_underwater": true,
"breaks_blocks": false,
"causes_fire": false,
"max_resistance": 0,
"negates_fall_damage": true,
"particle_effect": "wind_burst",
"toggles_blocks": true,
"power": 1.2,
"sound_effect": "wind_charge.burst"
}
minecraft:fire_immune
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_fire_immune.md)
Sets that this entity doesn't take damage from fire.
Samples
Blaze
"minecraft:fire_immune": {}
minecraft:floats_in_liquid
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_floats_in_liquid.md)
Sets that this entity can float in liquid blocks.
minecraft:flocking
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_flocking.md)
Allows entities to flock in groups in water or not.
Entity Flocking Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| block_distance | 0 | Decimal number | The amount of blocks away the entity will look at to push away from. | Dolphin: 1 |
| block_weight | 0 | Decimal number | The weight of the push back away from blocks. | |
| breach_influence | 0 | Decimal number | The amount of push back given to a flocker that breaches out of the water. | |
| cohesion_threshold | 1 | Decimal number | The threshold in which to start applying cohesion. | Dolphin: 6.5 |
| cohesion_weight | 1 | Decimal number | The weight applied for the cohesion steering of the flock. | Dolphin: 1.85 |
| goal_weight | 0 | Decimal number | The weight on which to apply on the goal output. | Dolphin: 2 |
| high_flock_limit | 0 | Integer number | Determines the high bound amount of entities that can be allowed in the flock. | Dolphin: 8 |
| in_water | false | Boolean true/false | Tells the Flocking Component if the entity exists in water. | |
| influence_radius | 0 | Decimal number | The area around the entity that allows others to be added to the flock. | Dolphin: 6 |
| innner_cohesion_threshold | 0 | Decimal number | The distance in which the flocker will stop applying cohesion. | Dolphin: 3.5 |
| loner_chance | 0 | Decimal number | The percentage chance between 0-1 that a fish will spawn and not want to join flocks. Invalid values will be capped at the end points. | Dolphin: 0.1 |
| low_flock_limit | 0 | Integer number | Determines the low bound amount of entities that can be allowed in the flock. | Dolphin: 4 |
| match_variants | false | Boolean true/false | Tells the flockers that they can only match similar entities that also match the variant, mark variants, and color data of the other potential flockers. | |
| max_height | 0 | Decimal number | The max height allowable in the air or water. | Dolphin: 4 |
| min_height | 0 | Decimal number | The min height allowable in the air or water. | Dolphin: 4 |
| separation_threshold | 2 | Decimal number | The distance that is determined to be to close to another flocking and to start applying separation. | Dolphin: 3 |
| separation_weight | 1 | Decimal number | The weight applied to the separation of the flock. | Dolphin: 1.75 |
| use_center_of_mass | false | Boolean true/false | Tells the flockers that they will follow flocks based on the center of mass. |
Samples
Dolphin
"minecraft:flocking": {
"in_water": false,
"match_variants": false,
"use_center_of_mass": false,
"low_flock_limit": 4,
"high_flock_limit": 8,
"goal_weight": 2,
"loner_chance": 0.1,
"influence_radius": 6,
"breach_influence": 0,
"separation_weight": 1.75,
"separation_threshold": 3,
"cohesion_weight": 1.85,
"cohesion_threshold": 6.5,
"innner_cohesion_threshold": 3.5,
"min_height": 4,
"max_height": 4,
"block_distance": 1,
"block_weight": 0
}
minecraft:flying_speed
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_flying_speed.md)
Speed in Blocks that this entity flies at.
Flying Speed Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| value | 0.02 | Decimal number | Flying speed in blocks per tick. | Allay: 0.1, Ender Dragon: 0.6 |
Samples
Allay
"minecraft:flying_speed": {
"value": 0.1
}
Ender Dragon
"minecraft:flying_speed": {
"value": 0.6
}
minecraft:follow_range
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_follow_range.md)
Defines the maximum range, in blocks, that a mob will pursue a target. This affects AI behaviors like chasing players or attacking.
Follow Range Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| max | not set | Integer number | Maximum follow distance in blocks. The entity will not pursue targets beyond this range. | Blaze: 48, Elder Guardian: 16 |
| value | not set | Integer number | The default follow range in blocks. Entities will attempt to stay within this radius of their target. | Allay: 1024, Blaze: 48, Breeze: 32 |
Samples
Allay
"minecraft:follow_range": {
"value": 1024
}
Blaze
"minecraft:follow_range": {
"max": 48,
"value": 48
}
Breeze
"minecraft:follow_range": {
"value": 32
}
Dolphin
"minecraft:follow_range": {
"value": 48,
"max": 48
}
Elder Guardian
"minecraft:follow_range": {
"max": 16,
"value": 16
}
minecraft:free_camera_controlled
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_free_camera_controlled.md)
When configured as a rideable entity, the entity will be controlled using WASD controls and mouse to move in three dimensions.
Free Camera Controlled Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| backwards_movement_modifier | 0.5 | Decimal number | Modifies speed going backwards. |
| strafe_speed_modifier | 0.4 | Decimal number | Modifies the strafe speed. |
Samples
minecraft:friction_modifier
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_friction_modifier.md)
Defines how much friction affects this entity.
[!Note] In format version 1.26.20, the component's behavior was corrected to match its description: higher values cause more friction (0.0 = no friction, 1.0 = regular, 2.0 = double). It now affects ground friction only (no longer partially affecting air or liquid drag) and works correctly on players and other client-predicted entities. Add
minecraft:uses_legacy_frictionto opt back into the legacy behavior; entities authored against format versions older than 1.26.20 receive it automatically.
Friction Modifier Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| value | 1 | Decimal number | The higher the number, the more friction affects this entity. A value of 1.0 means regular friction, while 2.0 means twice as much. |
minecraft:game_event_movement_tracking
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_game_event_movement_tracking.md)
Allows an entity to emit entityMove, swim and flap game events, depending on the block the entity is moving through. It is added by default to every mob. Add it again to override its behavior.
Entity Game Event Movement Tracking Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| emit_flap | false | Boolean true/false | If true, the flap game event will be emitted when the entity moves through air. | Allay: true |
| emit_move | true | Boolean true/false | If true, the entityMove game event will be emitted when the entity moves on ground or through a solid. | |
| emit_swim | true | Boolean true/false | If true, the swim game event will be emitted when the entity moves through a liquid. |
Samples
Allay
"minecraft:game_event_movement_tracking": {
"emit_flap": true
}
| id | Source | License | Commit | Accessed |
|---|---|---|---|---|
ms-learn | Minecraft Creator documentation (Microsoft Learn) | CC BY 4.0 (documentation), MIT (code) | a9fd1c0 | 2026-11-13 |