Sheets features a multi-tier placeholder system to provide dynamic content in your menus.
Sheets evaluates placeholders in the following order:
Global Variables: {{variable_name}}
{{variable_name}}
Defined in variables/*.yml.
variables/*.yml
Arguments/Local Variables: {variable_name}
{variable_name}
Passed via commands or actions like input.
Special Placeholders:
[index]: Current index in a dynamic slot range.
[index]
[slot]: Current slot number in a dynamic slot range.
[slot]
Math Expressions: {math:expression} or {math:int:expression}
{math:expression}
{math:int:expression}
Example: {math:1 + 1} results in 2.0.
{math:1 + 1}
2.0
Example: {math:int:%player_health% * 2} results in an integer.
{math:int:%player_health% * 2}
Sheets Internal Placeholders:
%sheets_sheet_[index]_name%: Name of the Nth sheet.
%sheets_sheet_[index]_name%
%sheets_sheet_[index]_exists%: Whether the Nth sheet exists.
%sheets_sheet_[index]_exists%
%sheets_template_[index]_name%: Name of the Nth template.
%sheets_template_[index]_name%
PlaceholderAPI: Full support for standard %player_name% style placeholders.
%player_name%
You can perform calculations directly within your YAML configurations.
Use [slot] and [index] to create dynamic content based on slot ranges.
Last updated 4 months ago
name: "&aYour Health: {math:int:%player_health%}" lore: - "&7Double health: {math:int:%player_health% * 2}"
slots: - 0to44 buttons: - slot: "[slot]" name: "&aItem #[index]" lore: - "&7This is slot number [slot]"