Skip to content

Starting Equipment

Power Type

Provides the entity with the specified items when the power is granted.

Type ID: eggolib:starting_equipment

Fields

Field Type Default Description
stack Generalized Positioned Item Stack optional If specified, this item stack will be given to the entity.
stacks Array of Generalized Positioned Item Stack optional If specified, these item stacks will be given to the entity.

Examples

{
    "type": "eggolib:starting_equipment",
    "stack": {
        "item": "minecraft:glass",
        "slot": "armor.head"
    }
}

This example will provide a Glass block on the entity's head.

{
    "type": "eggolib:starting_equipment",
    "stacks": [
        {
            "item": "minecraft:shield",
            "slot": "weapon.offhand"
        },
        {
            "item": "minecraft:iron_sword",
            "slot": "weapon.mainhand"
        }
    ]
}

This example will provide a Shield and an Iron Sword to the entity in its offhand and mainhand equipment slots respectively.