minecraft:behavior.sneeze

Allows the mob to sneeze, causing it to drop items and affect nearby mobs.

Properties

PropertyTypeDefaultWhat it does
cooldown_timeDecimal0Time in seconds the mob has to wait before using the goal again
probabilityDecimal0.02The probability of sneezing. A value of 1.00 is 100%
drop_item_chanceDecimal1The probability that the mob will drop an item when it sneezes.
loot_tableText""Loot table to select dropped items from.
soundText""Sound to play when the sneeze occurs
prepare_soundText""Sound to play when the sneeze is about to happen.
prepare_timeDecimal1The time in seconds that the mob takes to prepare to sneeze (while the prepare_sound is playing).
entity_typesList of object or Object[]List of entity types this mob will startle (cause to jump) when it sneezes.
filtersObject or List of object{"AND": null, "NOT": null, "OR": null, "all": null, "all_…Conditions that make this entry in the list valid
max_distDecimal16Maximum distance this mob can be away to be a valid choice
max_heightDecimal-1Maximum height this mob can be away to be a valid choice
max_fleeDecimal10Maximum distance this mob can be from the target to stop fleeing
walk_speed_multiplierDecimal1Multiplier for the walking speed. A value of 1.0 means the speed is unchanged
sprint_speed_multiplierDecimal1Multiplier for the sprinting speed. A value of 1.0 means the speed is unchanged
priorityInteger0Priority for this mob type
check_if_outnumberedBooleanfalseIf true, the mob will check if its outnumbered
reevaluate_descriptionBooleanfalseIf true, the mob will stop being targeted if it stops meeting any conditions.
cooldownInteger0The amount of time in seconds that the mob has to wait before selecting a target of the same type again
must_seeBoolean—If true, the mob has to be visible to be a valid choice
must_see_forget_durationInteger3Determines 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
within_radiusDecimal0Distance in blocks that mobs will be startled.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Panda uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.sneeze": {
    "priority": 7,
    "probability": 0.0001666,
    "cooldown_time": 1.0,
    "within_radius": 10.0,
    "entity_types": [
      {
        "filters": {
          "all_of": [
            {
              "test": "has_component",
              "subject": "other",
              "operator": "!=",
              "value": "minecraft:is_baby"
            },
            {
              "test": "is_family",
              "subject": "other",
              "value": "panda"
            },
            {
              "test": "in_water",
              "subject": "other",
              "operator": "!=",
              "value": true
            },
            {
              "test": "on_ground",
              "operator": "==",
              "value": true
            }
          ]
        },
        "max_dist": 10
      }
    ],
    "drop_item_chance": 0.001,
    "loot_table": "loot_tables/entities/panda_sneeze.json",
    "prepare_sound": "presneeze",
    "prepare_time": 1.0,
    "sound": "sneeze"
  }
}

Used by 1

Vanilla entities with minecraft:behavior.sneeze in their definition:

Related components