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

minecraft:behavior.dragonchargeplayer

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

Overview

minecraft:behavior.dragonchargeplayer is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Ender Dragon only: makes the dragon rush at the player picked while scanning.

Fields

FieldTypeDefaultDescription
continue_charge_threshold_timenumber0.5If the dragon stays outside target_zone longer than this many seconds, the charge stops.
active_speednumber3Speed while this goal is running.Range: 0 to …
flight_speednumber0.6Speed while this goal is not running.Range: 0 to …
turn_speednumber0.7How fast the dragon turns during this goal.Range: 0 to …
target_zoneFloatRange{"max":150,"min":10}Closest and farthest distance from the target where this goal can be used.
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.dragonchargeplayer": {
    "continue_charge_threshold_time": 0.5,
    "active_speed": 3,
    "flight_speed": 0.6,
    "turn_speed": 0.7,
    "target_zone": {
      "max": 150,
      "min": 10
    },
    "priority": 0,
    "control_flags": []
  }
}

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