Skip to main content

Entity component and AI goal index

The full list of the 206 entity components and 182 AI goals in MS Learn (MicrosoftDocs/minecraft-creator a9fd1c0, CC BY 4.0). Select an ID to go to its entry. Events, filters and triggers are in Entity events, filters and triggers.

Components (206)​

IDDescription
minecraft:addriderAdds a rider to the entity.
minecraft:admire_itemAllows an entity to ignore attackable targets for a given duration.
minecraft:ageableAdds a timer for the entity to grow up. It can be accelerated by giving the entity the items it likes as defined by feed_items.
minecraft:ambient_sound_intervalDelay for an entity playing its sound.
minecraft:anger_levelCompels the entity to track anger towards a set of nuisances.
minecraft:angryDefines an entity's 'angry' state using a timer.
minecraft:annotation.break_doorAllows an entity to break doors, assuming that that flags set up for the component to use in navigation.
minecraft:annotation.open_doorAllows the entity to open doors.
minecraft:apply_knockback_rulesDefines how an entity applies knockback.
minecraft:apply_knockback_rules_instanceIntance of rules definition.
minecraft:area_attackA component that does damage to entities that get within range.
minecraft:attackDefines an entity's melee attack damage and any additional status effects applied on hit. Typical damage values range from 3 (zombie, creeper) to 7-21 (iron golem).
minecraft:attack_cooldownAdds a cooldown to an entity. The intention of this cooldown is to be used to prevent the entity from attempting to acquire new attack targets.
minecraft:attack_damageSpecifies how much damage is dealt by the entity when it attacks.
minecraft:balloonableAllows this entity to have a balloon attached and defines the conditions and events for this entity when is ballooned.
minecraft:barterEnables the component to drop an item as a barter exchange.
minecraft:block_climberAllows the player to detect and manuever on the scaffolding block.
minecraft:block_movement_slowdown_immunityPrevents specified blocks from contributing to this entity's block movement slowdown. It does not cause other blocks to apply slowdown.
minecraft:block_sensorFires off a specified event when a block in the block list is broken within the sensor range.
minecraft:body_rotation_always_follows_headCauses the entity's body rotation to match the one of their head.
minecraft:body_rotation_axis_alignedCauses the entity's body to automatically rotate to align with the nearest cardinal direction based on its current facing direction.
minecraft:body_rotation_blockedWhen set, the entity will no longer visually rotate their body to match their facing direction.
minecraft:body_rotation_locked_to_vehicleCauses the entity's body rotation to match their vehicle's facing direction.
minecraft:boostableDefines the conditions and behavior of a rideable entity's boost.
minecraft:bossDefines the current state of the boss for updating the boss HUD.
minecraft:break_blocksSpecifies the blocks that the entity can break as it moves around.
minecraft:breathableDefines what blocks this entity can breathe in and gives them the ability to suffocate.
minecraft:breedableAllows an entity to establish a way to get into the love state used for breeding.
minecraft:bribeableDefines the way an entity can get into the 'bribed' state.
minecraft:buoyantEnables an entity to float on the specified liquid blocks.
minecraft:burns_in_daylightSpecifies that this entity takes fire damage when exposed to direct sunlight. This component is used by undead mobs like zombies, skeletons, and phantoms. The entity will catch fire when in sunlight unless it is wearing armor in the protection slot, standing in water, or in a shaded area.
minecraft:can_climbAllows an entity to climb ladders.
minecraft:can_flyMarks the entity as being able to fly, the pathfinder won't be restricted to paths where a solid block is required underneath it.
minecraft:can_join_raidSpecifies if an entity can join a raid.
minecraft:can_power_jumpAllows the entity to power jump like the Horse does in Vanilla.
minecraft:cannot_be_attackedWhen set, blocks entities from attacking the owner entity unless they have the "minecraft:ignore_cannot_be_attacked" component.
minecraft:celebrate_huntSpecifies hunt celebration behaviour.
minecraft:collision_boxSets the width and height of the Entity's collision box.
minecraft:colorDefines the entity's main color.
minecraft:color2Defines the entity's second texture color.
minecraft:combat_regenerationGives Regeneration I and removes Mining Fatigue from the mob that kills the entity's attack target.
minecraft:conditional_bandwidth_optimizationDefines the Conditional Spatial Update Bandwidth Optimizations of this entity.
minecraft:custom_hit_testList of hitboxes for melee and ranged hits against the entity.
minecraft:damage_over_timeApplies defined amount of damage to the entity at specified intervals.
minecraft:damage_sensorDefines what events to call when this entity is damaged by specific entities or items.
minecraft:dashAbility for a rideable entity to dash.
minecraft:dash_actionAbility for a rideable entity to dash.
minecraft:default_look_angleSets this entity's default head rotation angle.
minecraft:despawnDespawns the Actor when the despawn rules or optional filters evaluate to true.
minecraft:dimension_boundPrevents the entity from changing dimension through portals.
minecraft:drying_out_timerAdds a timer for drying out that will count down and fire 'dried_out_event' or will stop as soon as the entity will get under rain or water and fire 'stopped_drying_out_event'.
minecraft:dwellerCompels an entity to join and migrate between villages and other dwellings.
minecraft:economy_trade_tableDefines this entity's ability to trade with players.
minecraft:entity_armor_equipment_slot_mappingIt defines to which armor slot an item equipped to 'minecraft:equippable''s second slot should be equipped to. It is automatically applied to all entities for worlds with a version greater than or equal to 1.21.10. For older worlds, 'slot.armor.torso' will be used. It is strongly advised not to explicitly use this component, as no backwards compatibility for it will be provided.
minecraft:entity_sensorA component that owns multiple subsensors, each one firing an event when a set of conditions are met by other entities within the defined range.
minecraft:environment_sensorCreates a trigger based on environment conditions.
minecraft:equip_itemThe entity puts on the desired equipment.
minecraft:equipmentSets the Equipment table to use for this Entity.
minecraft:equippableDefines an entity's behavior for having items equipped to it.
minecraft:exhaustion_valuesDefines how much exhaustion each player action should take.
minecraft:experience_rewardThe original has no description. See the property table.
minecraft:explodeDefines how the entity explodes.
minecraft:fire_immuneSets that this entity doesn't take damage from fire.
minecraft:floats_in_liquidSets that this entity can float in liquid blocks.
minecraft:flockingAllows entities to flock in groups in water or not.
minecraft:flying_speedSpeed in Blocks that this entity flies at.
minecraft:follow_rangeDefines the maximum range, in blocks, that a mob will pursue a target. This affects AI behaviors like chasing players or attacking.
minecraft:free_camera_controlledWhen configured as a rideable entity, the entity will be controlled using WASD controls and mouse to move in three dimensions.
minecraft:friction_modifierDefines how much friction affects this entity.
minecraft:game_event_movement_trackingAllows 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.
minecraft:geneticsDefines the way a mob's genes and alleles are passed on to its offspring, and how those traits manifest in the child. Compatible parent genes are crossed together, the alleles are handed down from the parents to the child, and any matching genetic variants fire off JSON events to modify the child and express the traits.
minecraft:giveableDefines sets of items that can be used to trigger events when used on this entity. The item will also be taken and placed in the entity's inventory.
minecraft:ground_offsetSets the offset from the ground that the entity is actually at.
minecraft:group_sizeKeeps track of entity group size in the given radius.
minecraft:grows_cropCould increase crop growth when entity walks over crop.
minecraft:healableHow entities heal.
minecraft:healthDefines the health pool for an entity, measured in health points (1 point = half a heart). Typical values: cow (10), zombie (20), iron golem (100), wither (600).
minecraft:heartbeatDefines the entity's heartbeat.
minecraft:hideMoves to and hides at their owned POI or the closest nearby.
minecraft:homeSaves a home position for when the entity is spawned. This component allows entities like bees to remember and return to a specific location such as a hive or nest.
minecraft:horse.jump_strengthDetermines the jump height for a horse or similar entity, like a donkey.
minecraft:hurt_on_conditionDefines a set of conditions under which an entity should take damage.
minecraft:ignore_cannot_be_attackedAllows the owner entity to ignore the "minecraft:cannot_be_attacked" component on entities that fulfill the filter.
minecraft:input_air_controlledWhen configured as a rideable entity, the entity will be controlled using WASD controls and mouse to move in three dimensions.
minecraft:input_ground_controlledWhen configured as a rideable entity, the entity will be controlled using WASD controls. Beginning with 1.19.50 the default auto step height for rideable entities is half a block. Consider adding the "minecraft:variable_max_auto_step" component to increase it.
minecraft:inside_block_notifierVerifies whether the entity is inside any of the listed blocks.
minecraft:insomniaAdds a timer since last rested to see if phantoms should spawn.
minecraft:instant_despawnDespawns the Actor immediately.
minecraft:interactDefines interactions with this entity.
minecraft:inventoryDefines this entity's inventory properties.
minecraft:is_babySets that this entity is a baby. This is used to set the is_baby value for use in query functions like Molang and Filters.
minecraft:is_chargedSets that this entity is charged. This is used to set the is_charged value for use in query functions like Molang and Filters.
minecraft:is_chestedSets that this entity is currently carrying a chest.
minecraft:is_collidableAllows other mobs to have vertical and horizontal collisions with this mob. For a collision to occur, both mobs must have a "minecraft:collision_box" component. This component can only be used on mobs and enables collisions exclusively between mobs.
minecraft:is_dyeableAllows dyes to be used on this entity to change its color.
minecraft:is_hidden_when_invisibleThe entity can hide from hostile mobs while invisible.
minecraft:is_ignitedSets that this entity is currently on fire.
minecraft:is_illager_captainSets that this entity is an Illager Captain.
minecraft:is_pregnantSets that this entity is currently pregnant.
minecraft:is_saddledSets that this entity is currently saddled.
minecraft:is_shakingSets that this entity is currently shaking.
minecraft:is_shearedSets that this entity is currently sheared.
minecraft:is_stackableAllows instances of this entity to have vertical and horizontal collisions with each other. For a collision to occur, both instances must have a "minecraft:collision_box" component.
minecraft:is_stunnedSets that this entity is currently stunned.
minecraft:is_tamedSets that this entity is currently tamed.
minecraft:item_controllableDefines what items can be used to control this entity while ridden.
minecraft:item_hopperDetermines that this entity is an item hopper.
minecraft:jump.dynamicDefines a dynamic type jump control that will change jump properties based on the speed modifier of the mob.Requires minecraft:movement.skip to be used.
minecraft:jump.staticGives the entity the ability to jump.
minecraft:knockback_resistanceDetermines an entity's resistance to knockback from melee attacks. A value of 0.0 means no resistance, while 1.0 provides full immunity to knockback (like iron golems).
minecraft:lava_movementAllows a custom movement speed across lava blocks.
minecraft:leashableDescribes how this mob can be leashed to other items.
minecraft:leashable_toAllows players to leash entities to this entity, retrieve entities already leashed to it, or free them using shears. For the last interaction to work, the leashed entities must have "can_be_cut" set to true in their "minecraft:leashable" component.
minecraft:looked_atDefines the behavior when another entity looks at the owner entity.
minecraft:lootSpecifies the loot table that determines what items this entity drops upon death. The table path is relative to the behavior pack's root folder.
minecraft:managed_wandering_traderManages the entity's ability to trade.
minecraft:mark_variantMark Variant is typically used as an additional per-type way (besides variant) to express a different visual form of the same mob.
minecraft:mob_effectA component that applies a mob effect to entities that get within range.
minecraft:mob_effect_immunityEntities with this component will have an immunity to the provided mob effects.
minecraft:movementDefines the base movement speed of an entity. Typical values: creeper (0.2), cow (0.25), zombie baby (0.35).
minecraft:movement.amphibiousThis move control allows the mob to swim in water and walk on land.
minecraft:movement.basicThis component accents the movement of an entity.
minecraft:movement.dolphinThis component can control how dolphins move, in a dolphin-esque style.
minecraft:movement.flyThis move control causes the mob to fly.
minecraft:movement.genericThis move control allows a mob to fly, swim, climb, etc.
minecraft:movement.glideMove control for a flying mob that has a gliding movement.
minecraft:movement.hoverThis move control causes the mob to hover.
minecraft:movement.jumpMove control that causes the mob to jump as it moves with a specified delay between jumps.
minecraft:movement.skipThis move control causes the mob to hop as it moves.
minecraft:movement.sound_distance_offsetSets the offset used to determine the next step distance for playing a movement sound.
minecraft:movement.swayThis move control causes the mob to sway side to side giving the impression it is swimming.
minecraft:nameableAllows this entity to be named (e.g. using a name tag).
minecraft:navigation.climbAllows this entity to generate paths that include vertical walls like the vanilla Spiders do.
minecraft:navigation.floatAllows this entity to generate paths by flying around the air like the regular Ghast.
minecraft:navigation.flyAllows this entity to generate paths in the air like the vanilla Parrots do.
minecraft:navigation.genericAllows this entity to generate paths by walking, swimming, flying and/or climbing around and jumping up and down a block.
minecraft:navigation.hoverAllows this entity to generate paths in the air like the vanilla Bees do. Keeps them from falling out of the skies and doing predictive movement.
minecraft:navigation.swimAllows this entity to generate paths that include water.
minecraft:navigation.walkWalking style of the mob.
minecraft:offspringDefines the way an entity can create a born offspring.
minecraft:out_of_controlDefines the entity's 'out of control' state.
minecraft:peekDefines the entity's 'peek' behavior, defining the events that should be called during it.
minecraft:persistentDefines whether an entity should be persistent in the game world.
minecraft:physicsDefines physics properties of an actor, including if it is affected by gravity or if it collides with objects.
minecraft:player.exhaustionDefines the player's exhaustion level.
minecraft:player.experienceDefines how much experience each player action should take.
minecraft:player.levelDefines the player's level.
minecraft:player.saturationDefines the player's need for food.
minecraft:preferred_pathSpecifies costing information for mobs that prefer to walk on preferred paths.
minecraft:projectileTurns the entity into a projectile: a thrown or shot entity that flies along a ballistic arc and reacts when it impacts a block, a fluid, or another entity.
minecraft:push_throughSets the distance through which the entity can push through.
minecraft:pushableDefines what can push an entity between other entities and pistons.
minecraft:pushable_by_blockAllows the entity to be pushed by certain blocks, like Shulker Boxes and Pistons.
minecraft:pushable_by_entityAllows an entity to be pushed by other entities.
minecraft:raid_triggerAttempts to trigger a raid at the entity's location.
minecraft:rail_movementDefines the entity's movement on the rails. An entity with this component is only allowed to move on the rail.
minecraft:rail_sensorEnables 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.
minecraft:ravager_blockedDefines the ravager's response to their melee attack being blocked.
minecraft:reflect_projectiles[EXPERIMENTAL] Allows an entity to reflect projectiles.
minecraft:remove_in_peacefulDenotes entities that are not allowed to exist in "Peaceful" difficulty.
minecraft:renders_when_invisibleWhen set, the entity will render even when invisible. Appropriate rendering behavior can then be specified in the corresponding "minecraft:client_entity".
minecraft:rideableThis entity can be ridden.
minecraft:rotation_axis_alignedCauses the entity to automatically rotate to align with the nearest cardinal direction based on its current facing direction.
minecraft:rotation_locked_to_vehicleCauses the entity's rotation to match their vehicle's facing direction.
minecraft:scaffolding_climber[!IMPORTANT]
minecraft:scaleSets the entity's visual size multiplier. A value of 1.0 means normal size, 0.5 is half size (commonly used for baby mobs), and values above 1.0 make the entity larger.
minecraft:scale_by_ageDefines the entity's size interpolation based on the entity's age.
minecraft:schedulerFires off scheduled mob events at time of day events.
minecraft:shareablesDefines a list of items the mob wants to share or pick up. Items can be configured with optional parameters to control pickup, sharing, and inventory behavior.
minecraft:shooterDefines the entity's ranged attack behavior. The "minecraft:behavior.ranged_attack" goal uses this component to determine which projectiles to shoot.
minecraft:sittableDefines the entity's 'sit' state.
minecraft:skin_idSkin ID value. Can be used to differentiate skins, such as base skins for villagers.
minecraft:sound_volumeSets the entity's base volume for sound effects.
minecraft:spawn_egg_interactionEnables 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.
minecraft:spawn_entityAdds a timer after which this entity will spawn another entity or item (similar to vanilla's chicken's egg-laying behavior).
minecraft:spawn_on_deathComponent for spawning entities when an entity perishes.
minecraft:spell_effectsAllows 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.
minecraft:strengthDefines the strength of this entity.
minecraft:suspect_trackingAllows this entity to remember suspicious locations.
minecraft:tameableThis entity can be tamed.
minecraft:tamemountAllows entities to flock in groups in water or not.
minecraft:target_nearby_sensorDefines the entity's range within which it can see or sense other entities to target them.
minecraft:teleportDefines an entity's teleporting behavior.
minecraft:tick_worldDefines if the entity ticks the world and the radius around it to tick.
minecraft:timerAdds a timer after which an event will fire.
minecraft:trade_resupplyResupplies an entity's trade.
minecraft:trade_tableDefines this entity's ability to trade with players.
minecraft:trailCauses an entity to leave a trail of blocks as it moves about the world. Obeys Mob Griefing rules.
minecraft:trail_placement_conditions_entryThe original has no description. See the property table.
minecraft:transformationDefines an entity's transformation from the current definition into another.
minecraft:transientAn entity with this component will NEVER persist, and forever disappear when unloaded.
minecraft:trustAllows this entity to trust multiple players.
minecraft:trustingDefines the rules for a mob to trust players.
minecraft:type_familyDefines the family categories this entity belongs to. Type families are used by filters and other game systems to group entities (e.g., 'mob', 'monster', 'undead', 'zombie').
minecraft:underwater_mount_breathingPauses this entity's breathing under water.
minecraft:underwater_movementDefines the speed with which an entity can move through water.
minecraft:uses_legacy_frictionWhen set, legacy calculations are used when applying "minecraft:friction_modifier". This component is automatically added to legacy content to preserve existing behavior. The legacy calculations are incorrect and should not be used for new content.
minecraft:variable_max_auto_stepEntities with this component will have a maximum auto step height that is different depending on whether they are on a block that prevents jumping. Incompatible with "runtime_identifier": "minecraft:horse".
minecraft:variantVariant is typically used as a per-type way to express a different visual form of the same mob. For example, for cats, variant is a number that defines the breed of cat.
minecraft:vertical_movement_actionWhen configured as a rideable entity, the entity will move upwards or downwards when the player uses the jump action.
minecraft:vibration_damperVibrations emitted by an entity with this component will be ignored.
minecraft:vibration_listenerAllows the entity to listen to vibration events. This is a largely-internal component, that is only supported on the Warden and Allay mobs.
minecraft:walk_animation_speedSets the speed multiplier for this entity's walk animation speed.
minecraft:wants_jockeySets that this entity wants to become a jockey.
minecraft:water_movementCustomizes how the entity moves through water by adjusting drag coefficient. Lower values let entities glide through water easily like fish, while higher values create resistance for entities that struggle in water. Essential for aquatic mobs, boats, and any entity needing custom underwater physics.
minecraft:wither_target_highest_damageAllows the wither to focus its attacks on whichever mob has dealt the most damage to it.

AI goals (182)​

IDDescription
minecraft:behavior.admire_itemEnables the mob to admire items that have been configured as admirable.
minecraft:behavior.aquatic_charge_attackEnables an aquatic mob to dash at its target with knockback; includes overshoot and cooldown settings.
minecraft:behavior.avoid_blockAllows this entity to avoid certain blocks.
minecraft:behavior.avoid_mob_typeAllows the entity to run away from other entities that meet the criteria specified.
minecraft:behavior.barterEnables the mob to barter for items that have been configured as barter currency. Must be used in combination with the barter component.
minecraft:behavior.begAllows this mob to look at and follow the player that holds food they like.
minecraft:behavior.break_doorAllows this mob to break doors.
minecraft:behavior.breedAllows this mob to breed with other mobs.
minecraft:behavior.celebrateAllows this entity to celebrate surviving a raid by making celebration sounds and jumping.
minecraft:behavior.celebrate_surviveAllows the player to trade with this mob. When the goal starts, it will stop the mob's navigation.
minecraft:behavior.charge_attackAllows this entity to damage a target by using a running attack.
minecraft:behavior.charge_held_itemAllows an entity to charge and use their held item.
minecraft:behavior.circle_around_anchorCauses an entity to circle around an anchor point placed near a point or target.
minecraft:behavior.controlled_by_playerAllows the entity to be controlled by the player using an item in the item_controllable property (required). On every tick, the entity will attempt to rotate towards where the player is facing with the control item whilst simultaneously moving forward.
minecraft:behavior.croakAllows the entity to croak at a random time interval with configurable conditions.
minecraft:behavior.defend_trusted_targetAllows the mob to target another mob that hurts an entity it trusts.
minecraft:behavior.defend_village_targetAllows the entity to stay in a village and defend the village from aggressors. If a player is in bad standing with the village this goal will cause the entity to attack the player regardless of filter conditions.
minecraft:behavior.delayed_attackAllows an entity to attack, while also delaying the damage-dealt until a specific time in the attack animation.
minecraft:behavior.digAllows this entity to dig into the ground before despawning.
minecraft:behavior.door_interactAllows the mob to open and close doors.
minecraft:behavior.dragonchargeplayerAllows this entity to attack a player by charging at them. The player is chosen by the "minecraft:behavior.dragonscanning".
minecraft:behavior.dragondeathAllows the dragon to go out with glory. This controls the Ender Dragon's death animation.
minecraft:behavior.dragonflamingAllows this entity to use a flame-breath attack.
minecraft:behavior.dragonholdingpatternAllows the Dragon to fly around in a circle around the center podium.
minecraft:behavior.dragonlandingAllows the Dragon to stop flying and transition into perching mode.
minecraft:behavior.dragonscanningAllows the dragon to look around for a player to attack while in perch mode.
minecraft:behavior.dragonstrafeplayerAllows this entity to fly around looking for a player to shoot fireballs at.
minecraft:behavior.dragontakeoffAllows the dragon to leave perch mode and go back to flying around.
minecraft:behavior.drink_milkAllows the mob to drink milk based on specified environment conditions.
minecraft:behavior.drink_potionAllows the mob to drink potions based on specified environment conditions.
minecraft:behavior.drop_item_forAllows the entity to move toward a target, and drop an item near the target.
minecraft:behavior.eat_blockAllows the entity to consume a block, replace the eaten block with another block, and trigger an event as a result.
minecraft:behavior.eat_carried_itemIf the mob is carrying a food item, the mob will eat it and the effects will be applied to the mob.
minecraft:behavior.eat_mobAllows the entity to eat a specified Mob.
minecraft:behavior.emergeAllows this entity to emerge from the ground.
minecraft:behavior.enderman_leave_blockAllows the enderman to drop a block they are carrying.
minecraft:behavior.enderman_take_blockAllows the enderman to take a block and carry it around.
minecraft:behavior.equip_itemThe entity puts on the desired equipment.
minecraft:behavior.explore_outskirtsAllows the entity to first travel to a random point on the outskirts of the village, and then explore random points within a small distance.
minecraft:behavior.fertilize_farm_blockAllows the mob to search within an area for a growable crop block. If found, the mob will use any available fertilizer in their inventory on the crop. This goal will not execute if the mob does not have a fertilizer item in its inventory.
minecraft:behavior.find_coverAllows the mob to seek shade.
minecraft:behavior.find_mountAllows the mob to look around for another mob to ride atop it.
minecraft:behavior.find_underwater_treasureAllows the mob to move towards the nearest underwater ruin or shipwreck.
minecraft:behavior.fire_at_targetAllows an entity to attack by firing a shot with a delay. Anchor and offset parameters of this component overrides the anchor and offset from projectile component.
minecraft:behavior.flee_sunAllows the mob to run away from direct sunlight and seek shade.
minecraft:behavior.floatAllows the mob to stay afloat while swimming. Passengers will be kicked out the moment the mob's head goes underwater, which may not happen for tall mobs.
minecraft:behavior.float_temptAllows a mob to be tempted by a player holding a specific item. Uses point-to-point movement. Designed for mobs that are floating (e.g. use the "minecraft:navigation.float" component).
minecraft:behavior.float_wanderAllows the mob to float around like the Ghast.
minecraft:behavior.follow_caravanAllows the mob to follow mobs that are in a caravan.
minecraft:behavior.follow_mobAllows the mob to follow other mobs.
minecraft:behavior.follow_ownerAllows a mob to follow the player that owns it.
minecraft:behavior.follow_parentAllows the mob to follow their parent around.
minecraft:behavior.follow_target_captainAllows mob to move towards its current target captain.
minecraft:behavior.follow_target_leaderAllows mob to move towards its target leader.
Dragonfly server patchThe entity will attempt to toss the items from its inventory to a nearby recently played noteblock.
Dragonfly server patchThe entity will attempt to toss the items from its inventory to its owner.
Dragonfly server patchAllows the mob to move back to the position they were spawned.
minecraft:behavior.guardian_attackAllows this entity to use a laser beam attack. Can only be used by Guardians and Elder Guardians.
minecraft:behavior.harvest_farm_blockAllows the entity to search within an area for farmland with air above it. If found, the entity will replace the air block by planting a seed item from its inventory on the farmland block. This goal will not execute if the entity does not have an item in its inventory.
minecraft:behavior.hideAllows a mob with the hide component to attempt to move to - and hide at - an owned or nearby POI.
minecraft:behavior.hold_groundCompels an entity to stop at their current location, turn to face a mob they are targeting, and react with an event.
minecraft:behavior.hoverAllows the mob to hover in place.
minecraft:behavior.hurt_by_targetAllows the mob to target another mob that hurts them.
minecraft:behavior.inspect_bookshelfAllows the mob to inspect bookshelves.
minecraft:behavior.investigate_suspicious_locationAllows this entity to move towards a "suspicious" position based on data gathered in minecraft:suspect_tracking.
minecraft:behavior.jump_around_targetAllows an entity to jump around a target.
minecraft:behavior.jump_to_blockAllows an entity to jump to another random block.
minecraft:behavior.knockback_roarAllows the mob to perform a damaging knockback that affects all nearby entities.
minecraft:behavior.lay_downAllows mobs to lay down at times.
minecraft:behavior.lay_eggAllows the mob to lay an egg block on certain types of blocks if the mob is pregnant.
minecraft:behavior.leap_at_targetAllows monsters to jump at and attack their target. Can only be used by hostile mobs.
minecraft:behavior.look_at_entityCompels an entity to look at a specific entity by rotating the head bone pose within a set limit.
minecraft:behavior.look_at_playerCompels an entity to look at the player by rotating the head bone pose within a set limit.
minecraft:behavior.look_at_targetCompels an entity to look at the target by rotating the head bone pose within a set limit.
minecraft:behavior.look_at_trading_playerCompels an entity to look at the player that is currently trading with the entity.
minecraft:behavior.make_loveAllows the villager to look for a mate to spawn other villagers with.
minecraft:behavior.melee_attackAllows an entity to deal damage through a melee attack.
minecraft:behavior.melee_box_attackAllows an entity to deal damage through a melee attack with reach calculations based on bounding boxes.
minecraft:behavior.mingleAllows an entity to go to the village bell and mingle with other entities.
minecraft:behavior.mount_pathingAllows the mob to move around on its own while mounted seeking a target to attack. Also will allow an entity to target another entity for an attack.
minecraft:behavior.move_around_targetAllows an entity to move around a target.If the entity is too close(i.e.closer than destination range min and height difference limit) it will try to move away from its target.If the entity is too far away from its target it will try to move closer to a random position within the destination range.A randomized amount of those positions will be behind the target, and the spread can be tweaked with 'destination_pos_spread_degrees'.
minecraft:behavior.move_indoorsAllows this entity to move indoors.
minecraft:behavior.move_outdoorsAllows this entity to move outdoors.
minecraft:behavior.move_through_villageCan only be used by Villagers. Allows the villagers to create paths around the village.
minecraft:behavior.move_to_blockAllows mob to move towards a block.
minecraft:behavior.move_to_landAllows the mob to move back onto land when in water.
minecraft:behavior.move_to_lava[!IMPORTANT]
minecraft:behavior.move_to_liquidAllows the mob to move into a liquid when on land.
minecraft:behavior.move_to_poiAllows the mob to move to a POI if able to.
minecraft:behavior.move_to_random_blockAllows mob to move towards a random block.
minecraft:behavior.move_to_villageAllows the mob to move into a random location within a village.
minecraft:behavior.move_to_waterAllows the mob to move back into water when on land.
minecraft:behavior.move_towards_dwelling_restrictionAllows entities with the "minecraft:dweller" component to move toward their village area that the entity should be restricted to.
minecraft:behavior.move_towards_home_restrictionAllows entities with a minecraft:home component to move towards their home position.
minecraft:behavior.move_towards_restrictionAI goal that drives entities back toward their designated home area when they've wandered too far. Works with components like minecraft:home to define the restriction zone. Used for village-bound mobs, territorial creatures, or any entity that should patrol or return to a specific location.
minecraft:behavior.move_towards_targetAllows mob to move towards its current target.
minecraft:behavior.napAllows mobs to occassionally stop and take a nap under certain conditions.
minecraft:behavior.nearest_attackable_targetAllows an entity to attack the closest target within a given subset of specific target types.
minecraft:behavior.nearest_prioritized_attackable_targetAllows the mob to check for and pursue the nearest valid target.
minecraft:behavior.ocelot_sit_on_blockAllows to mob to be able to sit in place like the ocelot.
minecraft:behavior.ocelotattackControls specific attack behavior for Ocelots.
minecraft:behavior.offer_flowerAllows the mob to offer a flower to another mob with the minecraft:take_flower behavior.
minecraft:behavior.open_doorAllows the mob to open doors. Requires the mob to be able to path through doors, otherwise the mob won't even want to try opening them.
minecraft:behavior.owner_hurt_by_targetAllows the mob to target another mob that hurts their owner.
minecraft:behavior.owner_hurt_targetAllows the mob to target a mob that is hurt by their owner.
minecraft:behavior.panicAllows a mob to panic when receiving damage, making it run around and away from the damage source that made it enter this state.
minecraft:behavior.pet_sleep_with_ownerAllows the pet mob to move onto a bed with its owner while sleeping.
minecraft:behavior.pickup_itemsAllows the mob to pick up items on the ground.
minecraft:behavior.place_blockThe original has no description. See the property table.
minecraft:behavior.playAllows the mob to offer a flower to another mob with the minecraft:take_flower behavior.
minecraft:behavior.play_deadAllows this entity to pretend to be dead to avoid being targeted by attackers.
minecraft:behavior.player_ride_tamedAllows the mob to be ridden by the player after being tamed.
minecraft:behavior.raid_gardenAllows the mob to eat/raid crops out of farms until they are full.
minecraft:behavior.ram_attackAllows this entity to damage a target by using a running attack.
minecraft:behavior.random_breachAllows the mob to randomly break surface of the water.
minecraft:behavior.random_flyAllows a mob to randomly fly around.
minecraft:behavior.random_hoverAllows the mob to hover around randomly, close to the surface.
minecraft:behavior.random_look_aroundAllows the mob to randomly look around.
minecraft:behavior.random_look_around_and_sitAllows the mob to randomly sit and look around for a duration. Note: Must have a sitting animation set up to use this.
minecraft:behavior.random_search_and_digAllows this entity to locate a random target block that it can path find to. Once found, the entity will move towards it and dig up an item. [Default target block types: Dirt, Grass, Podzol, DirtWithRoots, MossBlock, Mud, MuddyMangroveRoots].
minecraft:behavior.random_sittingAllows the mob to randomly sit for a duration.
minecraft:behavior.random_strollAllows a mob to randomly stroll around.
minecraft:behavior.random_swimAllows an entity to randomly move through water.
minecraft:behavior.ranged_attackAllows an entity to attack by using ranged shots. "charge_shoot_trigger" must be greater than 0 to enable charged up burst-shot attacks. Requires minecraft:shooter to define projectile behaviour.
minecraft:behavior.receive_loveAllows the villager to stop so another villager can breed with it. Can only be used by a Villager.
minecraft:behavior.restrict_open_doorAllows the mob to stay indoors during night time.
minecraft:behavior.restrict_sunAllows the mob to automatically start avoiding the sun when its a clear day out.
minecraft:behavior.rise_to_liquid_levelAllows the mob to stay at a certain level when in liquid.
minecraft:behavior.roarAllows this entity to roar at another entity based on data in minecraft:anger_level. Once the anger threshold specified in minecraft:anger_level has been reached, this entity will roar for the specified amount of time, look at the other entity, apply anger boost towards it, and finally target it.
minecraft:behavior.rollThis allows the mob to roll forward.
minecraft:behavior.run_around_like_crazyAllows the mob to run around aimlessly.
minecraft:behavior.scaredAllows the mob to become scared when the weather outside is thundering.
minecraft:behavior.send_eventAllows the mob to send an event to another mob.
minecraft:behavior.share_itemsAllows the mob to give items it has to others.
minecraft:behavior.silverfish_merge_with_stoneAllows the mob to go into stone blocks like Silverfish do.
minecraft:behavior.silverfish_wake_up_friendsAllows the mob to alert mobs in nearby blocks to come out.
minecraft:behavior.skeleton_horse_trapAllows Equine mobs to be Horse Traps and be triggered like them, spawning a lightning bolt and a bunch of horses when a player is nearby. Can only be used by Horses, Mules, Donkeys and Skeleton Horses.
minecraft:behavior.sleepAllows mobs that own a bed to in a village to move to and sleep in it.
minecraft:behavior.slime_attackCauses the entity to grow tired every once in a while, while attacking.
minecraft:behavior.slime_floatAllow slimes to float in water / lava.
minecraft:behavior.slime_keep_on_jumpingAllows the entity to continuously jump around like a slime.
minecraft:behavior.slime_random_directionAllows the entity to move in random directions like a slime.
minecraft:behavior.snackingAllows the mob to take a load off and snack on food that it found nearby.
minecraft:behavior.sneezeAllows the mob to sneeze, causing it to drop items and affect nearby mobs.
minecraft:behavior.sniffAllows this entity to detect the nearest player within "sniffing_radius" and update its "minecraft:suspect_tracking" component state.
minecraft:behavior.sonic_boomAllows this entity to perform a 'sonic boom' ranged attack.
minecraft:behavior.squid_diveAllows the squid to dive down in water.
minecraft:behavior.squid_fleeAllows the squid to swim away.
minecraft:behavior.squid_idleAllows the squid to swim in place idly.
minecraft:behavior.squid_move_away_from_groundAllows the squid to move away from ground blocks and back to water.
minecraft:behavior.squid_out_of_waterAllows the squid to stick to the ground when outside water.
minecraft:behavior.stalk_and_pounce_on_targetAllows a mob to stalk a target, then once within range pounce onto a target, on success the target will be attacked dealing damage defined by the attack component. On failure, the mob will risk getting stuck.
minecraft:behavior.stay_near_noteblockThe entity will attempt to toss the items from its inventory to a nearby recently played noteblock.
minecraft:behavior.stay_while_sittingAllows the mob to stay put while it is in a sitting state instead of doing something else.
minecraft:behavior.stomp_attackAllows an entity to attack using stomp AoE damage behavior.
minecraft:behavior.stomp_turtle_eggAllows this mob to stomp turtle eggs.
minecraft:behavior.stroll_towards_villageAllows the mob to move into a random location within a village within the search range.
minecraft:behavior.summon_entityAllows the mob to attack the player by summoning other entities.
minecraft:behavior.swellAllows the creeper to swell up when a player is nearby. It can only be used by Creepers.
minecraft:behavior.swim_idleAllows the entity go idle, if swimming. Entity must be in water.
minecraft:behavior.swim_up_for_breathAllows the mob to try to move to air once it is close to running out of its total breathable supply. Requires "minecraft:breathable".
minecraft:behavior.swim_wanderAllows the entity to wander around while swimming, when not path-finding.
minecraft:behavior.swim_with_entityAllows the entity follow another entity. Both entities must be swimming [ie, in water].
minecraft:behavior.swoop_attackAllows an entity to attack using swoop attack behavior; Ideal for use with flying mobs. The behavior ends if the entity has a horizontal collision or gets hit.
minecraft:behavior.take_blockAI goal that makes entities pick up blocks from the world, like Endermen grabbing blocks to carry. Configure which blocks the entity can take and the search radius. Works with place_block behavior to create entities that relocate blocks or harvest materials from the environment.
minecraft:behavior.take_flowerAllows the mob to accept flowers from another mob with the minecraft:offer_flower behavior.
minecraft:behavior.target_when_pushedAllows the mob to target another mob when it is pushed by that mob.
minecraft:behavior.teleport_to_ownerAllows an entity to teleport to its owner.
minecraft:behavior.temptAllows a mob to be tempted by a player holding a specific item. Uses pathfinding for movement.
minecraft:behavior.timer_flag_1Fires an event when this behavior starts, then waits for a duration before stopping. When stopping due to that timeout or due to being interrupted by another behavior, fires another event. query.timer_flag_1 will return 1.0 on both the client and server when this behavior is running, and 0.0 otherwise.
minecraft:behavior.timer_flag_2Fires an event when this behavior starts, then waits for a duration before stopping. When stopping due to that timeout or due to being interrupted by another behavior, fires another event. query.timer_flag_2 will return 1.0 on both the client and server when this behavior is running, and 0.0 otherwise.
minecraft:behavior.timer_flag_3Fires an event when this behavior starts, then waits for a duration before stopping. When stopping due to that timeout or due to being interrupted by another behavior, fires another event. query.timer_flag_3 will return 1.0 on both the client and server when this behavior is running, and 0.0 otherwise.
minecraft:behavior.trade_interestAllows the mob to look at a player that is holding a tradable item.
minecraft:behavior.trade_with_playerAllows the player to trade with this mob. When the goal starts, it will stop the mob's navigation.
minecraft:behavior.transport_itemsA behavior that enables a mob to transport items from and to containers.
minecraft:behavior.use_kinetic_weaponEnables a mob to use kinetic weaponry by intermittently charging at its target and repositioning afterward.
minecraft:behavior.vex_copy_owner_targetAllows the mob to target the same entity its owner is targeting.
minecraft:behavior.vex_random_moveAllows the mob to move around randomly like the Vex.
minecraft:behavior.wither_random_attack_pos_goalAllows the wither to launch random attacks.
minecraft:behavior.wither_target_highest_damageAllows the wither to focus its attacks on whichever mob has dealt the most damage to it.
minecraft:behavior.workAllows the NPC to use the POI.
minecraft:behavior.work_composterAllows the NPC to use the composter POI to convert excess seeds into bone meal.
Sources
idSourceLicenseCommitAccessed
ms-learnMinecraft Creator documentation (Microsoft Learn)CC BY 4.0 (documentation), MIT (code)a9fd1c02026-11-13