Need help on groups
Posted: Sun Mar 27, 2016 10:40 pm
Hello there guys, I've started developing a mod which will add quantum mechanics to the game, but I am struggling to get the sub groups to work and to let the actual group appear in the crafting area. My item-groups.lua is as follows:
When I try to launch the game, it tells me that the sub groups don't exist. What am I doing wrong?
Here is the item.lua:
Code: Select all
data:extend({
--Main item group
{
type = "item-group",
name = "quantum-stuff",
icon = "__Quantum_Stuff__/graphics/group_icon.png",
order = "f",
inventory_order = "f"
},
-- Crafting materials subgroup
{
type = "item-subgroup",
name = "material",
group = "quantum-stuff",
order = "a"
},
-- Entity subgroup
{
type = "item-subgroup",
name = "gate",
group = "quantum-stuff",
order = "b"
}
})
Here is the item.lua:
Code: Select all
data:extend({
{
type = "item",
name = "quantum-chip",
icon = "__Quantum_Stuff__/graphics/icons/quantum-chip.png",
flags = {"goes-to-main-inventory"},
--subgroup = "material",
order = "a[quantum-chip]",
stack_size = 50
},
{
type = "item",
name = "quantum-gate",
icon = "__Quantum_Stuff__/graphics/icons/quantum-gate.png",
flags = {"goes-to-quickbar"},
--subgroup = "gate",
order = "b[quantum-gate]",
--place_result = "quantum-gate",
stack_size = 2
}
})