Skip to content

Block

Provides the slot from a block.

Type ID: kaya:block

Format

Field Type Default Description
block Block Provider The block to get the slot from.
slot Int Provider The numerical ID of the slot to get from the block.

Example

{
    "type": "kaya:block",
    "block": "used_block",
    "slot": {
        "type": "kaya:slot_id",
        "slot": "container.0"
    }
}

This example provides the first slot of the block provided by the kaya:used_block context parameter.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.