minecraft:behavior.dragonchargeplayer for you with a switch.Get GodCraftOverview
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
| Field | Type | Default | Description |
|---|---|---|---|
continue_charge_threshold_time | number | 0.5 | If the dragon stays outside target_zone longer than this many seconds, the charge stops. |
active_speed | number | 3 | Speed while this goal is running.Range: 0 to … |
flight_speed | number | 0.6 | Speed while this goal is not running.Range: 0 to … |
turn_speed | number | 0.7 | How fast the dragon turns during this goal.Range: 0 to … |
target_zone | FloatRange | {"max":150,"min":10} | Closest and farthest distance from the target where this goal can be used. |
priority | integer | 0 | Lower numbers run first: when two goals compete, the one with the smaller priority wins.Range: 0 to … |
control_flags | Goal's control flags[] | none | Which 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": []
}
}