item group bugged out?
Posted: Sat Apr 01, 2017 6:00 pm
I'm creating a mod with a separate crafting category. Is that done with the type = item-group? B/c it's showing up under a category called "unsorted" instead o_O
Arch666Angel wrote:The crafting category is added to recipes and entities (assembly-machines, furnaces) and determines which recipe can be produced in a certain machine.
The group type creates an extra tab in the crafting/item menu.
The subgroup type creates a row in a certain group.
Subgroups can be set to items and recipes, depending on how you want to sort them. Setting them to the item only will sort the recipes producing only this item the same as the items.
Code: Select all
data:extend {
{
type = "item-group", --The TAB
name = "other", --the NAME of the tab
icon = "__core__/graphics/questionmark.png", -- Can you guess?
order = "z", --Where the tab will be placed in related to other tabs
},
{
type = "item-subgroup", --A Row in the group
name = "other", -- The name of the ROW
group = "other", --The item-group this subgroup belongs too
order = "z", --The order of the row from top to bottom, row "a" would be above row "b"
},
{
type = "item",
name = "item-name,
--Other item related definitions
subgroup = "other" --Put this on the item-subgroup (row) named "other"
order = "a" --from left to right, where will this be placed in the item-subgroup (row)
}
}