mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +01:00
add craft for colored bag,change craft for normal bag
This commit is contained in:
parent
b43620565d
commit
c63b13ba85
@ -204,7 +204,7 @@ minetest.register_tool("unified_inventory:bag_large", {
|
||||
groups = {bagslots=24},
|
||||
})
|
||||
|
||||
local colours = {"orange", "blue", "green", "purple"}
|
||||
local colours = {"orange", "blue", "green", "violet"}
|
||||
|
||||
for _, colour in pairs(colours) do
|
||||
minetest.register_tool("unified_inventory:bag_small_" .. colour, {
|
||||
@ -224,6 +224,32 @@ for _, colour in pairs(colours) do
|
||||
inventory_image = "bags_large_" .. colour .. ".png",
|
||||
groups = {bagslots=24},
|
||||
})
|
||||
|
||||
-- register bag crafts
|
||||
minetest.register_craft({
|
||||
output = "unified_inventory:bag_small_" .. colour,
|
||||
recipe = {
|
||||
{"dye:"..colour, "unified_inventory:bag_small"},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "unified_inventory:bag_medium_" .. colour,
|
||||
recipe = {
|
||||
{"", "", ""},
|
||||
{"farming:cotton", "unified_inventory:bag_small_" .. colour, "farming:cotton"},
|
||||
{"farming:cotton", "unified_inventory:bag_small_" .. colour, "farming:cotton"},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "unified_inventory:bag_large_" .. colour,
|
||||
recipe = {
|
||||
{"", "", ""},
|
||||
{"farming:cotton", "unified_inventory:bag_medium_" .. colour, "farming:cotton"},
|
||||
{"farming:cotton", "unified_inventory:bag_medium_" .. colour, "farming:cotton"},
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
--minetest.register_alias("unified_inventory:bag_small", "unified_inventory:bad_small_red")
|
||||
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
Loading…
Reference in New Issue
Block a user