-
Notifications
You must be signed in to change notification settings - Fork 4
Example CreativeInventoryStacks
Dana edited this page Apr 3, 2026
·
3 revisions
There are two ways to add attribute-typed items/blocks to creative inventory and handbook:
- GenerateCreativeStacks behavior
- or use example below
Note
In the example below we do this for block, for items you need to use "type": "item"
Example:
"creativeInventoryStacks": [
{
"tabs": ["general", "decorative"],
"stacks": [
{ "type": "block", "code": "myblock", "attributes": { "types": { "wood": "birch" } } },
{ "type": "block", "code": "myblock", "attributes": { "types": { "wood": "oak" } } },
{ "type": "block", "code": "myblock", "attributes": { "types": { "wood": "maple" } } },
{ "type": "block", "code": "myblock", "attributes": { "types": { "wood": "pine" } } },
{ "type": "block", "code": "myblock", "attributes": { "types": { "wood": "acacia" } } },
{ "type": "block", "code": "myblock", "attributes": { "types": { "wood": "kapok" } } },
{ "type": "block", "code": "myblock", "attributes": { "types": { "wood": "baldcypress" } } },
{ "type": "block", "code": "myblock", "attributes": { "types": { "wood": "larch" } } },
{ "type": "block", "code": "myblock", "attributes": { "types": { "wood": "redwood" } } },
{ "type": "block", "code": "myblock", "attributes": { "types": { "wood": "ebony" } } },
{ "type": "block", "code": "myblock", "attributes": { "types": { "wood": "walnut" } } },
{ "type": "block", "code": "myblock", "attributes": { "types": { "wood": "purpleheart" } } }
]
}
]Example for more types:
"creativeInventoryStacks": [
{
"tabs": ["general", "decorative"],
"stacks": [
{
"type": "block",
"code": "myblock",
"attributes": {
"types": {
"wood": "birch",
"stone": "granite",
"metal": "iron"
}
}
}
]
}
]