Skip to main content

How to make Actions

Creating a Custom Action

Each action has its own config file, placed in the /actions/ folder, and you can add or remove them as you please. There's an example config called _example.yml to help you out!

The ID of the Action is the file name. This is what you use in placeholders. ID's must be lowercase letters, numbers, and underscores only.

Example Action Config

# If the action should be enabled
enabled: true

# Read https://plugins.auxilor.io/effects/configuring-an-effect
# The effects for the action
effects:
- id: give_money
args:
amount: "0.25 * %victim_max_health%"
triggers:
- kill
filters:
not_entities:
- player

# Read https://plugins.auxilor.io/effects/configuring-a-condition
# The conditions for the action to work
conditions: [ ]

The example effect: Pay players for killing non-player entities at a rate of $0.25 per health point.


Default Configs

The default configs can be found here.
You can find additional user-created configs on lrcdb.