item group bugged out?

Place to get help with not working mods / modding interface.
Bizobinator
Fast Inserter
Fast Inserter
Posts: 193
Joined: Fri May 06, 2016 10:35 pm
Contact:

item group bugged out?

Post 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
User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1637
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: item group bugged out?

Post 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.
Bizobinator
Fast Inserter
Fast Inserter
Posts: 193
Joined: Fri May 06, 2016 10:35 pm
Contact:

Re: item group bugged out?

Post 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?
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: item group bugged out?

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

Return to “Modding help”