Skip to main content

Entity component reference (15/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:pushable​

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

Defines what can push an entity between other entities and pistons.

[!Note] In 1.26.10 this component was split into minecraft:pushable_by_block (pistons and Shulker Boxes, equivalent to is_pushable_by_piston: true) and minecraft:pushable_by_entity (other entities, equivalent to is_pushable: true). The original minecraft:pushable component is no longer parsed.

[!Note] This item no longer works after format versions of at least 1.26.10.

Pushable Properties​

NameDefault ValueTypeDescriptionExample Values
is_pushabletrueBoolean true/falseWhether the entity can be pushed by other entities.Allay: true
is_pushable_by_pistontrueBoolean true/falseWhether the entity can be pushed by pistons safely.Allay: true

Samples​

Allay​
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
}
Armor Stand​
"minecraft:pushable": {
"is_pushable": false,
"is_pushable_by_piston": true
}

minecraft:pushable_by_block​

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

Allows the entity to be pushed by certain blocks, like Shulker Boxes and Pistons.

[!Note] Added in 1.26.10 as part of the split of minecraft:pushable into minecraft:pushable_by_block (pistons and Shulker Boxes) and minecraft:pushable_by_entity (other entities). The legacy minecraft:pushable component is no longer parsed.

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

Samples​

Armor Stand​
"minecraft:pushable_by_block": {}

minecraft:pushable_by_entity​

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

Allows an entity to be pushed by other entities.

[!Note] Added in 1.26.10 as part of the split of minecraft:pushable into minecraft:pushable_by_block (pistons and Shulker Boxes) and minecraft:pushable_by_entity (other entities). The legacy minecraft:pushable component is no longer parsed.

[!Note] Released out of beta in format version 1.26.30. The presets field replaces the previous flat property layout; the preset field max_distance was renamed from kick_distance_threshold.

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

Entity Pushable By Entity Properties​

NameDefault ValueTypeDescriptionExample Values
presets[]Array of Presets itemsDefines how this entity behaves when pushed by another entity. The first preset whose "filter" conditions are met will be applied; if none match, a default configuration is used instead.Boat: [{"filters":{"all_of":[{"test":"is_family","subject":"other","value":"sulfur_cube"},{"test":"enum_property","subject":"other","domain":"minecraft:sulfur_cube_archetype","operator":"not","value":"none"},{"test":"is_controlling_passenger_family","subject":"self","value":"player"}]},"push_mode":"none"},{"push_mode":"legacy_boat","strength_multiplier":0.1,"min_distance":0.55,"push_scale_self":0.5,"push_scale_other":0.25}]

Entity PushableByEntityPreset​

Entity PushableByEntityPreset Properties​

JSON path: presets

NameDefault ValueTypeDescription
filters (Filters){"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null}Filters itemConditions that must be met for this preset to be applied.
filters (Alternate 1)not setObject
kick_speed_scale2Decimal numberMultiplier applied to the pushing entity's movement speed to determine kick force. Only used when push_mode is "ball".
max_distance3.4028234663852886e+38Decimal numberMaximum horizontal distance between the center of the pushed entity and the collision of the pushing entity for push forces to be applied. Entities further apart than this will not push each other.
max_kick_speed0.5Decimal numberMaximum speed the entity can be pushed back at, regardless of how fast the pushing entity is moving. Only used when push_mode is "ball".
min_distance0.009999999776482582Decimal numberMinimum horizontal distance between the centers of the two entities for push forces to be applied. Entities closer than this will not push each other.
min_kick_speed0Decimal numberMinimum speed the the entity will be pushed back at, regardless of how slowly the pushing entity is moving. Only used when push_mode is "ball".
play_soundfalseBoolean true/falseIf the "pushed_by_player" sound should be played when the entity is pushed by any other entity (despite the sound name).
play_sound_cooldown_in_seconds0.20000000298023224Decimal numberCooldown in seconds between sounds. A lower number results in more sounds.
play_sound_impulse_threshold0.20000000298023224Decimal numberMinimum change of velocity needed to trigger the push sound. A lower value means higher sensitivity.
push_modedefaultPush Mode choicesDefines the type of push vector calculation applied to the entity: - "none": The entity cannot be pushed.
push_scale_other1Decimal numberScales how much push force this entity applies to the other entity when colliding. A value of 1.0 applies full force, 0.5 applies half.
push_scale_self1Decimal numberScales how much this entity pushes itself away when colliding with another entity. A value of 1.0 applies full force, 0.5 applies half.
require_collision_overlaptrueBoolean true/falseWhen true, entities will not push each other unless their collision boxes overlap.
strength_multiplier0.05000000074505806Decimal numberMultiplier applied to the push strength. Higher values result in stronger pushes.
vertical_kick_multiplier0.30000001192092896Decimal numberMultiplier for the upward force applied when the entity is pushed while on the ground. A value of 0 keeps the entity flat. Only used when push_mode is "ball".
push_mode​

Defines the type of push vector calculation applied to the entity: - "none": The entity cannot be pushed. - "default": Standard push calculations used by most entities. - "legacy_boat": Legacy push calculations historically used by boats. Includes dampened forces and sneak-based cancellation. - "legacy_minecart": Legacy push calculations historically used by minecarts. Includes alignment-based collision handling and velocity averaging.- "ball": Push calculation resulting in a behavior similar to kicking a ball. The entity is propelled in the direction of the pusher’s movement, with force scaled by their speed.

Filters​
Filters Properties​

JSON path: presets > filters

NameDefault ValueTypeDescription
domainnot setObjectThe domain the test should be performed in.
operatornot setObjectThe comparison to apply with 'value'.
subjectnot setObjectThe subject of this filter test.
testnot setStringThe name of the test to apply.
valuenot setObjectThe value being compared with the test.

Push Mode choices​

ValueTitleDescription
ballBall
defaultDefault
legacy_boatLegacy boat
legacy_minecartLegacy minecart
noneNone

Samples​

Blaze​
"minecraft:pushable_by_entity": {}
Boat​
"minecraft:pushable_by_entity": {
"presets": [
{
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"value": "sulfur_cube"
},
{
"test": "enum_property",
"subject": "other",
"domain": "minecraft:sulfur_cube_archetype",
"operator": "not",
"value": "none"
},
{
"test": "is_controlling_passenger_family",
"subject": "self",
"value": "player"
}
]
},
"push_mode": "none"
},
{
"push_mode": "legacy_boat",
"strength_multiplier": 0.1,
"min_distance": 0.55,
"push_scale_self": 0.5,
"push_scale_other": 0.25
}
]
}

minecraft:raid_trigger​

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

Attempts to trigger a raid at the entity's location.

Raid Trigger Properties​

NameDefault ValueTypeDescriptionExample Values
minecraft:raid_triggernot setRaid Trigger itemPlayer: {"triggered_event":{"event":"minecraft:remove_raid_trigger","target":"self"}}
triggered_eventnot setMinecraft Event TriggerEvent to run when a raid is triggered on the village.

Raid Trigger​

Samples​

Player​
"minecraft:raid_trigger": {
"minecraft:raid_trigger": {
"triggered_event": {
"event": "minecraft:remove_raid_trigger",
"target": "self"
}
}
}

minecraft:rail_movement​

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

Defines the entity's movement on the rails. An entity with this component is only allowed to move on the rail.

Entity Rail Movement Properties​

NameDefault ValueTypeDescription
max_speed0.4000000059604645Decimal numberMaximum speed that this entity will move at when on the rail.

Samples​

Chest Minecart​
"minecraft:rail_movement": {}

minecraft:rail_sensor​

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

Enables minecart-type entities to detect powered rails and respond to activation state changes. Triggers events when the entity passes over activated or deactivated rails, enabling custom minecart behaviors like launching at boosted speed, stopping at braking rails, or triggering special effects at detector rails.

Rail Sensor Properties​

NameDefault ValueTypeDescriptionExample Values
check_block_typesfalseBoolean true/falseIf true, on tick this entity will trigger its on_deactivate behaviorCommand Block Minecart: true
eject_on_activatetrueBoolean true/falseIf true, this entity will eject all of its riders when it passes over an activated railMinecart: true
eject_on_deactivatefalseBoolean true/falseIf true, this entity will eject all of its riders when it passes over a deactivated rail
on_activatenot setMinecraft Event TriggerEvent to call when the rail is activatedCommand Block Minecart: {"event":"minecraft:command_block_activate"}, Hopper Minecart: {"event":"minecraft:hopper_deactivate"}, Tnt Minecart: {"event":"minecraft:on_prime","filters":{"all_of":[{"domain":"tntexplodes","operator":"==","test":"is_game_rule","value":true}]}}
on_deactivatenot setMinecraft Event TriggerEvent to call when the rail is deactivatedCommand Block Minecart: {"event":"minecraft:command_block_deactivate"}, Hopper Minecart: {"event":"minecraft:hopper_activate"}
tick_command_block_on_activatetrueBoolean true/falseIf true, command blocks will start ticking when passing over an activated railCommand Block Minecart: true
tick_command_block_on_deactivatefalseBoolean true/falseIf false, command blocks will stop ticking when passing over a deactivated rail

Samples​

Command Block Minecart​

At /minecraft:entity/component_groups/minecraft:command_block_active/minecraft:rail_sensor/:

"minecraft:rail_sensor": {
"check_block_types": true,
"on_deactivate": {
"event": "minecraft:command_block_deactivate"
},
"eject_on_activate": false,
"eject_on_deactivate": false,
"tick_command_block_on_activate": true,
"tick_command_block_on_deactivate": false
}

At /minecraft:entity/component_groups/minecraft:command_block_inactive/minecraft:rail_sensor/:

"minecraft:rail_sensor": {
"check_block_types": false,
"eject_on_activate": false,
"eject_on_deactivate": false,
"on_activate": {
"event": "minecraft:command_block_activate"
},
"tick_command_block_on_activate": true,
"tick_command_block_on_deactivate": false
}
Hopper Minecart​

At /minecraft:entity/component_groups/minecraft:hopper_active/minecraft:rail_sensor/:

"minecraft:rail_sensor": {
"on_activate": {
"event": "minecraft:hopper_deactivate"
}
}

At /minecraft:entity/component_groups/minecraft:hopper_inactive/minecraft:rail_sensor/:

"minecraft:rail_sensor": {
"on_deactivate": {
"event": "minecraft:hopper_activate"
}
}
Minecart​
"minecraft:rail_sensor": {
"eject_on_activate": true
}
Tnt Minecart​

At /minecraft:entity/component_groups/minecraft:inactive/minecraft:rail_sensor/:

"minecraft:rail_sensor": {
"on_activate": {
"event": "minecraft:on_prime",
"filters": {
"all_of": [
{
"domain": "tntexplodes",
"operator": "==",
"test": "is_game_rule",
"value": true
}
]
}
}
}

At /minecraft:entity/component_groups/minecraft:instant_explode_tnt/minecraft:rail_sensor/:

"minecraft:rail_sensor": {}

minecraft:ravager_blocked​

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

Defines the ravager's response to their melee attack being blocked.

Ravager Blocked Properties​

NameDefault ValueTypeDescription
knockback_strength3Decimal numberThe strength with which blocking entities should be knocked back
reaction_choices[ ]Array of stringsA list of weighted responses to the melee attack being blocked

Samples​

minecraft:reflect_projectiles​

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

[EXPERIMENTAL] Allows an entity to reflect projectiles.

Reflect Projectiles Properties​

NameDefault ValueTypeDescriptionExample Values
azimuth_angle0String[EXPERIMENTAL] A Molang expression defining the angle in degrees to add to the projectile's y axis rotation.Breeze: "180.0 + Math.random(-20.0, 20.0)"
elevation_angle0String[EXPERIMENTAL] A Molang expression defining the angle in degrees to add to the projectile's x axis rotation.
reflected_projectilesnot setArray of strings[EXPERIMENTAL] An array of strings defining the types of projectiles that are reflected when they hit the entity.Breeze: ["xp_bottle","thrown_trident","shulker_bullet","dragon_fireball","arrow","snowball","egg","fireball","splash_potion","ender_pearl","wither_skull","wither_skull_dangerous","small_fireball","lingering_potion","llama_spit","fireworks_rocket","fishing_hook"]
reflection_scale1String[EXPERIMENTAL] A Molang expression defining the velocity scaling of the reflected projectile. Values below 1 decrease the projectile's velocity, and values above 1 increase it.Breeze: "0.5"
reflection_soundreflectString[EXPERIMENTAL] A string defining the name of the sound event to be played when a projectile is reflected. "reflect" unless specified.

Samples​

Breeze​
"minecraft:reflect_projectiles": {
"azimuth_angle": "180.0 + Math.random(-20.0, 20.0)",
"reflected_projectiles": [
"xp_bottle",
"thrown_trident",
"shulker_bullet",
"dragon_fireball",
"arrow",
"snowball",
"egg",
"fireball",
"splash_potion",
"ender_pearl",
"wither_skull",
"wither_skull_dangerous",
"small_fireball",
"lingering_potion",
"llama_spit",
"fireworks_rocket",
"fishing_hook"
],
"reflection_scale": "0.5"
}

minecraft:remove_in_peaceful​

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

Denotes entities that are not allowed to exist in "Peaceful" difficulty.

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

Samples​

Blaze​
"minecraft:remove_in_peaceful": {}

minecraft:renders_when_invisible​

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

When set, the entity will render even when invisible. Appropriate rendering behavior can then be specified in the corresponding "minecraft:client_entity".

Samples​

Cave Spider​
"minecraft:renders_when_invisible": {}
Sources
idSourceLicenseCommitAccessed
ms-learnMinecraft Creator documentation (Microsoft Learn)CC BY 4.0 (documentation), MIT (code)a9fd1c02026-11-13