Costs
Experience Level Cost
ID:
palladium:experience_levelRequires the entity to have a certain number of experience levels.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
xp_level | Integer (> 0) | The number of experience levels to consume. | / |
{
"type": "palladium:experience_level",
"xp_level": 5
}
Item Cost
ID:
palladium:itemRequires the entity to have a certain item in their inventory.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
ingredient | Ingredient / Item | The item(s) accepted as payment. | / | |
amount | Integer (> 0) | How many items to consume. Defaults to 1. | / |
{
"type": "palladium:item",
"ingredient": "minecraft:diamond",
"amount": 5
}
Score Cost
ID:
palladium:scoreRequires the entity to have a certain scoreboard score.
- Settings
- Example
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
objective | String | The scoreboard objective name. | / | |
amount | Integer (> 0) | The score amount to consume. Defaults to 1. | / | |
icon | Icon definition | The icon shown in the UI. | / | |
description | Text Component | The display text shown in the UI. | / |
{
"type": "palladium:score",
"objective": "my_score",
"amount": 10,
"icon": {
"type": "palladium:sprite",
"sprite": "example:sprite_path"
},
"description": "My Score"
}