Actions
Conditional Action
ID:
palladium:conditionalRuns an action based on the outcome of a condition
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
condition | Condition, Condition[] | The condition(s) that define the action that will run. | / | |
on_true | Action, Action[] | The action(s) that are being run when the condition is true | / | |
on_false | Action, Action[] | The action(s) that are being run when the condition is false | / |
{
"type": "palladium:conditional",
"condition": {
"type": "palladium:crouching"
},
"on_true": {
"type": "palladium:run_command",
"command": "say Is crouching!"
},
"on_false": {
"type": "palladium:run_command",
"command": "say Is not crouching!"
}
}
Modify Number Data Attachment
ID:
palladium:modify_number_data_attachmentApplies an arithmetic operation to a numeric data attachment on the entity.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
attachment | Data Attachment ID | The ID of the data attachment to modify. | / | |
operation | +-*/% | The arithmetic operation to apply. | / | |
value | (Dynamic) Value | The operand value. | / |
{
"type": "palladium:modify_number_data_attachment",
"attachment": "example:my_attachment",
"operation": "+",
"value": 5
}
Run Command
ID:
palladium:run_commandRuns a Minecraft command
- Settings
- Example 1
- Example 2
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
command | string[] | The command(s) that are being run. | / |
{
"type": "palladium:run_command",
"command": "say Hello World"
}
{
"type": "palladium:run_command",
"command": [
"say Command 1",
"say Command 2"
]
}
Set Data Attachment
ID:
palladium:set_data_attachmentSets the value of a data attachment on the entity.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
attachment | Data Attachment ID | The ID of the data attachment to set. | / | |
value | (Dynamic) Value | The value to set the data attachment to. | / |
{
"type": "palladium:set_data_attachment",
"attachment": "example:my_attachment",
"value": 10
}