Action Types
The Onyxian Core provides several action types that you can use to define actions inside actions.yml, this is the full list:
Name | Description | Parameters |
---|---|---|
send console message | Sends a message to the console. | String message: none |
run command | Runs a command from the console | String command: none |
set health | Sets the ammount of hearts of an entity | Damageable damageable: none Double health: none |
probably run | Runs an action *probability*/*total* of the times. probability:1 total: 100 means the action will run 1% of the times. | Actionable action: none Integer chances: none, Integer total: 100 |
conditionally run | Runs an action if a condition is met | 'Boolean condition: none Action if true: none, Action if false: none |