Actions
Add Random Superpower
ID:
palladium:add_random_superpowerAdds a random superpower from the given list to the entity.
- Settings
- Example 1
- Example 2
- Example 3
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
powers | Power ID(s) / Tag | IDs or tags of powers to randomly pick from. | / |
{
"type": "palladium:add_random_superpower",
"power": "example:my_power"
}
{
"type": "palladium:add_random_superpower",
"power": [
"example:my_power",
"example:my_second_power"
]
}
{
"type": "palladium:add_random_superpower",
"power": "#example:my_power_tag"
}
Add Superpower
ID:
palladium:add_superpowerAdds the given superpower to the entity.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
power | Power ID | The ID of the superpower to add. | / |
{
"type": "palladium:add_superpower",
"power": "example:my_power"
}
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 / Value | 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 / Value | 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
}
Play Sound
ID:
palladium:play_soundPlays a sound at the entity's position.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
sound | Identifier | The ID of the sound event to play. | / | |
volume | Float | The volume of the sound. Defaults to 1. | / | |
pitch | Float | The pitch of the sound. Defaults to 1. | / |
{
"type": "palladium:play_sound",
"sound": "minecraft:block.anvil.land"
}
Remove Superpower
ID:
palladium:remove_superpowerRemoves the given superpowers from the entity.
- Settings
- Example 1
- Example 2
- Example 3
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
powers | Power ID(s) / Tag | IDs or tags of superpowers to remove. | / |
{
"type": "palladium:remove_superpower",
"power": "example:my_power"
}
{
"type": "palladium:remove_superpower",
"power": [
"example:my_power",
"example:my_second_power"
]
}
{
"type": "palladium:remove_superpower",
"power": "#example:my_power_tag"
}
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 Mode
ID:
palladium:set_modeForces a mode switch ability into a specific mode, ignoring that mode's conditions.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
ability | Ability Reference | The mode switch ability to change. | / | |
mode | String | The key of the mode the ability is set to. | / |
{
"type": "palladium:set_mode",
"ability": "example:power#ability_key",
"mode": "mode_a"
}
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 Random Superpower
ID:
palladium:set_random_superpowerRemoves all superpowers from the entity and sets it to a random one from the given list.
- Settings
- Example 1
- Example 2
- Example 3
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
powers | Power ID(s) / Tag | IDs or tags of powers to randomly pick from. | / |
{
"type": "palladium:set_random_superpower",
"power": "example:my_power"
}
{
"type": "palladium:set_random_superpower",
"power": [
"example:my_power",
"example:my_second_power"
]
}
{
"type": "palladium:set_random_superpower",
"power": "#example:my_power_tag"
}
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 / Value | The target size to set. | / |
{
"type": "palladium:set_size",
"size_change_type": "palladium:default",
"size": 2
}
Set Superpower
ID:
palladium:set_superpowerRemoves all superpowers from the entity and sets it to just the given one.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
power | Power ID | The ID of the superpower to set. | / |
{
"type": "palladium:set_superpower",
"power": "example:my_power"
}