πͺ¦ Decorations Guide
Decorations are visual elements that players can choose to represent their gravestone. Each decoration is a named structure composed of multiple visual components, such as blocks, items, text, or player heads.
All decoration files are automatically loaded from the /decorations directory when the plugin starts. You can add, remove, or modify decorations simply by editing the files in that folderβno manual registration needed.
π§± Structure of a Decorationβ
Each decoration is defined by a unique key and contains one or more components. Here's an example:
base_gravestone:
base: true
name: "Gravestone"
decorations:
one:
type: displayblock
key: gravestone
two:
type: displayblock
key: flowers
three:
type: textdisplay
text: "%player%"
yaw: 0
scale: 0.8
offset: "0.0 -0.2 0.0"
π Explanationβ
base_gravestone: Unique ID of the decorationbase: true: Nothing to worry about nowname: Display name shown in GUIsdecorations: List of components that make up the decoration
Each component (one, two, three, etc.) defines a visual element with a specific type.
π¨ Available Component Typesβ
Each decoration can include one or more of the following types:
π§± displayblockβ
Displays a block at the gravestone location.
type: displayblock
key: gravestone
key: Refers to a predefined block model or asset
πͺ helditemβ
Displays the held item of the player
type: helditem
π§ playerheadβ
Displays the playerβs head.
type: playerhead
- Automatically uses the skin of the player who died
π textdisplayβ
Displays floating text near the gravestone.
type: textdisplay
text: "%player%"
yaw: 0
scale: 0.8
offset: "0.0 -0.2 0.0"
text: Can include placeholders like%player%yaw: Rotation anglescale: Size of the textoffset: Position relative to the gravestone (x y z)
π§© Notes for Beginnersβ
- You can define as many decorations as you want, each with a unique name
- Decorations are selectable via the GUI (
selector-gui) %player%is a placeholder that shows the name of the deceased player- Make sure each
keyused indisplayblockorhelditemrefers to a valid asset or material