Skip to content

List of Actions

Jackiecrazy edited this page Jun 12, 2024 · 4 revisions

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.

Timer Actions

All timer actions have a max_time attribute that determines how many ticks the timer action will run for.

combatcircle:wait

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.

combatcircle:add_velocity

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.

combatcircle:move_to

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.

combatcircle:project_hitbox

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 in actions 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 of vector, reaching up to range and with a width of width.
  • CIRCLE searches around the position in a sphere of radius width. range is ignored.

Instant Actions

combatcircle:store_number

combatcircle:store_vector

combatcircle:store_entity

combatcircle:debug

combatcircle:deal_damage

combatcircle:add_effect

combatcircle:explode

combatcircle:look_at

combatcircle:set_aggressive

combatcircle:attach_action

combatcircle:spawn_entity

combatcircle:jump_to

combatcircle:add_attribute

combatcircle:play_particle

combatcircle:play_sound

combatcircle:teleport

combatcircle:swing_arm

Clone this wiki locally