Class CreativeTabAndStackList
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
Allows you to add a list of item stacks to put various into creative menu tabs.
public class CreativeTabAndStackList
- Inheritance
-
CreativeTabAndStackList
Examples
"creativeinventoryStacksByType": {
"*-fired": [
{
"tabs": [ "general", "decorative" ],
"stacks": [
{
"type": "block",
"code": "bowl-fired",
"attributes": {
"ucontents": [
{
"type": "item",
"code": "waterportion",
"makefull": true
}
]
}
},
{
"type": "block",
"code": "bowl-fired",
"attributes": {
"ucontents": [
{
"type": "item",
"code": "honeyportion",
"makefull": true
}
]
}
},
{
"type": "block",
"code": "bowl-fired"
},
{
"type": "block",
"code": "bowl-raw"
}
]
}
]
},
Fields
Stacks (Required)
A list of item stacks to put in tabs. Note that every itemstack here will be placed in every Tabs entry.
public JsonItemStack[] Stacks
Field Value
Tabs (Required)
A list of creative tabs to put items into. Note that all itemstacks in Stacks will be placed in all tabs.
public string[] Tabs
Field Value
- string[]