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

minecraft:behavior.mingle

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

Overview

minecraft:behavior.mingle is an entity component: it goes in the components object of a custom mob, or in one of its component groups. AI goal that makes the mob walk to the village bell and chat with others there, like villagers at their gathering time.

Fields

FieldTypeDefaultDescription
durationnumber1How many seconds the mob chats with a partner.Range: 0 to …
cooldown_timenumber0Seconds to wait before the goal can run again.Range: 0 to …
mingle_partner_typestring""The entity type this mob can chat with.
mingle_distancenumber2How far from its partner the mob stands. If the partner is a different type, set the same value on both.Range: 0 to …
speed_multipliernumber1Speed multiplier while walking to the bell.Range: 0 to …
priorityinteger0Lower numbers run first: when two goals compete, the one with the smaller priority wins.Range: 0 to …
control_flagsGoal's control flags[]noneWhich body parts this goal takes over (move, look, jump), so goals using the same parts cannot run together.

Example

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

BP/entities/<name>.json
{
  "minecraft:behavior.mingle": {
    "duration": 1,
    "cooldown_time": 0,
    "mingle_partner_type": "",
    "mingle_distance": 2,
    "speed_multiplier": 1,
    "priority": 0,
    "control_flags": []
  }
}

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