Page 1 of 1

item group bugged out?

Posted: Sat Apr 01, 2017 6:00 pm
by Bizobinator
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

Re: item group bugged out?

Posted: Sat Apr 01, 2017 6:29 pm
by Arch666Angel
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.

Re: item group bugged out?

Posted: Sat Apr 01, 2017 8:59 pm
by Bizobinator
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.

Ah, yeah, that's kind of what I meant. I have the item and entity set to a group type, but it doesn't seem to be working?

Re: item group bugged out?

Posted: Sun Apr 02, 2017 3:59 am
by Nexela
You need to set them to a subgroup of the group

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) 
  }
}