Values
Ability Animation Timer Value
ID:
palladium:ability_animation_timer_valueReturns the value of the animation timer for the specified ability. Defaults to 0 if no ability or animation timer was found.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
ability | Ability Reference | The ability to get the animation timer for. Defined in this syntax: <power_namespace>:<power_name>#<ability_key> | / | |
modify | MoLang | MoLang function to modify the value. | / |
{
"type": "palladium:ability_animation_timer_value",
"ability": "namespace:example_power#ability_key"
}
Ability Key
ID:
palladium:ability_keyReturns the key of the ability in the context.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
modify | MoLang | MoLang function to modify the value. | / |
{
"type": "palladium:ability_key"
}
Ability Tick Count
ID:
palladium:ability_tick_countReturns the ticks the ability in the context has been enabled for.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
ability | Ability Reference | The ability to get the ticks from. Defined in this syntax: <power_namespace>:<power_name>#<ability_key> | / | |
modify | MoLang | MoLang function to modify the value. | / |
{
"type": "palladium:ability_tick_count",
"ability": "namespace:example_power#ability_key"
}
Conditional Value
ID:
palladium:conditionalReturns a value based on whether a condition is met.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
condition | Condition, Condition[] | The condition to test. | / | |
on_true | (Dynamic) Value | The value to return if the condition is met. | / | |
on_false | (Dynamic) Value | The value to return if the condition is not met. | / |
{
"type": "palladium:conditional",
"condition": {
"type": "palladium:crouching"
},
"on_true": "crouching",
"on_false": "not_crouching"
}
Crouching
ID:
palladium:crouchingChecks if the entity is crouching.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
on_true | String | The value to return if the result is true. | / | |
on_false | String | The value to return if the result is false. | / |
{
"type": "palladium:crouching",
"on_true": "is_crouching",
"on_false": "not_crouching"
}
Energy Bar
ID:
palladium:energy_barReturns of the current value of a specific energy bar.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
energy_bar | Ability Reference | The energy bar to look for. Defined in this syntax: <power_namespace>:<power_name>#<energy_bar_key> | / | |
modify | MoLang | MoLang function to modify the value. | / |
{
"type": "palladium:energy_bar",
"energy_bar": "namespace:example_power#energy_bar_key"
}
Entity Health
ID:
palladium:entity_healthReturns the health of the entity.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
modify | MoLang | MoLang function to modify the value. | / |
{
"type": "palladium:entity_health",
"modify": "this * 2"
}
Entity Tick Count
ID:
palladium:entity_tick_countReturns the tick count of the entity.
- Settings
- Example 1
- Example 2
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
modify | MoLang | MoLang function to modify the value. | / |
{
"type": "palladium:entity_tick_count"
}
{
"type": "palladium:entity_tick_count",
"modify": "this * 2"
}
Float Data Attachment
ID:
palladium:float_data_attachmentReturns the value of a data attachment, which must be a float.
- Settings
- Example 1
- Example 2
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
attachment | Data Attachment ID | The ID of the data attachment. | / | |
fallback | Float | If the data attachment doesn't exist or is not existent in the entity, this fallback value will be used. | / | |
modify | MoLang | MoLang function to modify the value. | / |
{
"type": "palladium:float_data_attachment",
"attachment": "example:float_attachment_id"
}
{
"type": "palladium:float_data_attachment",
"attachment": "example:float_attachment_id",
"fallback": 4.2,
"modify": "this * 2"
}
Gliding Tick Count
ID:
palladium:gliding_tick_countReturns the amount of ticks since the entity is gliding (using elytra or ability).
- Settings
- Example 1
- Example 2
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
modify | MoLang | MoLang function to modify the value. | / |
{
"type": "palladium:gliding_tick_count"
}
{
"type": "palladium:gliding_tick_count",
"modify": "this * 2"
}
Integer Data Attachment
ID:
palladium:integer_data_attachmentReturns the value of a data attachment, which must be an integer.
- Settings
- Example 1
- Example 2
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
attachment | Data Attachment ID | The ID of the data attachment. | / | |
fallback | Integer | If the data attachment doesn't exist or is not existent in the entity, this fallback value will be used. | / | |
modify | MoLang | MoLang function to modify the value. | / |
{
"type": "palladium:integer_data_attachment",
"attachment": "example:integer_attachment_id"
}
{
"type": "palladium:integer_data_attachment",
"attachment": "example:integer_attachment_id",
"fallback": 5,
"modify": "this * 2"
}
Item Open
ID:
palladium:item_openChecks if an item was opened.
- Settings
- Example 1
- Example 2
- Example 3
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
slot | mainhandoffhandheadchestlegsfeetbodycurios:headcurios:necklace | Slot to check for. If none specified, it will use the slot from the current context (if given). | / | |
on_true | String | The value to return if the result is true. | / | |
on_false | String | The value to return if the result is false. | / |
{
"type": "palladium:item_open",
"on_true": "opened",
"on_false": "not_opened"
}
{
"type": "palladium:item_open",
"slot": "chest",
"on_true": "opened",
"on_false": "not_opened"
}
{
"type": "palladium:item_open",
"slot": "curios:head",
"on_true": "opened",
"on_false": "not_opened"
}
Item Open Timer
ID:
palladium:item_open_timerReturns of the timer for the opening process of an item.
- Settings
- Example 1
- Example 2
- Example 3
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
slot | mainhandoffhandheadchestlegsfeetbodycurios:headcurios:necklace | Slot to check for. If none specified, it will use the slot from the current context (if given). | / | |
modify | MoLang | MoLang function to modify the value. | / |
{
"type": "palladium:item_open_timer"
}
{
"type": "palladium:item_open_timer",
"slot": "chest"
}
{
"type": "palladium:item_open_timer",
"slot": "curios:head"
}
Max Number
ID:
palladium:max_numberReturns the highest number found within the given values
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
values | (Dynamic) Value[] | List of values | / | |
number_type | integerfloatdouble | The required number type the result should be formatted as | / |
{
"type": "palladium:max_number",
"values": [
{
"type": "palladium:moon_phase"
},
5
]
}
Min Number
ID:
palladium:min_numberReturns the lowest number found within the given values
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
values | (Dynamic) Value[] | List of values | / | |
number_type | integerfloatdouble | The required number type the result should be formatted as | / |
{
"type": "palladium:min_number",
"values": [
{
"type": "palladium:moon_phase"
},
5
]
}
MoLang Float
ID:
palladium:molang_floatAllows MoLang usage to calculate an float
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
molang | MoLang | MoLang query | / |
{
"type": "palladium:molang_float",
"molang": "query.ground_speed() * 2.5"
}
MoLang Integer
ID:
palladium:molang_integerAllows MoLang usage to calculate an integer
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
molang | MoLang | MoLang query | / |
{
"type": "palladium:molang_integer",
"molang": "query.ground_speed() * 2"
}
MoLang String
ID:
palladium:molang_stringAllows MoLang usage to assemble a string
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
molang | MoLang | MoLang query | / |
{
"type": "palladium:molang_string",
"molang": "query.day() ? 'day' : 'night'"
}
Moon Phase
ID:
palladium:moon_phaseReturns the current moon phase, an integer from 0 to 7.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
modify | MoLang | MoLang function to modify the value. | / |
{
"type": "palladium:moon_phase",
"modify": "this * 2"
}
Score
ID:
palladium:scoreReturns the score of the entity for the given objective.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
modify | MoLang | MoLang function to modify the value. | / |
{
"type": "palladium:score",
"objective": "objective_name",
"modify": "this * 2"
}
Slim Player Model
ID:
palladium:slim_player_modelChecks if the entity is a player and has the slim-armed (Alex) player model.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
on_true | String | The value to return if the result is true. | / | |
on_false | String | The value to return if the result is false. | / |
{
"type": "palladium:slim_player_model",
"on_true": "slim_arms",
"on_false": "wide_arms"
}
Slot
ID:
palladium:slotReturns the slot of the current context.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
modify | MoLang | MoLang function to modify the value. | / |
{
"type": "palladium:slot"
}
Static Value
ID:
palladium:staticUtilises a simple, static value
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
value | Anything | A simple, static value. | / |
42
String Data Attachment
ID:
palladium:string_data_attachmentReturns the value of a data attachment.
- Settings
- Example 1
- Example 2
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
attachment | Data Attachment ID | The ID of the data attachment. | / | |
fallback | String | If the data attachment doesn't exist or is not existent in the entity, this fallback value will be used. | / | |
modify | MoLang | MoLang function to modify the value. | / |
{
"type": "palladium:string_data_attachment",
"attachment": "example:string_attachment_id"
}
{
"type": "palladium:string_data_attachment",
"attachment": "example:string_attachment_id",
"fallback": "example_fallback"
}
Wide Player Model
ID:
palladium:wide_player_modelChecks if the entity is a player and has the wide-armed (Steve) player model.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
on_true | String | The value to return if the result is true. | / | |
on_false | String | The value to return if the result is false. | / |
{
"type": "palladium:wide_player_model",
"on_true": "wide_arms",
"on_false": "slim_arms"
}