diff --git a/mods/unified_inventory/bags.lua b/mods/unified_inventory/bags.lua index 6472ce69..5e208802 100755 --- a/mods/unified_inventory/bags.lua +++ b/mods/unified_inventory/bags.lua @@ -201,6 +201,32 @@ minetest.register_tool("unified_inventory:bag_large", { groups = {bagslots=24}, }) +local colours = {"orange", "blue", "green", "purple"} + +for _, colour in pairs(colours) do + minetest.register_tool("unified_inventory:bag_small_" .. colour, { + description = S("Small Bag"), + inventory_image = "bags_small_" .. colour .. ".png", + groups = {bagslots=8}, + }) + + minetest.register_tool("unified_inventory:bag_medium_" .. colour, { + description = S("Medium Bag"), + inventory_image = "bags_medium_" .. colour .. ".png", + groups = {bagslots=16}, + }) + + minetest.register_tool("unified_inventory:bag_large_" .. colour, { + description = S("Large Bag"), + inventory_image = "bags_large_" .. colour .. ".png", + groups = {bagslots=24}, + }) +end + +--minetest.register_alias("unified_inventory:bag_small", "unified_inventory:bad_small_red") +--minetest.register_alias("unified_inventory:bag_medium", "unified_inventory:bad_medium_red") +--minetest.register_alias("unified_inventory:bag_large", "unified_inventory:bad_large_red") + -- register bag crafts minetest.register_craft({ output = "unified_inventory:bag_small", diff --git a/mods/unified_inventory/textures/bags_large_blue.png b/mods/unified_inventory/textures/bags_large_blue.png new file mode 100644 index 00000000..d4926ac0 Binary files /dev/null and b/mods/unified_inventory/textures/bags_large_blue.png differ diff --git a/mods/unified_inventory/textures/bags_large_green.png b/mods/unified_inventory/textures/bags_large_green.png new file mode 100644 index 00000000..7d641aac Binary files /dev/null and b/mods/unified_inventory/textures/bags_large_green.png differ diff --git a/mods/unified_inventory/textures/bags_large_orange.png b/mods/unified_inventory/textures/bags_large_orange.png new file mode 100644 index 00000000..901128b7 Binary files /dev/null and b/mods/unified_inventory/textures/bags_large_orange.png differ diff --git a/mods/unified_inventory/textures/bags_large_purple.png b/mods/unified_inventory/textures/bags_large_purple.png new file mode 100644 index 00000000..f0f120ed Binary files /dev/null and b/mods/unified_inventory/textures/bags_large_purple.png differ diff --git a/mods/unified_inventory/textures/bags_medium_blue.png b/mods/unified_inventory/textures/bags_medium_blue.png new file mode 100644 index 00000000..fe3cd29f Binary files /dev/null and b/mods/unified_inventory/textures/bags_medium_blue.png differ diff --git a/mods/unified_inventory/textures/bags_medium_green.png b/mods/unified_inventory/textures/bags_medium_green.png new file mode 100644 index 00000000..4bdaf8ad Binary files /dev/null and b/mods/unified_inventory/textures/bags_medium_green.png differ diff --git a/mods/unified_inventory/textures/bags_medium_orange.png b/mods/unified_inventory/textures/bags_medium_orange.png new file mode 100644 index 00000000..d250d7c4 Binary files /dev/null and b/mods/unified_inventory/textures/bags_medium_orange.png differ diff --git a/mods/unified_inventory/textures/bags_medium_purple.png b/mods/unified_inventory/textures/bags_medium_purple.png new file mode 100644 index 00000000..86d4dea9 Binary files /dev/null and b/mods/unified_inventory/textures/bags_medium_purple.png differ diff --git a/mods/unified_inventory/textures/bags_small_blue.png b/mods/unified_inventory/textures/bags_small_blue.png new file mode 100644 index 00000000..ce2b9876 Binary files /dev/null and b/mods/unified_inventory/textures/bags_small_blue.png differ diff --git a/mods/unified_inventory/textures/bags_small_green.png b/mods/unified_inventory/textures/bags_small_green.png new file mode 100644 index 00000000..9f0cf398 Binary files /dev/null and b/mods/unified_inventory/textures/bags_small_green.png differ diff --git a/mods/unified_inventory/textures/bags_small_orange.png b/mods/unified_inventory/textures/bags_small_orange.png new file mode 100644 index 00000000..0b5b72e3 Binary files /dev/null and b/mods/unified_inventory/textures/bags_small_orange.png differ diff --git a/mods/unified_inventory/textures/bags_small_purple.png b/mods/unified_inventory/textures/bags_small_purple.png new file mode 100644 index 00000000..8d804d5e Binary files /dev/null and b/mods/unified_inventory/textures/bags_small_purple.png differ