1. Wiki
  2. /Entities
  3. /minecraft:behavior.sneeze

minecraft:behavior.sneeze

Don't want to write this by hand? GodCraft sets minecraft:behavior.sneeze for you with a switch.Get GodCraft

Overview

minecraft:behavior.sneeze is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Makes the mob sneeze now and then, which can drop an item and make nearby mobs jump. Baby pandas use it to drop slimeballs.

Fields

FieldTypeDefaultDescription
cooldown_timenumber0Seconds the mob waits before it can sneeze again.
probabilitynumber0.02Chance of sneezing. 1 means always.
drop_item_chancenumber1Chance that a sneeze drops an item.
loot_tablestring""Path to the loot table that picks the dropped item.
soundstring""Sound played when the mob sneezes.
prepare_soundstring""Sound played just before the sneeze.
prepare_timenumber1Seconds the mob spends getting ready to sneeze.
entity_typesEntityTypesnoneWhich nearby mobs get startled and jump when it sneezes.
within_radiusnumber0How close mobs must be to get startled.
priorityinteger0Decides which goal wins when several want to run: lower numbers run first.Range: 0 to …
control_flagsGoal's control flags[]noneLists the body parts this goal takes control of (such as move, look or jump), so goals that need the same part don't run together.

Example

Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):

BP/entities/<name>.json
{
  "minecraft:behavior.sneeze": {
    "cooldown_time": 0,
    "probability": 0.02,
    "drop_item_chance": 1,
    "loot_table": "",
    "sound": "",
    "prepare_sound": "",
    "prepare_time": 1,
    "entity_types": {}
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more