Actions
Change Size
ID:
palladium:change_sizeAnimates the entity's size to the target value using the given size change type's duration and easing.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
size_change_type | Identifier | The size change type defining the transition duration, easing, and min/max bounds. | / | |
size | Float | The target size to transition to. | / |
{
"type": "palladium:change_size",
"size_change_type": "palladium:default",
"size": 2
}
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!"
}
}
Extinguish
ID:
palladium:extinguishClears fire from the entity.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
no_effects | Boolean | If true, clears the fire without additional effects like sounds. | false |
{
"type": "palladium:extinguish"
}
Heal
ID:
palladium:healHeals the entity.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
amount | (Dynamic) Value | The amount of health to heal. | / |
{
"type": "palladium:heal",
"amount": 2
}
Leap
ID:
palladium:leapLaunches the entity along its current look direction, scaled by a velocity modifier.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
velocity_modifier | Float | The multiplier applied to the entity's look direction vector when this action runs. | / |
{
"type": "palladium:leap",
"velocity_modifier": 1.5
}
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
}
Set Fall Distance
ID:
palladium:set_fall_distanceSets the fall distance of the entity.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
fall_distance | (Dynamic) Value | The value the fall distance is set to. | / |
{
"type": "palladium:set_fall_distance",
"fall_distance": 0
}
Set On Fire
ID:
palladium:set_on_fireSets the entity on fire for the specified amount of time in ticks.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
duration | (Dynamic) Value | How long the entity will burn. | / |
{
"type": "palladium:set_on_fire",
"duration": 5
}
Set Size
ID:
palladium:set_sizeInstantly sets the entity's size, clearing all active size modifiers. The size change type is used for min/max clamping.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
size_change_type | Identifier | The size change type whose min/max bounds are used to clamp the size. | / | |
size | Float | The target size to set. | / |
{
"type": "palladium:set_size",
"size_change_type": "palladium:default",
"size": 2
}