Skip to main content
Version: 26.1+

Backgrounds

Backgrounds fill the area behind a layout. They are also used by the palladium:power_tree component to draw the area behind the ability tree.

A background is a typed object, like layouts and components:

"background": {
"type": "palladium:sprite",
"sprite": "palladium:background/default"
}

As a shortcut, you can write a plain texture path instead of an object. It is read as a palladium:repeating_texture background with a 16x16 tile size, which is exactly right for block textures:

"background": "minecraft:textures/block/stone.png"

If you leave the background field out entirely, the simple layout uses the default sprite background (palladium:background/default), the same panel texture the built-in power screen uses. To have no background at all, set it to the palladium:empty type.

info

The texture fields of the texture-based backgrounds accept both plain texture paths and dynamic textures, the same texture reference format used by render layers.

Background Types

Empty

ID: palladium:empty
Empty background. Renders nothing

Repeating Texture

ID: palladium:repeating_texture
Repeating a texture so often that it fills the background.
KeyTypeDescriptionRequiredFallback
textureTexture ReferenceTexture path./
widthInteger (>= 0)Width of the texture file.256
heightInteger (>= 0)Height of the texture file.256

Sprite

ID: palladium:sprite
Renders a sprite accordingly to fill the background.
KeyTypeDescriptionRequiredFallback
spriteIdentifierSprite ID./

Texture

ID: palladium:texture
Renders a static texture as a background.
KeyTypeDescriptionRequiredFallback
textureTexture ReferenceTexture path./
widthInteger (>= 0)Width of the texture file.256
heightInteger (>= 0)Height of the texture file.256