Skip to content

Dynamic

Provides a container with customizable texture, columns, rows, etc.

Type ID: kaya:dynamic

Warning

This type is currently not implemented completely and is not allowed to be used yet.

Format

Field Type Default Description
title_alignment Text Alignment "center" Determines how the title of the menu is aligned.
texture Identifier The ID of the texture for the menu.
columns Integer The amount of columns the container would have. The value must be at least 1.
rows Integer The amount of rows the container would have. The value must be at least 1.

Example

{
    "type": "kaya:dynamic",
    "texture": "example:awesome_inventory",
    "columns": 16,
    "rows": 16
}

This example defines a container with the example:awesome_inventory texture, 16 columns, and 16 rows; providing a total of 256 slots.