mirror of
https://github.com/mt-mods/basic_materials.git
synced 2024-11-25 23:23:42 +01:00
Add custom groups
This will allow others mods (as https://github.com/louisroyer/minetest-keyring) to register crafts using groups (because I don't care of the material used, only the shape matter).
This commit is contained in:
parent
c49b4f1f0a
commit
fb800f9fc3
@ -5,31 +5,37 @@ local S = minetest.get_translator("basic_materials")
|
|||||||
|
|
||||||
minetest.register_craftitem("basic_materials:steel_wire", {
|
minetest.register_craftitem("basic_materials:steel_wire", {
|
||||||
description = S("Spool of steel wire"),
|
description = S("Spool of steel wire"),
|
||||||
|
groups = { wire = 1 },
|
||||||
inventory_image = "basic_materials_steel_wire.png"
|
inventory_image = "basic_materials_steel_wire.png"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("basic_materials:copper_wire", {
|
minetest.register_craftitem("basic_materials:copper_wire", {
|
||||||
description = S("Spool of copper wire"),
|
description = S("Spool of copper wire"),
|
||||||
|
groups = { wire = 1 },
|
||||||
inventory_image = "basic_materials_copper_wire.png"
|
inventory_image = "basic_materials_copper_wire.png"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("basic_materials:silver_wire", {
|
minetest.register_craftitem("basic_materials:silver_wire", {
|
||||||
description = S("Spool of silver wire"),
|
description = S("Spool of silver wire"),
|
||||||
|
groups = { wire = 1 },
|
||||||
inventory_image = "basic_materials_silver_wire.png"
|
inventory_image = "basic_materials_silver_wire.png"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("basic_materials:gold_wire", {
|
minetest.register_craftitem("basic_materials:gold_wire", {
|
||||||
description = S("Spool of gold wire"),
|
description = S("Spool of gold wire"),
|
||||||
|
groups = { wire = 1 },
|
||||||
inventory_image = "basic_materials_gold_wire.png"
|
inventory_image = "basic_materials_gold_wire.png"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("basic_materials:steel_strip", {
|
minetest.register_craftitem("basic_materials:steel_strip", {
|
||||||
description = S("Steel Strip"),
|
description = S("Steel Strip"),
|
||||||
|
groups = { strip = 1 },
|
||||||
inventory_image = "basic_materials_steel_strip.png"
|
inventory_image = "basic_materials_steel_strip.png"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("basic_materials:copper_strip", {
|
minetest.register_craftitem("basic_materials:copper_strip", {
|
||||||
description = S("Copper Strip"),
|
description = S("Copper Strip"),
|
||||||
|
groups = { strip = 1 },
|
||||||
inventory_image = "basic_materials_copper_strip.png"
|
inventory_image = "basic_materials_copper_strip.png"
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -40,11 +46,13 @@ minetest.register_craftitem("basic_materials:steel_bar", {
|
|||||||
|
|
||||||
minetest.register_craftitem("basic_materials:chainlink_brass", {
|
minetest.register_craftitem("basic_materials:chainlink_brass", {
|
||||||
description = S("Chainlinks (brass)"),
|
description = S("Chainlinks (brass)"),
|
||||||
|
groups = { chainlinks = 1 },
|
||||||
inventory_image = "basic_materials_chainlink_brass.png"
|
inventory_image = "basic_materials_chainlink_brass.png"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("basic_materials:chainlink_steel", {
|
minetest.register_craftitem("basic_materials:chainlink_steel", {
|
||||||
description = S("Chainlinks (steel)"),
|
description = S("Chainlinks (steel)"),
|
||||||
|
groups = { chainlinks = 1 },
|
||||||
inventory_image = "basic_materials_chainlink_steel.png"
|
inventory_image = "basic_materials_chainlink_steel.png"
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ minetest.register_craftitem("basic_materials:plastic_sheet", {
|
|||||||
|
|
||||||
minetest.register_craftitem("basic_materials:plastic_strip", {
|
minetest.register_craftitem("basic_materials:plastic_strip", {
|
||||||
description = S("Plastic strips"),
|
description = S("Plastic strips"),
|
||||||
|
groups = { strip = 1 },
|
||||||
inventory_image = "basic_materials_plastic_strip.png",
|
inventory_image = "basic_materials_plastic_strip.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user