Skip to main content

Entity component reference (19/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:tamemount​

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

Allows entities to flock in groups in water or not.

Entity Tamemount Properties​

NameDefault ValueTypeDescriptionExample Values
attempt_temper_mod5Integer numberThe amount the entity's temper will increase when mounted.
auto_reject_items[]Array of Auto Reject Items itemsThe list of items that, if carried while interacting with the entity, will anger it.
autoRejectItemsnot setArray of AutoRejectItems itemsThe list of items that, if carried while interacting with the entity, will anger it.
feed_items[]Array of Feed Items itemsThe list of items that can be used to increase the entity's temper and speed up the taming process.Llama: [{"item":"wheat","temper_mod":3},{"item":"hay_block","temper_mod":6}]
feed_textStringThe text that shows in the feeding interact button.Llama: "action.interact.feed"
max_temper100Integer numberThe maximum value for the entity's random starting temper.Llama: 30
min_temper0Integer numberThe minimum value for the entity's random starting temper.
ride_textStringThe text that shows in the riding interact button.Llama: "action.interact.mount"
tame_event{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}Tame Event itemEvent that triggers when the entity becomes tamed.Llama: {"event":"minecraft:on_tame","target":"self"}

Entity MountTamingComponentRejectItem​

Entity MountTamingComponentRejectItem Properties​

JSON path: auto_reject_items

NameDefault ValueTypeDescription
item{}StringName of the item this entity dislikes and will cause it to get angry if used while untamed.
item (as Keyed set of strings)not setKeyed set of strings

AutoRejectItems​

The list of items that, if carried while interacting with the entity, will anger it.

AutoRejectItems Properties​

JSON path: autoRejectItems

NameDefault ValueTypeDescription
itemnot setStringThe list of items that, if carried while interacting with the entity, will anger it.

Entity MountTamingComponentFeedItem​

Entity MountTamingComponentFeedItem Properties​

JSON path: feed_items

NameDefault ValueTypeDescription
item{}StringName of the item this entity likes and can be used to increase this entity's temper.
item (as Keyed set of strings)not setKeyed set of strings
temper_mod0Integer numberThe amount of temper this entity gains when fed this item.

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: tame_event

NameDefault ValueTypeDescription
eventString
filters (Filters){"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null}Filters itemFilters allow data objects to specify test criteria which allows their use.
filters (Alternate 1)not setObject
targetselfTarget 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: tame_event > 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.

Target choices​

ValueTitleDescription
babyBaby
blockBlock
damagerDamager
holderHolder
itemItem
otherOther
parentParent
playerPlayer
selfSelf
targetTarget

Samples​

Llama​
"minecraft:tamemount": {
"min_temper": 0,
"max_temper": 30,
"feed_text": "action.interact.feed",
"ride_text": "action.interact.mount",
"feed_items": [
{
"item": "wheat",
"temper_mod": 3
},
{
"item": "hay_block",
"temper_mod": 6
}
],
"tame_event": {
"event": "minecraft:on_tame",
"target": "self"
}
}
Trader Llama​
"minecraft:tamemount": {
"min_temper": 0,
"max_temper": 30,
"feed_text": "action.interact.feed",
"ride_text": "action.interact.mount",
"feed_items": [
{
"item": "wheat",
"temper_mod": 3
},
{
"item": "hay_block",
"temper_mod": 6
}
],
"auto_reject_items": [
{
"item": "horsearmorleather"
},
{
"item": "horsearmoriron"
},
{
"item": "horsearmorgold"
},
{
"item": "horsearmordiamond"
},
{
"item": "minecraft:copper_horse_armor"
},
{
"item": "minecraft:netherite_horse_armor"
},
{
"item": "saddle"
}
],
"tame_event": {
"event": "minecraft:on_tame",
"target": "self"
}
}

minecraft:target_nearby_sensor​

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

Defines the entity's range within which it can see or sense other entities to target them.

Target Nearby Sensor Properties​

NameDefault ValueTypeDescriptionExample Values
inside_range1Decimal numberMaximum distance in blocks that another entity will be considered in the 'inside' rangeBlaze: 2, Drowned: 3
must_seefalseBoolean true/falseWhether the other entity needs to be visible to trigger 'inside' eventsBlaze: true
on_inside_rangenot setObjectEvent to call when an entity gets in the inside range. Can be an object with event and target properties, or a simple event string.Blaze: {"event":"switch_to_melee","target":"self"}, Drowned: {"event":"minecraft:switch_to_melee","target":"self"}
on_inside_range (as String)not setString
on_outside_rangenot setObjectEvent to call when an entity gets outside the outside range. Can be an object with event and target properties, or a simple event string.Blaze: {"event":"switch_to_ranged","target":"self"}, Drowned: {"event":"minecraft:switch_to_ranged","target":"self"}
on_outside_range (as String)not setString
on_vision_lost_inside_rangenot setMinecraft Event TriggerEvent to call when an entity exits visual range. Can specify 'event' for the name of the event and 'target' for the target of the event
outside_range5Decimal numberMaximum distance in blocks that another entity will be considered in the 'outside' rangeBlaze: 3, Drowned: 5

Samples​

Blaze​
"minecraft:target_nearby_sensor": {
"on_inside_range": {
"event": "switch_to_melee",
"target": "self"
},
"inside_range": 2,
"must_see": true,
"outside_range": 3,
"on_outside_range": {
"event": "switch_to_ranged",
"target": "self"
}
}
Drowned​
"minecraft:target_nearby_sensor": {
"inside_range": 3,
"on_inside_range": {
"event": "minecraft:switch_to_melee",
"target": "self"
},
"on_outside_range": {
"event": "minecraft:switch_to_ranged",
"target": "self"
},
"outside_range": 5
}
Sources
idSourceLicenseCommitAccessed
ms-learnMinecraft Creator documentation (Microsoft Learn)CC BY 4.0 (documentation), MIT (code)a9fd1c02026-11-13