-
Notifications
You must be signed in to change notification settings - Fork 14
action target parameters
goflishMC edited this page Apr 22, 2025
·
2 revisions
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.
| 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 |
- '[DAMAGE] ~amount: -25%; ~target: near; ~delay: 10;'
- '[PARTICLE_SIMPLE] ~name: FLAME; ~offset: 0,1,0; ~target: near;'- 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.