Skip to main content
Version: 26.1+

Icons

Across various features of Palladium you'll come across "icons". They are a generalized way to define a 16x16 texture that can be used anywhere (e.g. powers, abilities, etc.).
To define one, you have multiple easy ways to do so.

Inline Definitions

The most common types of icons can be defined in a single line for easy usage.

Item

To display an item you simply specify its ID:

"icon": "minecraft:apple"

Texture

To render a texture you need to specify the path to it, including the .png suffix:

"icon": "example:textures/icon/my_cool_icon.png"

Alternatively, if you have a dynamic texture set up, you can specify it's ID too using a #:

"icon": "#example:my_dynamic_texture"

Sprites

Sprites are a more performant way of rendering textures, as they are all stitched together into one big texture file when the game reloads. They are placed in assets/<namespace>/textures/gui/sprites/<filename>.png.
So to use one as an icon, you need to specify its ID which results from its path. As an example, a sprite texture file located at assets/example/textures/gui/sprites/icon/my_cool_icon.png would be example:icon/my_cool_icon:

"icon": "example:icon/my_cool_icon"

Specific Definitions

To access more icon types you have to write out their definitions specifically, by declaring them by type. Below is a list of available types added by Palladium. In your palladium/documentation/palladium folder you can find a similiar that's auto-generated by the mod which can include icons that are added by other mods.

Compound

ID: palladium:compound
Fits multiple icons into one
KeyTypeDescriptionRequiredFallback
iconsIcon definition arrayArray of icons that will be displayed/

Experience

ID: palladium:experience
Displays an amount of experience points of levels
KeyTypeDescriptionRequiredFallback
amountInteger (>= 0)Amount of xp points or levels/
levelBooleanWhether or not this will be displayed as xp points or levelstrue

Ingredient

ID: palladium:ingredient
An icon that will display all items of an ingredient by cycling through them
KeyTypeDescriptionRequiredFallback
ingredientIngredient / ItemThe ingredient (check vanilla recipes for how to define ingredients)/

Item

ID: palladium:item
Displays an item
KeyTypeDescriptionRequiredFallback
itemItem / ItemStackThe item that will be displayed/

Item in Slot

ID: palladium:item_in_slot
Renders an item that's currently in the slot of the player
KeyTypeDescriptionRequiredFallback
slotmainhand
offhand
head
chest
legs
feet
body
accessories:head
accessories:necklace
The slot that will be have its item displayed/

Sprite

ID: palladium:sprite
Renders a sprite as an icon (sprites are located under 'textures/gui/sprites/)
KeyTypeDescriptionRequiredFallback
spriteIdentifierThe ID of the sprite that will be rendered/

Textured

ID: palladium:texture
Render a texture as an icon
KeyTypeDescriptionRequiredFallback
textureTexture ReferencePath to the texture, or a dynamic texture ID/
tintColorA tint that will be given to rendered texture/