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

minecraft:behavior.stomp_attack

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

Overview

minecraft:behavior.stomp_attack is an entity component: it goes in the components object of a custom mob, or in one of its component groups. A melee attack that stomps the ground and hurts everything in an area around the target, not just one mob. It has the usual melee settings plus range controls for the stomp.

Fields

FieldTypeDefaultDescription
stomp_range_multipliernumber2Multiplied with the mob's size to get how wide the stomp damage reaches.
no_damage_range_multipliernumber2Part of the stomp range, near the middle, that deals no damage. If the target is inside it, the attack goes on cooldown.
reach_multipliernumber2Multiplied with the mob's size to decide how close it must be before it tries to hit.Range: 0 to …
on_killActorDefinitionTrigger{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}Event that runs when this mob kills its target.
cooldown_timenumber1Seconds between attacks.Range: 0 to …
x_max_rotationnumber30How far, in degrees, the mob can tilt up or down while looking at the target.Range: 0 to …
y_max_head_rotationnumber30How far, in degrees, the mob can turn its head sideways while looking at the target.Range: 0 to …
random_stop_intervalinteger0Gives a 1 in N chance to stop the current attack, where N is this value. Use 0 to never stop at random.Range: 0 to …
attack_oncebooleanfalseIf true, the mob only ever does this attack once in its life.
can_spread_on_firebooleanfalseIf true, a burning mob with an empty hand sets its target on fire when it hits.
min_path_timenumber0.2Shortest base time, in seconds, before the mob plans a new path to the target.Range: 0 to …
max_path_timenumber0.55Longest base time, in seconds, before the mob plans a new path to the target.Range: 0 to …
path_fail_time_increasenumber0.75Extra seconds added before planning a new path when the mob can't follow its current one.Range: 0 to …
inner_boundary_time_increasenumber0.25Extra seconds added before planning a new path when the target is farther than path_inner_boundary.Range: 0 to …
outer_boundary_time_increasenumber0.5Extra seconds added before planning a new path when the target is farther than path_outer_boundary.Range: 0 to …
path_inner_boundarynumber16Distance past which inner_boundary_time_increase is added.Range: 0 to …
path_outer_boundarynumber32Distance past which outer_boundary_time_increase is added.Range: 0 to …
speed_multipliernumber1Speed multiplier while moving toward the target.Range: 0 to …
require_complete_pathbooleanfalseIf true, the mob only chases a target it has a full path to.
track_targetbooleanfalseIf true, the mob keeps tracking the target even without a built-in way to sense it.
attack_typesstring""Which entity types this mob will attack.
on_attackActorDefinitionTrigger{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}Event that runs each time the mob lands a hit.
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.stomp_attack": {
    "stomp_range_multiplier": 2,
    "no_damage_range_multiplier": 2,
    "reach_multiplier": 2,
    "on_kill": {
      "event": "",
      "filters": {
        "AND": null,
        "NOT": null,
        "OR": null,
        "all": null,
        "all_of": null,
        "any": null,
        "any_of": null,
        "none_of": null
      },
      "target": "self"
    },
    "cooldown_time": 1,
    "x_max_rotation": 30,
    "y_max_head_rotation": 30,
    "random_stop_interval": 0
  }
}

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