Entity AI goal reference (3/41)
This page carries the AI goal (behavior) 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:behavior.avoid_mob_type
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_avoid_mob_type.md)
Allows the entity to run away from other entities that meet the criteria specified.
[!Note] This behavior defines which entities cause this mob to flee. Use entity_types filters to specify which mobs to avoid, with optional speed multipliers for walking and sprinting away.
Entity Avoid Mob Type Behavior Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| avoid_mob_sound | undefined | Avoid Mob Sound choices | The sound event to play when the mob is avoiding another mob. | |
| avoid_target_xz | 16 | Integer number | The next target position the entity chooses to avoid another entity will be chosen within this XZ Distance. | |
| avoid_target_y | 7 | Integer number | The next target position the entity chooses to avoid another entity will be chosen within this Y Distance. | |
| control_flags | [] | Control Flags choices | ||
| entity_types | [] | Array of objects | The list of conditions another entity must meet to be a valid target to avoid. | Bogged: [{"filters":{"test":"is_family","subject":"other","value":"wolf"},"max_dist":6,"walk_speed_multiplier":1.2,"sprint_speed_multiplier":1.2}], Cave Spider: [{"filters":{"all_of":[{"test":"is_family","subject":"other","value":"armadillo"},{"test":"enum_property","subject":"other","domain":"minecraft:armadillo_state","value":"unrolled"}]},"max_dist":6,"sprint_speed_multiplier":1.2}], Dolphin: [{"filters":{"any_of":[{"test":"is_family","subject":"other","value":"guardian_elder"},{"test":"is_family","subject":"other","value":"guardian"}]},"max_dist":8,"walk_speed_multiplier":1,"sprint_speed_multiplier":1}] |
| entity_types (Entity Types) | not set | Entity Types (Entity Types) item | ||
| ignore_visibility | false | Boolean true/false | Whether or not to ignore direct line of sight while this entity is running away from other specified entities. | |
| max_dist | 3 | Decimal number | Maximum distance to look for an avoid target for the entity. | |
| max_flee | 10 | Decimal number | How many blocks away from its avoid target the entity must be for it to stop fleeing from the avoid target. | |
| on_escape_event | {"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"} | Escape Event item | Event that is triggered when escaping from a mob. | |
| priority | 0 | Integer number | As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal. | Bogged: 4, Cave Spider: 2, Guardian: 1 |
| probability_per_strength | 1 | Decimal number | Percent chance this entity will stop avoiding another entity based on that entity's strength, where 1.0 = 100%. Value must be <= 1. | Dolphin: 0.14 |
| remove_target | false | Boolean true/false | Determine if we should remove target when fleeing or not. | |
| river_speed_multiplier | 0.75 | Decimal number | Multiplier for speed when following river. 1.0 means keep the regular speed, while higher numbers make the speed faster. | |
| sound_interval | {"max":8,"min":3} | Sound Interval item | The range of time in seconds to randomly wait before playing the sound again. | |
| sprint_distance | 7 | Decimal number | How many blocks within range of its avoid target the entity must be for it to begin sprinting away from the avoid target. | |
| sprint_speed_multiplier | 1 | Decimal number | Multiplier for sprint speed. 1.0 means keep the regular speed, while higher numbers make the sprint speed faster. | |
| walk_speed_multiplier | 1 | Decimal number | Multiplier for walking speed. 1.0 means keep the regular speed, while higher numbers make the walking speed faster. |
Avoid Mob Sound choices
| Value | Title | Description |
|---|---|---|
| absorb_block | Absorb block | |
| activate | Activate | |
| add.chest | Add.chest | |
| admire | Admire | |
| agitated | Agitated | |
| ambient | Ambient | |
| ambient.aggressive | Ambient.aggressive | |
| ambient.baby | Ambient.baby | |
| ambient.basalt_deltas.additions | Ambient.basalt deltas.additions | |
| ambient.basalt_deltas.loop | Ambient.basalt deltas.loop | |
| ambient.basalt_deltas.mood | Ambient.basalt deltas.mood | |
| ambient.candle | Ambient.candle | |
| ambient.cave | Ambient.cave | |
| ambient.crimson_forest.additions | Ambient.crimson forest.additions | |
| ambient.crimson_forest.loop | Ambient.crimson forest.loop | |
| ambient.crimson_forest.mood | Ambient.crimson forest.mood | |
| ambient.in.air | Ambient.in.air | |
| ambient.in.raid | Ambient.in.raid | |
| ambient.in.water | Ambient.in.water | |
| ambient.nether_wastes.additions | Ambient.nether wastes.additions | |
| ambient.nether_wastes.loop | Ambient.nether wastes.loop | |
| ambient.nether_wastes.mood | Ambient.nether wastes.mood | |
| ambient.pollinate | Ambient.pollinate | |
| ambient.screamer | Ambient.screamer | |
| ambient.soulsand_valley.additions | Ambient.soulsand valley.additions | |
| ambient.soulsand_valley.loop | Ambient.soulsand valley.loop | |
| ambient.soulsand_valley.mood | Ambient.soulsand valley.mood | |
| ambient.tame | Ambient.tame | |
| ambient.underwater.enter | Ambient.underwater.enter | |
| ambient.underwater.exit | Ambient.underwater.exit | |
| ambient.warped_forest.additions | Ambient.warped forest.additions | |
| ambient.warped_forest.loop | Ambient.warped forest.loop | |
| ambient.warped_forest.mood | Ambient.warped forest.mood | |
| ambient.weather.the_end_light_flash | Ambient.weather.the end light flash | |
| ambient.worried | Ambient.worried | |
| angry | Angry | |
| apply_effect.bad_omen | Apply effect.bad omen | |
| apply_effect.raid_omen | Apply effect.raid omen | |
| apply_effect.trial_omen | Apply effect.trial omen | |
| armor | Armor | |
| armor.break_wolf | Armor.break wolf | |
| armor.crack_wolf | Armor.crack wolf | |
| armor.equip_chain | Armor.equip chain | |
| armor.equip_copper | Armor.equip copper | |
| armor.equip_diamond | Armor.equip diamond | |
| armor.equip_elytra | Armor.equip elytra | |
| armor.equip_generic | Armor.equip generic | |
| armor.equip_gold | Armor.equip gold | |
| armor.equip_iron | Armor.equip iron | |
| armor.equip_leather | Armor.equip leather | |
| armor.equip_netherite | Armor.equip netherite | |
| armor.equip_wolf | Armor.equip wolf | |
| armor.repair_wolf | Armor.repair wolf | |
| armor.unequip_generic | Armor.unequip generic | |
| armor.unequip_wolf | Armor.unequip wolf | |
| attach | Attach | |
| attack | Attack | |
| attack.critical | Attack.critical | |
| attack.nodamage | Attack.nodamage | |
| attack.strong | Attack.strong | |
| balloonpop | Balloonpop | |
| beacon.activate | Beacon.activate | |
| beacon.ambient | Beacon.ambient | |
| beacon.deactivate | Beacon.deactivate | |
| beacon.power | Beacon.power | |
| blast | Blast | |
| block.bamboo_sapling.place | Block.bamboo sapling.place | |
| block.barrel.close | Block.barrel.close | |
| block.barrel.open | Block.barrel.open | |
| block.beehive.drip | Block.beehive.drip | |
| block.beehive.enter | Block.beehive.enter | |
| block.beehive.exit | Block.beehive.exit | |
| block.beehive.shear | Block.beehive.shear | |
| block.beehive.work | Block.beehive.work | |
| block.bell.hit | Block.bell.hit | |
| block.blastfurnace.fire_crackle | Block.blastfurnace.fire crackle | |
| block.campfire.crackle | Block.campfire.crackle | |
| block.cartography_table.use | Block.cartography table.use | |
| block.click | Block.click | |
| block.click.fail | Block.click.fail | |
| block.composter.empty | Block.composter.empty | |
| block.composter.fill | Block.composter.fill | |
| block.composter.fill_success | Block.composter.fill success | |
| block.composter.ready | Block.composter.ready | |
| block.copper_bulb.turn_off | Block.copper bulb.turn off | |
| block.copper_bulb.turn_on | Block.copper bulb.turn on | |
| block.creaking_heart.trail | Block.creaking heart.trail | |
| block.decorated_pot.insert | Block.decorated pot.insert | |
| block.decorated_pot.insert_fail | Block.decorated pot.insert fail | |
| block.enchanting_table.use | Block.enchanting table.use | |
| block.end_portal.spawn | Block.end portal.spawn | |
| block.end_portal_frame.fill | Block.end portal frame.fill | |
| block.fletching_table.use | Block.fletching table.use | |
| block.frog_spawn.break | Block.frog spawn.break | |
| block.frog_spawn.hatch | Block.frog spawn.hatch | |
| block.furnace.lit | Block.furnace.lit | |
| block.grindstone.use | Block.grindstone.use | |
| block.loom.use | Block.loom.use | |
| block.scaffolding.climb | Block.scaffolding.climb | |
| block.sculk.spread | Block.sculk.spread | |
| block.sculk_catalyst.bloom | Block.sculk catalyst.bloom | |
| block.sculk_sensor.place | Block.sculk sensor.place | |
| block.sculk_shrieker.place | Block.sculk shrieker.place | |
| block.sculk_shrieker.shriek | Block.sculk shrieker.shriek | |
| block.sign.waxed_interact_fail | Block.sign.waxed interact fail | |
| block.smithing_table.use | Block.smithing table.use | |
| block.smoker.smoke | Block.smoker.smoke | |
| block.sniffer_egg.crack | Block.sniffer egg.crack | |
| block.sniffer_egg.hatch | Block.sniffer egg.hatch | |
| block.stonecutter.use | Block.stonecutter.use | |
| block.sweet_berry_bush.hurt | Block.sweet berry bush.hurt | |
| block.sweet_berry_bush.pick | Block.sweet berry bush.pick | |
| block.turtle_egg.attack | Block.turtle egg.attack | |
| block.turtle_egg.break | Block.turtle egg.break | |
| block.turtle_egg.crack | Block.turtle egg.crack | |
| block.turtle_egg.hatch | Block.turtle egg.hatch | |
| boost | Boost | |
| born | Born | |
| bottle.dragonbreath | Bottle.dragonbreath | |
| bottle.empty | Bottle.empty | |
| bottle.fill | Bottle.fill | |
| bounce | Bounce | |
| bow | Bow | |
| bow.hit | Bow.hit | |
| break | Break | |
| break.block | Break.block | |
| break_pot | Break pot | |
| breathe | Breathe | |
| breeze_wind_charge.burst | Breeze wind charge.burst | |
| brush | Brush | |
| brush_completed | Brush completed | |
| bubble.down | Bubble.down | |
| bubble.downinside | Bubble.downinside | |
| bubble.pop | Bubble.pop | |
| bubble.up | Bubble.up | |
| bubble.upinside | Bubble.upinside | |
| bucket.empty.fish | Bucket.empty.fish | |
| bucket.empty.land_animal | Bucket.empty.land animal | |
| bucket.empty.lava | Bucket.empty.lava | |
| bucket.empty.powder_snow | Bucket.empty.powder snow | |
| bucket.empty.water | Bucket.empty.water | |
| bucket.fill.fish | Bucket.fill.fish | |
| bucket.fill.land_animal | Bucket.fill.land animal | |
| bucket.fill.lava | Bucket.fill.lava | |
| bucket.fill.powder_snow | Bucket.fill.powder snow | |
| bucket.fill.water | Bucket.fill.water | |
| bullet.hit | Bullet.hit | |
| bundle.drop_contents | Bundle.drop contents | |
| bundle.insert | Bundle.insert | |
| bundle.insert_fail | Bundle.insert fail | |
| bundle.remove_one | Bundle.remove one | |
| burp | Burp | |
| button.click_off | Button.click off | |
| button.click_on | Button.click on | |
| cake.add_candle | Cake.add candle | |
| camera.take_picture | Camera.take picture | |
| cant_breed | Cant breed | |
| cast.spell | Cast.spell | |
| cauldron_drip.lava.pointed_dripstone | Cauldron drip.lava.pointed dripstone | |
| cauldron_drip.water.pointed_dripstone | Cauldron drip.water.pointed dripstone | |
| celebrate | Celebrate | |
| charge | Charge | |
| charge.sculk | Charge.sculk | |
| chest.closed | Chest.closed | |
| chest.open | Chest.open | |
| chime.amethyst_block | Chime.amethyst block | |
| chorusdeath | Chorusdeath | |
| chorusgrow | Chorusgrow | |
| close | Close | |
| close_long | Close long | |
| conduit.activate | Conduit.activate | |
| conduit.ambient | Conduit.ambient | |
| conduit.attack | Conduit.attack | |
| conduit.deactivate | Conduit.deactivate | |
| conduit.short | Conduit.short | |
| convert_mooshroom | Convert mooshroom | |
| convert_to_drowned | Convert to drowned | |
| convert_to_frog | Convert to frog | |
| convert_to_frostbite | Convert to frostbite | |
| convert_to_stray | Convert to stray | |
| convert_to_zombie | Convert to zombie | |
| converted_to_zombified | Converted to zombified | |
| copper.wax.off | Copper.wax.off | |
| copper.wax.on | Copper.wax.on | |
| crack | Crack | |
| crafter.craft | Crafter.craft | |
| crafter.disable_slot | Crafter.disable slot | |
| crafter.fail | Crafter.fail | |
| creaking_heart_spawn | Creaking heart spawn | |
| crossbow.loading.end | Crossbow.loading.end | |
| crossbow.loading.middle | Crossbow.loading.middle | |
| crossbow.loading.start | Crossbow.loading.start | |
| crossbow.quick_charge.end | Crossbow.quick charge.end | |
| crossbow.quick_charge.middle | Crossbow.quick charge.middle | |
| crossbow.quick_charge.start | Crossbow.quick charge.start | |
| crossbow.shoot | Crossbow.shoot | |
| dash_ready | Dash ready | |
| deactivate | Deactivate | |
| death | Death | |
| death.baby | Death.baby | |
| death.in.water | Death.in.water | |
| death.mid.volume | Death.mid.volume | |
| death.min.volume | Death.min.volume | |
| death.screamer | Death.screamer | |
| death.to.zombie | Death.to.zombie | |
| default | Default | |
| deny | Deny | |
| detach | Detach | |
| disappeared | Disappeared | |
| dismount | Dismount | |
| door.close | Door.close | |
| door.open | Door.open | |
| drink | Drink | |
| drink.honey | Drink.honey | |
| drink.milk | Drink.milk | |
| drip.lava.pointed_dripstone | Drip.lava.pointed dripstone | |
| drip.water.pointed_dripstone | Drip.water.pointed dripstone | |
| drop.slot | Drop.slot | |
| eat | Eat | |
| eject_block | Eject block | |
| elderguardian.curse | Elderguardian.curse | |
| elemconstruct.open | Elemconstruct.open | |
| enderchest.closed | Enderchest.closed | |
| enderchest.open | Enderchest.open | |
| explode | Explode | |
| extinguish.candle | Extinguish.candle | |
| extinguish.fire | Extinguish.fire | |
| fall | Fall | |
| fall.big | Fall.big | |
| fall.small | Fall.small | |
| fang | Fang | |
| fence_gate.close | Fence gate.close | |
| fence_gate.open | Fence gate.open | |
| fire | Fire | |
| fizz | Fizz | |
| flap | Flap | |
| flop | Flop | |
| fly | Fly | |
| freeze | Freeze | |
| fuse | Fuse | |
| gallop | Gallop | |
| geyser_continuous_eruption_active | Geyser continuous eruption active | |
| geyser_continuous_eruption_start | Geyser continuous eruption start | |
| geyser_eruption_active | Geyser eruption active | |
| geyser_eruption_start | Geyser eruption start | |
| glass | Glass | |
| glow_squid.ink_squirt | Glow squid.ink squirt | |
| glowstick.use | Glowstick.use | |
| growl | Growl | |
| haggle | Haggle | |
| haggle.idle | Haggle.idle | |
| haggle.no | Haggle.no | |
| haggle.yes | Haggle.yes | |
| heartbeat | Heartbeat | |
| heavy.step | Heavy.step | |
| hit | Hit | |
| horn_break | Horn break | |
| horn_call0 | Horn call0 | |
| horn_call1 | Horn call1 | |
| horn_call2 | Horn call2 | |
| horn_call3 | Horn call3 | |
| horn_call4 | Horn call4 | |
| horn_call5 | Horn call5 | |
| horn_call6 | Horn call6 | |
| horn_call7 | Horn call7 | |
| hurt | Hurt | |
| hurt.baby | Hurt.baby | |
| hurt.in.water | Hurt.in.water | |
| hurt.reduced | Hurt.reduced | |
| hurt.screamer | Hurt.screamer | |
| ice_ball.throw | Ice ball.throw | |
| icebomb.hit | Icebomb.hit | |
| ignite | Ignite | |
| imitate.blaze | Imitate.blaze | |
| imitate.bogged | Imitate.bogged | |
| imitate.breeze | Imitate.breeze | |
| imitate.camel_husk | Imitate.camel husk | |
| imitate.cave_spider | Imitate.cave spider | |
| imitate.creaking | Imitate.creaking | |
| imitate.creeper | Imitate.creeper | |
| imitate.drowned | Imitate.drowned | |
| imitate.elder_guardian | Imitate.elder guardian | |
| imitate.ender_dragon | Imitate.ender dragon | |
| imitate.enderman | Imitate.enderman | |
| imitate.endermite | Imitate.endermite | |
| imitate.evocation_illager | Imitate.evocation illager | |
| imitate.frostbite | Imitate.frostbite | |
| imitate.ghast | Imitate.ghast | |
| imitate.guardian | Imitate.guardian | |
| imitate.happy_ghast | Imitate.happy ghast | |
| imitate.husk | Imitate.husk | |
| imitate.magma_cube | Imitate.magma cube | |
| imitate.parched | Imitate.parched | |
| imitate.phantom | Imitate.phantom | |
| imitate.pillager | Imitate.pillager | |
| imitate.polar_bear | Imitate.polar bear | |
| imitate.ravager | Imitate.ravager | |
| imitate.shulker | Imitate.shulker | |
| imitate.silverfish | Imitate.silverfish | |
| imitate.skeleton | Imitate.skeleton | |
| imitate.slime | Imitate.slime | |
| imitate.spider | Imitate.spider | |
| imitate.stray | Imitate.stray | |
| imitate.vex | Imitate.vex | |
| imitate.vindication_illager | Imitate.vindication illager | |
| imitate.warden | Imitate.warden | |
| imitate.witch | Imitate.witch | |
| imitate.wither | Imitate.wither | |
| imitate.wither_skeleton | Imitate.wither skeleton | |
| imitate.wolf | Imitate.wolf | |
| imitate.zoglin | Imitate.zoglin | |
| imitate.zombie | Imitate.zombie | |
| imitate.zombie_pigman | Imitate.zombie pigman | |
| imitate.zombie_villager | Imitate.zombie villager | |
| insert | Insert | |
| insert_enchanted | Insert enchanted | |
| irongolem.crack | Irongolem.crack | |
| irongolem.repair | Irongolem.repair | |
| item.book.put | Item.book.put | |
| item.copper_spear.attack_hit | Item.copper spear.attack hit | |
| item.copper_spear.attack_miss | Item.copper spear.attack miss | |
| item.copper_spear.use | Item.copper spear.use | |
| item.diamond_spear.attack_hit | Item.diamond spear.attack hit | |
| item.diamond_spear.attack_miss | Item.diamond spear.attack miss | |
| item.diamond_spear.use | Item.diamond spear.use | |
| item.enchant.lunge1 | Item.enchant.lunge1 | |
| item.enchant.lunge2 | Item.enchant.lunge2 | |
| item.enchant.lunge3 | Item.enchant.lunge3 | |
| item.fizz | Item.fizz | |
| Dragonfly server patch | Item.golden spear.attack hit | |
| Dragonfly server patch | Item.golden spear.attack miss | |
| Dragonfly server patch | Item.golden spear.use | |
| item.iron_spear.attack_hit | Item.iron spear.attack hit | |
| item.iron_spear.attack_miss | Item.iron spear.attack miss | |
| item.iron_spear.use | Item.iron spear.use | |
| item.netherite_spear.attack_hit | Item.netherite spear.attack hit | |
| item.netherite_spear.attack_miss | Item.netherite spear.attack miss | |
| item.netherite_spear.use | Item.netherite spear.use | |
| item.shield.block | Item.shield.block | |
| item.spear.attack_hit | Item.spear.attack hit | |
| item.spear.attack_miss | Item.spear.attack miss | |
| item.spear.use | Item.spear.use | |
| item.spyglass.stop_using | Item.spyglass.stop using | |
| item.spyglass.use | Item.spyglass.use | |
| item.stone_spear.attack_hit | Item.stone spear.attack hit | |
| item.stone_spear.attack_miss | Item.stone spear.attack miss | |
| item.stone_spear.use | Item.stone spear.use | |
| item.trident.hit | Item.trident.hit | |
| item.trident.hit_ground | Item.trident.hit ground | |
| item.trident.return | Item.trident.return | |
| item.trident.riptide_1 | Item.trident.riptide 1 | |
| item.trident.riptide_2 | Item.trident.riptide 2 | |
| item.trident.riptide_3 | Item.trident.riptide 3 | |
| item.trident.throw | Item.trident.throw | |
| item.trident.thunder | Item.trident.thunder | |
| item.use.on | Item.use.on | |
| item.wooden_spear.attack_hit | Item.wooden spear.attack hit | |
| item.wooden_spear.attack_miss | Item.wooden spear.attack miss | |
| item.wooden_spear.use | Item.wooden spear.use | |
| item_given | Item given | |
| item_taken | Item taken | |
| item_thrown | Item thrown | |
| jump | Jump | |
| jump.prevent | Jump.prevent | |
| jump_to_block | Jump to block | |
| land | Land | |
| large.blast | Large.blast | |
| launch | Launch | |
| lava | Lava | |
| lava.pop | Lava.pop | |
| lay_egg | Lay egg | |
| lay_spawn | Lay spawn | |
| lead.break | Lead.break | |
| lead.leash | Lead.leash | |
| lead.unleash | Lead.unleash | |
| leashknot.break | Leashknot.break | |
| leashknot.place | Leashknot.place | |
| levelup | Levelup | |
| listening | Listening | |
| listening_angry | Listening angry | |
| lodestone_compass.link_compass_to_lodestone | Lodestone compass.link compass to lodestone | |
| lt.reaction.bleach | Lt.reaction.bleach | |
| lt.reaction.epaste | Lt.reaction.epaste | |
| lt.reaction.epaste2 | Lt.reaction.epaste2 | |
| lt.reaction.fertilizer | Lt.reaction.fertilizer | |
| lt.reaction.fire | Lt.reaction.fire | |
| lt.reaction.fireball | Lt.reaction.fireball | |
| lt.reaction.icebomb | Lt.reaction.icebomb | |
| lt.reaction.mgsalt | Lt.reaction.mgsalt | |
| lt.reaction.miscexplosion | Lt.reaction.miscexplosion | |
| lt.reaction.miscfire | Lt.reaction.miscfire | |
| lt.reaction.miscmystical | Lt.reaction.miscmystical | |
| lt.reaction.miscmystical2 | Lt.reaction.miscmystical2 | |
| lt.reaction.product | Lt.reaction.product | |
| mace.heavy_smash_ground | Mace.heavy smash ground | |
| mace.smash_air | Mace.smash air | |
| mace.smash_ground | Mace.smash ground | |
| mad | Mad | |
| milk | Milk | |
| milk.screamer | Milk.screamer | |
| milk_suspiciously | Milk suspiciously | |
| mob.armadillo.brush | Mob.armadillo.brush | |
| mob.armadillo.scute_drop | Mob.armadillo.scute drop | |
| mob.armor_stand.place | Mob.armor stand.place | |
| mob.hoglin.converted_to_zombified | Mob.hoglin.converted to zombified | |
| mob.husk.convert_to_zombie | Mob.husk.convert to zombie | |
| mob.pig.death | Mob.pig.death | |
| mob.player.hurt_drown | Mob.player.hurt drown | |
| mob.player.hurt_freeze | Mob.player.hurt freeze | |
| mob.player.hurt_on_fire | Mob.player.hurt on fire | |
| mob.warning | Mob.warning | |
| mob.warning.baby | Mob.warning.baby | |
| mount | Mount | |
| multi_swap | Multi swap | |
| nearby_close | Nearby close | |
| nearby_closer | Nearby closer | |
| nearby_closest | Nearby closest | |
| note | Note | |
| note.bass | Note.bass | |
| ominous_bottle.end_use | Ominous bottle.end use | |
| ominous_item_spawner.about_to_spawn_item | Ominous item spawner.about to spawn item | |
| ominous_item_spawner.spawn_item | Ominous item spawner.spawn item | |
| ominous_item_spawner.spawn_item_begin | Ominous item spawner.spawn item begin | |
| open | Open | |
| open_long | Open long | |
| panic | Panic | |
| pant | Pant | |
| particle.soul_escape.loud | Particle.soul escape.loud | |
| particle.soul_escape.quiet | Particle.soul escape.quiet | |
| pause_growth | Pause growth | |
| pick_berries.cave_vines | Pick berries.cave vines | |
| pickup | Pickup | |
| pickup_enchanted | Pickup enchanted | |
| piston.in | Piston.in | |
| piston.out | Piston.out | |
| place | Place | |
| place_in_water | Place in water | |
| place_item | Place item | |
| plop | Plop | |
| pop | Pop | |
| portal | Portal | |
| portal.travel | Portal.travel | |
| potion.brewed | Potion.brewed | |
| power.off | Power.off | |
| power.off.sculk_sensor | Power.off.sculk sensor | |
| power.on | Power.on | |
| power.on.sculk_sensor | Power.on.sculk sensor | |
| pre_ram | Pre ram | |
| pre_ram.screamer | Pre ram.screamer | |
| prepare.attack | Prepare.attack | |
| prepare.summon | Prepare.summon | |
| prepare.wololo | Prepare.wololo | |
| presneeze | Presneeze | |
| pressure_plate.click_off | Pressure plate.click off | |
| pressure_plate.click_on | Pressure plate.click on | |
| pumpkin.carve | Pumpkin.carve | |
| purr | Purr | |
| purreow | Purreow | |
| pushed_by_player | Pushed by player | |
| raid.horn | Raid.horn | |
| ram_impact | Ram impact | |
| ram_impact.screamer | Ram impact.screamer | |
| random.anvil_use | Random.anvil use | |
| reappeared | Reappeared | |
| record.11 | Record.11 | |
| record.13 | Record.13 | |
| record.5 | Record.5 | |
| record.blocks | Record.blocks | |
| record.bounce | Record.bounce | |
| record.cat | Record.cat | |
| record.chirp | Record.chirp | |
| record.creator | Record.creator | |
| record.creator_music_box | Record.creator music box | |
| record.far | Record.far | |
| record.flurry | Record.flurry | |
| record.lava_chicken | Record.lava chicken | |
| record.mall | Record.mall | |
| record.mellohi | Record.mellohi | |
| record.null | Record.null | |
| record.otherside | Record.otherside | |
| record.pigstep | Record.pigstep | |
| record.precipice | Record.precipice | |
| record.relic | Record.relic | |
| record.stal | Record.stal | |
| record.strad | Record.strad | |
| record.tears | Record.tears | |
| record.wait | Record.wait | |
| record.ward | Record.ward | |
| reflect | Reflect | |
| remedy | Remedy | |
| reset_growth | Reset growth | |
| respawn_anchor.ambient | Respawn anchor.ambient | |
| respawn_anchor.charge | Respawn anchor.charge | |
| respawn_anchor.deplete | Respawn anchor.deplete | |
| respawn_anchor.set_spawn | Respawn anchor.set spawn | |
| retreat | Retreat | |
| roar | Roar | |
| saddle | Saddle | |
| saddle_in_water | Saddle in water | |
| scared | Scared | |
| scrape | Scrape | |
| screech | Screech | |
| shake | Shake | |
| shatter_pot | Shatter pot | |
| shear | Shear | |
| shoot | Shoot | |
| shulker.close | Shulker.close | |
| shulker.open | Shulker.open | |
| shulkerbox.closed | Shulkerbox.closed | |
| shulkerbox.open | Shulkerbox.open | |
| single_swap | Single swap | |
| sleep | Sleep | |
| slime_landing | Slime landing | |
| smithing_table.use | Smithing table.use | |
| sneeze | Sneeze | |
| sonic_boom | Sonic boom | |
| sonic_charge | Sonic charge | |
| sparkler.active | Sparkler.active | |
| sparkler.use | Sparkler.use | |
| spawn | Spawn | |
| splash | Splash | |
| sponge.absorb | Sponge.absorb | |
| squid.ink_squirt | Squid.ink squirt | |
| squish.big | Squish.big | |
| squish.small | Squish.small | |
| stare | Stare | |
| state_change | State change | |
| step | Step | |
| step.baby | Step.baby | |
| step_lava | Step lava | |
| step_sand | Step sand | |
| straw_bed.break_leave | Straw bed.break leave | |
| stun | Stun | |
| swim | Swim | |
| swoop | Swoop | |
| takeoff | Takeoff | |
| teleport | Teleport | |
| tempt | Tempt | |
| thorns | Thorns | |
| throw | Throw | |
| thunder | Thunder | |
| tilt_down.big_dripleaf | Tilt down.big dripleaf | |
| tilt_up.big_dripleaf | Tilt up.big dripleaf | |
| tongue | Tongue | |
| trapdoor.close | Trapdoor.close | |
| trapdoor.open | Trapdoor.open | |
| trial_spawner.ambient | Trial spawner.ambient | |
| trial_spawner.ambient_ominous | Trial spawner.ambient ominous | |
| trial_spawner.charge_activate | Trial spawner.charge activate | |
| trial_spawner.close_shutter | Trial spawner.close shutter | |
| trial_spawner.detect_player | Trial spawner.detect player | |
| trial_spawner.eject_item | Trial spawner.eject item | |
| trial_spawner.open_shutter | Trial spawner.open shutter | |
| trial_spawner.spawn_mob | Trial spawner.spawn mob | |
| tripod | Tripod | |
| twinkle | Twinkle | |
| ui.cartography_table.take_result | Ui.cartography table.take result | |
| ui.loom.take_result | Ui.loom.take result | |
| ui.stonecutter.take_result | Ui.stonecutter.take result | |
| undefined | Undefined | |
| unfect | Unfect | |
| unfreeze | Unfreeze | |
| unsaddle | Unsaddle | |
| vault.activate | Vault.activate | |
| vault.ambient | Vault.ambient | |
| vault.close_shutter | Vault.close shutter | |
| vault.deactivate | Vault.deactivate | |
| vault.eject_item | Vault.eject item | |
| vault.insert_item | Vault.insert item | |
| vault.insert_item_fail | Vault.insert item fail | |
| vault.open_shutter | Vault.open shutter | |
| vault.reject_rewarded_player | Vault.reject rewarded player | |
| warn | Warn | |
| water | Water | |
| whine | Whine | |
| wind_charge.burst | Wind charge.burst |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
Entity Types (Entity Types)
Entity Types Properties
JSON path: entity_types
| Name | Default Value | Type | Description |
|---|---|---|---|
| check_if_outnumbered | false | Boolean true/false | If true, the mob will check if its outnumbered |
| cooldown | 0 | Integer number | The amount of time in seconds that the mob has to wait before selecting a target of the same type again |
| 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 make this entry in the list valid |
| filters (Alternate 1) | not set | Object | |
| max_dist | 16 | Decimal number | Maximum distance this mob can be away to be a valid choice |
| max_flee | 10 | Decimal number | Maximum distance this mob can be from the target to stop fleeing |
| max_height | -1 | Decimal number | Maximum height this mob can be away to be a valid choice |
| must_see | not set | Boolean true/false | If true, the mob has to be visible to be a valid choice |
| must_see_forget_duration | 3 | Integer number | Determines the amount of time in seconds that this mob will look for a target before forgetting about it and looking for a new one when the target isn't visible any more |
| priority | 0 | Integer number | Priority for this mob type |
| reevaluate_description | false | Boolean true/false | If true, the mob will stop being targeted if it stops meeting any conditions. |
| sprint_speed_multiplier | 1 | Decimal number | Multiplier for the sprinting speed. A value of 1.0 means the speed is unchanged |
| walk_speed_multiplier | 1 | Decimal number | Multiplier for the walking speed. A value of 1.0 means the speed is unchanged |
Filters
Filters Properties
JSON path: entity_types > 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. |
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: on_escape_event
| Name | Default Value | Type | Description |
|---|---|---|---|
| event | String | ||
| filters (Filters) | {"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null} | Filters item | Filters allow data objects to specify test criteria which allows their use. |
| filters (Alternate 1) | not set | Object | |
| target | self | Target 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.
Target choices
| Value | Title | Description |
|---|---|---|
| baby | Baby | |
| block | Block | |
| damager | Damager | |
| holder | Holder | |
| item | Item | |
| other | Other | |
| parent | Parent | |
| player | Player | |
| self | Self | |
| target | Target |
Legacy FloatRange
Legacy FloatRange Properties
JSON path: sound_interval
| Name | Default Value | Type | Description |
|---|---|---|---|
| max | 0 | Decimal number | |
| min | 0 | Decimal number |
Samples
Bogged
"minecraft:behavior.avoid_mob_type": {
"entity_types": [
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "wolf"
},
"max_dist": 6,
"walk_speed_multiplier": 1.2,
"sprint_speed_multiplier": 1.2
}
],
"priority": 4
}
Cave Spider
"minecraft:behavior.avoid_mob_type": {
"entity_types": [
{
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"value": "armadillo"
},
{
"test": "enum_property",
"subject": "other",
"domain": "minecraft:armadillo_state",
"value": "unrolled"
}
]
},
"max_dist": 6,
"sprint_speed_multiplier": 1.2
}
],
"priority": 2
}
Dolphin
"minecraft:behavior.avoid_mob_type": {
"priority": 2,
"entity_types": [
{
"filters": {
"any_of": [
{
"test": "is_family",
"subject": "other",
"value": "guardian_elder"
},
{
"test": "is_family",
"subject": "other",
"value": "guardian"
}
]
},
"max_dist": 8,
"walk_speed_multiplier": 1,
"sprint_speed_multiplier": 1
}
],
"probability_per_strength": 0.14
}
Guardian
"minecraft:behavior.avoid_mob_type": {
"entity_types": [
{
"filters": {
"AND": [
{
"test": "is_family",
"subject": 1,
"operator": 0,
"value": "player"
}
]
},
"max_dist": 8
}
],
"priority": 1
}
Parched
"minecraft:behavior.avoid_mob_type": {
"entity_types": [
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "wolf"
},
"max_dist": 6,
"walk_speed_multiplier": 1.2,
"sprint_speed_multiplier": 1.2
}
],
"priority": 5
}
| id | Source | License | Commit | Accessed |
|---|---|---|---|---|
ms-learn | Minecraft Creator documentation (Microsoft Learn) | CC BY 4.0 (documentation), MIT (code) | a9fd1c0 | 2026-11-13 |