mods backpacks : only one kind of bags
This commit is contained in:
parent
1324740034
commit
05b69630e5
@ -100,15 +100,6 @@ local function register_wool_backpack(colour,colourname)
|
||||
allow_metadata_inventory_put = backpacks.allow_metadata_inventory_put,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "backpacks:backpack_wool_"..colour,
|
||||
recipe = {
|
||||
{"wool:"..colour, "wool:"..colour, "wool:"..colour},
|
||||
{"wool:"..colour, "", "wool:"..colour},
|
||||
{"wool:"..colour, "wool:"..colour, "wool:"..colour},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "backpacks:backpack_wool_brown",
|
||||
recipe = {
|
||||
@ -131,16 +122,18 @@ local wooldyes = {
|
||||
{code = "magenta", name = "Magenta"},
|
||||
{code = "orange", name = "Orange"},
|
||||
{code = "violet", name = "Violet"},
|
||||
{code = "brown", name = "Brown"},
|
||||
-- {code = "brown", name = "Brown"},
|
||||
{code = "pink", name = "Pink"},
|
||||
{code = "dark_grey", name = "Dark Grey"},
|
||||
{code = "dark_green", name = "Dark Green"},
|
||||
}
|
||||
|
||||
for _,colourdesc in pairs(wooldyes) do
|
||||
register_wool_backpack(colourdesc.code,colourdesc.name)
|
||||
minetest.register_alias("backpacks:backpack_wool_"..wooldyes.code, "backpacks:backpack_wool")
|
||||
end
|
||||
minetest.register_alias("backpacks:backpack_wool", "backpacks:backpack_wool_white")
|
||||
|
||||
minetest.register_alias("backpacks:backpack_wool", "backpacks:backpack_wool_brown")
|
||||
register_wool_backpack("brown","")
|
||||
|
||||
-- Leather backpack
|
||||
minetest.register_node("backpacks:backpack_leather", {
|
||||
|
Loading…
x
Reference in New Issue
Block a user