Entity component reference (18/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:shooter
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_shooter.md)
Defines the entity's ranged attack behavior. The "minecraft:behavior.ranged_attack" goal uses this component to determine which projectiles to shoot.
[!Note] Ammunition used by minecraft:shooter must have the minecraft:projectile component in order to function properly.
[!Note] Expanded in 1.19.60: the
projectileslist can now specify multiple projectile definitions with condition filters, andpower,magic, andsoundare exposed for per-shooter customization.
Shooter Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| aux_val | -1 | Integer number | ID of the Potion effect for the default projectile to be applied on hit. | Bogged: 26 |
| def | not set | String | Actor definition to use as the default projectile for the ranged attack. The actor definition must have the projectile component to be able to be shot as a projectile. | Blaze: "minecraft:small_fireball", Bogged: "minecraft:arrow", Drowned: "minecraft:thrown_trident" |
| magic | false | Boolean true/false | If set, the projectiles are flagged as magic and the ranged attack goal will not run at the same time as other magic goals (for example, drink_potion). | |
| power | 0 | Decimal number | Velocity at which projectiles will be shot. A power of 0 falls back to the default projectile throw power. This item requires a format version of at least 1.19.60. | |
| projectiles | not set | Array of objects | List of projectiles that can be used by the shooter. | |
| sound | not set | String | Sound that is played when the shooter shoots a projectile. | Bogged: "bow", Drowned: "item.trident.throw" |
magic
If set, the projectiles are flagged as magic and the ranged attack goal will not run at the same time as other magic goals (for example, drink_potion). This item requires a format version of at least 1.19.60.
projectiles
List of projectiles that can be used by the shooter. Each entry can specify its own projectile definition and condition filters; entries are evaluated in order and the first match is used. This item requires a format version of at least 1.19.60.
Samples
Blaze
"minecraft:shooter": {
"def": "minecraft:small_fireball"
}
Bogged
At /minecraft:entity/component_groups/minecraft:ranged_attack/minecraft:shooter/:
"minecraft:shooter": {
"aux_val": 26,
"def": "minecraft:arrow",
"sound": "bow"
}
Drowned
"minecraft:shooter": {
"def": "minecraft:thrown_trident",
"sound": "item.trident.throw"
}
Ender Dragon
"minecraft:shooter": {
"def": "minecraft:dragon_fireball"
}
Llama
"minecraft:shooter": {
"def": "minecraft:llama_spit"
}
minecraft:sittable
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_sittable.md)
Defines the entity's 'sit' state.
Sittable Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| sit_event | not set | Object | Event to run when the entity enters the 'sit' state. Can be an object with event and target properties, or a simple event string. |
| sit_event (as String) | not set | String | |
| stand_event | not set | Object | Event to run when the entity exits the 'sit' state. Can be an object with event and target properties, or a simple event string. |
| stand_event (as String) | not set | String |
Samples
Parrot
"minecraft:sittable": {}
minecraft:skin_id
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_skin_id.md)
Skin ID value. Can be used to differentiate skins, such as base skins for villagers.
[!Note] Requires multiple texture sets to be set up for the entity.
Skin Id Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| value | 0 | Integer number | The ID of the skin. By convention, 0 is the ID of the base skin. |
Samples
minecraft:sound_volume
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_sound_volume.md)
Sets the entity's base volume for sound effects.
Sound Volume Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| value | 1 | Decimal number | The value of the volume the entity uses for sound effects. |
minecraft:spawn_egg_interaction
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_spawn_egg_interaction.md)
Enables interacting with this entity using its own spawn egg to spawn a born child. Runs the "minecraft:entity_born" event on the created entity as well as the defined "on_spawn" event.
Samples
Chicken
"minecraft:spawn_egg_interaction": {}
minecraft:spawn_entity
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_spawn_entity.md)
Adds a timer after which this entity will spawn another entity or item (similar to vanilla's chicken's egg-laying behavior).
Spawn Entity Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| entities (Entities) | not set | Array of Entities items | List of entity spawn definitions. Can be a single object or an array of objects. | Chicken: [{"min_wait_time":300,"max_wait_time":600,"spawn_sound":"plop","spawn_item":"egg","filters":[{"test":"rider_count","subject":"self","operator":"==","value":0},{"test":"enum_property","subject":"self","domain":"minecraft:climate_variant","value":"temperate"}]},{"min_wait_time":300,"max_wait_time":600,"spawn_sound":"plop","spawn_item":"brown_egg","filters":[{"test":"rider_count","subject":"self","operator":"==","value":0},{"test":"enum_property","subject":"self","domain":"minecraft:climate_variant","value":"warm"}]},{"min_wait_time":300,"max_wait_time":600,"spawn_sound":"plop","spawn_item":"blue_egg","filters":[{"test":"rider_count","subject":"self","operator":"==","value":0},{"test":"enum_property","subject":"self","domain":"minecraft:climate_variant","value":"cold"}]}], Drowned: {"max_wait_time":0,"min_wait_time":0,"num_to_spawn":1,"single_use":true,"spawn_entity":"minecraft:zombie_nautilus","spawn_event":"minecraft:entity_spawned"}, Sniffer: {"min_wait_time":0,"max_wait_time":0,"spawn_sound":"plop","spawn_item":"sniffer_egg","spawn_item_event":{"event":"on_egg_spawned","target":"self"},"single_use":true} |
| entities (as Object) | not set | Object | ||
| filters | not set | Minecraft filter | If present, the specified entity will only spawn if the filter evaluates to true. | |
| max_wait_time | 600 | Integer number | Maximum amount of time to randomly wait in seconds before another entity is spawned. | |
| min_wait_time | 300 | Integer number | Minimum amount of time to randomly wait in seconds before another entity is spawned. | |
| num_to_spawn | 1 | Integer number | The number of entities of this type to spawn each time that this triggers. | |
| should_leash | false | Boolean true/false | If true, this the spawned entity will be leashed to the parent. | |
| single_use | false | Boolean true/false | If true, this component will only ever spawn the specified entity once. | |
| spawn_entity | not set | String | Identifier of the entity to spawn, leave empty to spawn the item defined by "spawn_item" instead. | |
| spawn_event | minecraft:entity_born | Minecraft Event Trigger | Event to call on the spawned entity when it spawns. | |
| spawn_item | egg | String | Item identifier of the item to spawn. | |
| spawn_item_event | not set | Minecraft Event Trigger | Event to call on this entity when the item is spawned. | |
| spawn_method | born | String | Method to use to spawn the entity. | |
| spawn_sound | plop | String | Identifier of the sound effect to play when the entity is spawned. |
Entities
Entities Properties
JSON path: entities
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| filters | not set | Minecraft filter | If present, the specified entity will only spawn if the filter evaluates to true. | Chicken: [{"test":"rider_count","subject":"self","operator":"==","value":0},{"test":"enum_property","subject":"self","domain":"minecraft:climate_variant","value":"temperate"}] |
| max_wait_time | not set | Decimal number | Chicken: 600 | |
| min_wait_time | not set | Decimal number | Chicken: 300 | |
| spawn_item | not set | String | Chicken: "egg" | |
| spawn_sound | not set | String | Chicken: "plop" |
Samples
Chicken
"minecraft:spawn_entity": {
"entities": [
{
"min_wait_time": 300,
"max_wait_time": 600,
"spawn_sound": "plop",
"spawn_item": "egg",
"filters": [
{
"test": "rider_count",
"subject": "self",
"operator": "==",
"value": 0
},
{
"test": "enum_property",
"subject": "self",
"domain": "minecraft:climate_variant",
"value": "temperate"
}
]
},
{
"min_wait_time": 300,
"max_wait_time": 600,
"spawn_sound": "plop",
"spawn_item": "brown_egg",
"filters": [
{
"test": "rider_count",
"subject": "self",
"operator": "==",
"value": 0
},
{
"test": "enum_property",
"subject": "self",
"domain": "minecraft:climate_variant",
"value": "warm"
}
]
},
{
"min_wait_time": 300,
"max_wait_time": 600,
"spawn_sound": "plop",
"spawn_item": "blue_egg",
"filters": [
{
"test": "rider_count",
"subject": "self",
"operator": "==",
"value": 0
},
{
"test": "enum_property",
"subject": "self",
"domain": "minecraft:climate_variant",
"value": "cold"
}
]
}
]
}
Drowned
"minecraft:spawn_entity": {
"entities": {
"max_wait_time": 0,
"min_wait_time": 0,
"num_to_spawn": 1,
"single_use": true,
"spawn_entity": "minecraft:zombie_nautilus",
"spawn_event": "minecraft:entity_spawned"
}
}
Sniffer
"minecraft:spawn_entity": {
"entities": {
"min_wait_time": 0,
"max_wait_time": 0,
"spawn_sound": "plop",
"spawn_item": "sniffer_egg",
"spawn_item_event": {
"event": "on_egg_spawned",
"target": "self"
},
"single_use": true
}
}
minecraft:spawn_on_death
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_spawn_on_death.md)
Component for spawning entities when an entity perishes.
[!Note] Added in 1.26.20. Spawns one or more entities when the owning entity perishes.
entity_to_spawndefaults to the owning entity,spawn_methoddefaults tospawned(also acceptsbornandsummoned),spawn_amountdefaults to 1,inherit_parent_namedefaults to true, andadditional_spawn_rangeadds optional random offset.filtersgates whether the spawn is triggered at all.
[!Note] This item requires a format version of at least 1.26.20.
Entity Spawn On Death Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| additional_spawn_range | {"max":0,"min":0} | Additional Spawn Range item | Additional random range of entities to spawn, defaults to 0, 0 when not set |
| entity_to_spawn | self | String | What entity to spawn, defaults to owning entity when not set |
| filters (Filters) | {"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null} | Filters item | Conditions that need to be met for the behavior to start. |
| filters (Alternate 1) | not set | Object | |
| inherit_parent_name | true | Boolean true/false | If true, the entity will inherit the name of the parent entity, defaults to true when not set |
| spawn_amount | 1 | Integer number | How many entities to spawn, defaults to 1 when not set Value must be > 0. |
| spawn_method | spawned | String | Spawn method. born, spawned, or summoned, defaults to spawned when not set |
Block IntRange
Block IntRange Properties
JSON path: additional_spawn_range
| Name | Default Value | Type | Description |
|---|---|---|---|
| max | 0 | Integer number | |
| min | 0 | Integer number |
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:spell_effects
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_spell_effects.md)
Allows an entity to add or remove status effects from itself. Similarly to addrider, this component performs a one-time operation on the entity when added. Removing the component will not change the entity's current effects. Adding different versions of the component multiple times will perform each one in turn. Once the component has been added, it will not provide any further functionality. There is one exception to this behavior: if this component is present on a player, its effects will be re-applied every time the player enters the world. To avoid this, remove the component shortly after adding it, or add an empty component to replace it.
Entity Spell Effects Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| add_effects | [] | Array of Add Effects items | List of effects to add to this entity. | Player: [{"display_on_screen_animation":true,"duration":30,"effect":"raid_omen"}] |
| remove_effects | [] | Array of strings | The identifiers of effects to remove from the entity after adding this component. | Player: "bad_omen" |
Entity MobEffectChangeComponentEffect
Entity MobEffectChangeComponentEffect Properties
JSON path: add_effects
| Name | Default Value | Type | Description |
|---|---|---|---|
| ambient | false | Boolean true/false | Whether the effect is ambient. |
| amplifier | 0 | Integer number | The amplifier of the effect. |
| display_on_screen_animation | false | Boolean true/false | Whether the effect displays an on-screen animation. |
| duration | 0 | Object | The duration of the effect in seconds, or "infinite". |
| effect | String | The name of the effect to apply. | |
| visible | true | Boolean true/false | Whether the effect is visible. |
Samples
Player
At /minecraft:entity/component_groups/minecraft:add_raid_omen/minecraft:spell_effects/:
"minecraft:spell_effects": {
"add_effects": [
{
"display_on_screen_animation": true,
"duration": 30,
"effect": "raid_omen"
}
],
"remove_effects": "bad_omen"
}
At /minecraft:entity/component_groups/minecraft:clear_raid_omen_spell_effect/minecraft:spell_effects/:
"minecraft:spell_effects": {}
minecraft:strength
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_strength.md)
Defines the strength of this entity.
Entity Strength Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| max | 5 | Integer number | The maximum strength of this entity |
| value | 1 | Integer number | The initial value of the strength |
Samples
minecraft:suspect_tracking
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_suspect_tracking.md)
Allows this entity to remember suspicious locations.
Samples
Warden
"minecraft:suspect_tracking": {}
minecraft:tameable
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_tameable.md)
This entity can be tamed.
[!Note] From 1.21.130, each entry in
tame_itemsaccepts an optionalresult_itemfield. On a successful tame interaction, the consumed item is replaced in the player's inventory with the specified item.
Tameable Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| probability | 1 | Decimal number | The chance of taming the entity with each item use between 0.0 and 1.0, where 1.0 is 100% | Parrot: 0.33 |
| tame_event | not set | Object | Event to fire when the entity is tamed. Can be an object with event and target properties, or a simple event string. | Parrot: {"event":"minecraft:on_tame","target":"self"} |
| tame_event (as String) | not set | String | ||
| tame_items | not set | Array of strings | The list of items that can be used to tame this entity | Parrot: ["wheat_seeds","pumpkin_seeds","melon_seeds","beetroot_seeds","pitcher_pod","torchflower_seeds"] |
| tameItems | not set | String |
Samples
Parrot
"minecraft:tameable": {
"probability": 0.33,
"tame_items": [
"wheat_seeds",
"pumpkin_seeds",
"melon_seeds",
"beetroot_seeds",
"pitcher_pod",
"torchflower_seeds"
],
"tame_event": {
"event": "minecraft:on_tame",
"target": "self"
}
}
| id | Source | License | Commit | Accessed |
|---|---|---|---|---|
ms-learn | Minecraft Creator documentation (Microsoft Learn) | CC BY 4.0 (documentation), MIT (code) | a9fd1c0 | 2026-11-13 |