-
Notifications
You must be signed in to change notification settings - Fork 0
List of Actions
All actions naturally have a condition
that determines whether they can trigger and a repeatable
condition that determines whether the action can trigger multiple times in a single moveset execution.
Unless otherwise stated, all arguments are mandatory, and all action lists are optional.
All timer actions have a max_time
attribute that determines how many ticks the timer action will run for.
Do nothing for the specified number of ticks.
Accepts a list of actions under waiting
that is checked and executed every tick, in order from top to bottom.
Add a velocity vector to the entity.
Accepts a direction
vector that determines the direction and force.
Accepts lists of actions
- under
on_launch
that is checked and executed once at the moment of launch. - under
tick
that is checked and executed on every tick of action, regardless of whether the entity is airborne. - under
on_land
that is checked and executed once if the mob touches the ground at any time before the timer action elapses.
Makes the entity walk towards a position.
Accepts
- a
position
vector to determine where it should walk to. - a
speed_modifier
number argument that multiplies the mob's walk speed for this action. Defaults to 1. 1.3 is the approximate sprinting speed.
Accepts lists of actions
- under
on_start
that is checked and executed once at the moment of launch. - under
tick
that is checked and executed on every tick.
Repeatedly scans for mobs nearby that fulfill particular criteria, operating on these mobs with a customizable cooldown.
Accepts
- a list of actions
actions
to execute onto found entities. - a
hit_cooldown
integer that limits how often the effects inactions
apply to entities. For example, setting this to 3 means a given entity can be affected once per 3 ticks. Defaults to 0 (once only). - a
selector
argument to find mobs. A selector argument takes the following parameters: - a
range
number argument that determines how far the mob should look. - a
width
number argument that determines how wide the mob should look. - a
filter
filter argument that determines how the scanned mobs are filtered out. - a
position
vector that determines where the search starts. - a
vector
vector that determines where the projected hitbox should extend. - a sweep type enum
shape
. Supports the following shapes: NONE, CONE, CLEAVE, LINE, CIRCLE. - NONE only checks the current target with conditions.
- CONE searches in a conical area with horizontal angle of
width
(in degrees) and vertical angle of 40 degrees. - CLEAVE searches in a conical area with vertical angle of
width
(in degrees) and horizontal angle of 40 degrees. - LINE searches in a cylinder from
position
and extending in the direction ofvector
, reaching up torange
and with a width ofwidth
. - CIRCLE searches around the
position
in a sphere of radiuswidth
.range
is ignored.