action target parameters - magemonkeystudio/divinity GitHub Wiki
โ๏ธ Action Target Parameters
These parameters control how actions behave: how far they reach, what entities they affect, how long they take, and more. They are used across executors, selectors, and conditions.
๐๏ธ Common Parameters
Param | Description |
---|---|
~target: |
Who the action/condition is applied to |
~amount: |
Numerical value, such as damage, healing, or range |
~distance: |
How far to search (used in selectors like [RADIUS] ) |
~offset: |
XYZ offset for particles or effects |
~speed: |
Particle movement speed |
~duration: |
Duration of potion or timer effects |
~delay: |
Delay before action runs (in ticks) |
~message: |
Chat message to show (used in MESSAGE , ACTION_BAR , etc.) |
~name: |
Name of the particle, sound, or world |
~filter: |
Optional selector filter condition |
๐งช Example
- '[DAMAGE] ~amount: -25%; ~target: near; ~delay: 10;'
- '[PARTICLE_SIMPLE] ~name: FLAME; ~offset: 0,1,0; ~target: near;'
๐ง Tips
- All parameters are prefixed with
~
and must end with a semicolon (;
) if writing inline. ~amount:
can use operators like>
,<
, or%
(e.g.,~amount: >50%
).- Use
~target: self
,~target: near
, or any key defined intarget-selectors
.