Starting Equipment (Power Type)
Gives the player items when the power is granted.
Type ID: apoli:starting_equipment
Fields
| Field | Type | Default | Description |
|---|---|---|---|
stack | Positioned Item Stack | optional | If set, this item is given to the player, optionally in a specific inventory slot. |
stacks | Array of Positioned Item Stacks | optional | If set, these items are given to the player, optionally in specific inventory slots. |
recurrent | Boolean | false | Whether the items are given again after the player respawns. |
Examples
{
"type": "apoli:starting_equipment",
"stacks": [
{
"item": "minecraft:compass"
},
{
"item": "minecraft:clock"
},
{
"item": "minecraft:map",
"amount": 9
}
]
}This gives the player the Explorer Kit from the Origins: Classes mod: a compass, a clock and 9 empty maps.
{
"type": "apoli:starting_equipment",
"stacks": [
{
"item": "minecraft:white_stained_glass",
"amount": 1,
"slot": 39
},
{
"item": "minecraft:leather_chestplate",
"amount": 1,
"tag": "{display: {color: 16383998}}",
"slot": 38
},
{
"item": "minecraft:leather_leggings",
"amount": 1,
"tag": "{display: {color: 16383998}}",
"slot": 37
},
{
"item": "minecraft:leather_boots",
"amount": 1,
"tag": "{display: {color: 16383998}}",
"slot": 36
},
{
"item": "minecraft:written_book",
"amount": 1,
"tag": "{display: {Name: '{\"text\": \"Example Book\", \"color\": \"light_purple\", \"italic\": false}'}, title: \"Example Book\", author: \"eggohito\", pages: ['{\"text\": \"This is page one.\"}', '{\"text\": \"This is page two, the last page.\"}']}",
"slot": 8
}
]
}This gives the player a white stained glass block in the head slot, white leather chestplate, leggings and boots in the chest, legs and feet slots, and a written book with two pages in the ninth hotbar slot.