Skip to main content

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​

NameDefault ValueTypeDescriptionExample Values
on_bredMolangA 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 setKey/item pairs of Bred (Legacy Molang Expression) items
on_bred (as Decimal number)not setDecimal number
on_deathMolangA 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 setKey/item pairs of Death (Legacy Molang Expression) items
on_death (as Decimal number)not setDecimal number

Legacy Molang Expression​

Legacy Molang Expression Properties​

JSON path: on_bred

NameDefault ValueTypeDescription
expressionnot setString
versionnot setInteger 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​

NameDefault ValueTypeDescriptionExample Values
addnot setAdd itemFireball: {"component_groups":["minecraft:exploding"]}
allow_underwaterfalseBoolean true/falseIf 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_blockstrueBoolean true/falseIf true, the explosion will destroy blocks in the explosion radius.
causes_firefalseBoolean true/falseIf true, blocks in the explosion radius will be set on fire.Fireball: true
damage_scaling1Decimal numberA scale factor applied to the explosion's damage to entities.
destroy_affected_by_griefingfalseBoolean true/falseIf true, whether the explosion breaks blocks is affected by the mob griefing game rule.Ender Crystal: true
fire_affected_by_griefingfalseBoolean true/falseIf true, whether the explosion causes fire is affected by the mob griefing game rule.Fireball: true
fuse_lengthnot setRange of integersThe 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_litfalseBoolean true/falseIf true, the fuse is already lit when this component is added to the entity.Ender Crystal: true
knockback_scaling1Decimal numberA 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_resistance3.40282e+38Decimal numberA blocks explosion resistance will be capped at this value when an explosion occurs.
negates_fall_damagefalseBoolean true/falseDefines 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_effectexplosionStringThe 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"
power3Decimal numberThe 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_effectexplodeStringThe 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_blocksfalseBoolean true/falseIf 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

NameDefault ValueTypeDescriptionExample Values
component_groupsnot setStringFireball: ["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​

NameDefault ValueTypeDescriptionExample Values
block_distance0Decimal numberThe amount of blocks away the entity will look at to push away from.Dolphin: 1
block_weight0Decimal numberThe weight of the push back away from blocks.
breach_influence0Decimal numberThe amount of push back given to a flocker that breaches out of the water.
cohesion_threshold1Decimal numberThe threshold in which to start applying cohesion.Dolphin: 6.5
cohesion_weight1Decimal numberThe weight applied for the cohesion steering of the flock.Dolphin: 1.85
goal_weight0Decimal numberThe weight on which to apply on the goal output.Dolphin: 2
high_flock_limit0Integer numberDetermines the high bound amount of entities that can be allowed in the flock.Dolphin: 8
in_waterfalseBoolean true/falseTells the Flocking Component if the entity exists in water.
influence_radius0Decimal numberThe area around the entity that allows others to be added to the flock.Dolphin: 6
innner_cohesion_threshold0Decimal numberThe distance in which the flocker will stop applying cohesion.Dolphin: 3.5
loner_chance0Decimal numberThe 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_limit0Integer numberDetermines the low bound amount of entities that can be allowed in the flock.Dolphin: 4
match_variantsfalseBoolean true/falseTells 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_height0Decimal numberThe max height allowable in the air or water.Dolphin: 4
min_height0Decimal numberThe min height allowable in the air or water.Dolphin: 4
separation_threshold2Decimal numberThe distance that is determined to be to close to another flocking and to start applying separation.Dolphin: 3
separation_weight1Decimal numberThe weight applied to the separation of the flock.Dolphin: 1.75
use_center_of_massfalseBoolean true/falseTells 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​

NameDefault ValueTypeDescriptionExample Values
value0.02Decimal numberFlying 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​

NameDefault ValueTypeDescriptionExample Values
maxnot setInteger numberMaximum follow distance in blocks. The entity will not pursue targets beyond this range.Blaze: 48, Elder Guardian: 16
valuenot setInteger numberThe 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​

NameDefault ValueTypeDescription
backwards_movement_modifier0.5Decimal numberModifies speed going backwards.
strafe_speed_modifier0.4Decimal numberModifies 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_friction to opt back into the legacy behavior; entities authored against format versions older than 1.26.20 receive it automatically.

Friction Modifier Properties​

NameDefault ValueTypeDescription
value1Decimal numberThe 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​

NameDefault ValueTypeDescriptionExample Values
emit_flapfalseBoolean true/falseIf true, the flap game event will be emitted when the entity moves through air.Allay: true
emit_movetrueBoolean true/falseIf true, the entityMove game event will be emitted when the entity moves on ground or through a solid.
emit_swimtrueBoolean true/falseIf 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
}
Sources
idSourceLicenseCommitAccessed
ms-learnMinecraft Creator documentation (Microsoft Learn)CC BY 4.0 (documentation), MIT (code)a9fd1c02026-11-13