diff --git a/mods/ITEMS/mcl_chests/init.lua b/mods/ITEMS/mcl_chests/init.lua index a276ed953b..68d2fe05e4 100644 --- a/mods/ITEMS/mcl_chests/init.lua +++ b/mods/ITEMS/mcl_chests/init.lua @@ -586,14 +586,39 @@ local boxtypes = { black = "Black Shulker Box", } +local shulker_mob_textures = { + white = "mobs_mc_shulker_white.png", + grey = "mobs_mc_shulker_silver.png", + orange = "mobs_mc_shulker_orange.png", + cyan = "mobs_mc_shulker_cyan.png", + magenta = "mobs_mc_shulker_magenta.png", + violet = "mobs_mc_shulker_purple.png", + lightblue = "mobs_mc_shulker_light_blue.png", + blue = "mobs_mc_shulker_blue.png", + yellow = "mobs_mc_shulker_yellow.png", + brown = "mobs_mc_shulker_brown.png", + green = "mobs_mc_shulker_lime.png", + dark_green = "mobs_mc_shulker_green.png", + pink = "mobs_mc_shulker_pink.png", + red = "mobs_mc_shulker_red.png", + dark_grey = "mobs_mc_shulker_gray.png", + black = "mobs_mc_shulker_black.png", +} + for color, desc in pairs(boxtypes) do + local mob_texture = shulker_mob_textures[color] minetest.register_node("mcl_chests:"..color.."_shulker_box", { description = desc, _doc_items_longdesc = "A shulker box is a portable container which provides 27 inventory slots for any item except shulker boxes. Shulker boxes keep their inventory when broken, so shulker boxes as well as their contents can be taken as a single item. Shulker boxes come in many different colors.", _doc_items_usagehelp = "To access the inventory of a shulker box, place and right-click it. To take a shulker box and its contents with you, just break and collect it, the items will not fall out. Place the shulker box again to be able to retrieve its contents.", - tiles = {"mcl_chests_"..color.."_shulker_box_top.png", "mcl_chests_"..color.."_shulker_box_bottom.png", - "mcl_chests_"..color.."_shulker_box_side.png", "mcl_chests_"..color.."_shulker_box_side.png", - "mcl_chests_"..color.."_shulker_box_side.png", "mcl_chests_"..color.."_shulker_box_side.png"}, + tiles = { + "mcl_chests_"..color.."_shulker_box_top.png", -- top + "[combine:16x16:-32,-28="..mob_texture, -- bottom + "[combine:16x16:0,-36="..mob_texture..":0,-16="..mob_texture, -- side + "[combine:16x16:-32,-36="..mob_texture..":-32,-16="..mob_texture, -- side + "[combine:16x16:-16,-36="..mob_texture..":-16,-16="..mob_texture, -- side + "[combine:16x16:-48,-36="..mob_texture..":-48,-16="..mob_texture, -- side + }, groups = {handy=1,pickaxey=1, container=3, deco_block=1, dig_by_piston=1, shulker_box=1}, is_ground_content = false, sounds = mcl_sounds.node_sound_stone_defaults(), diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_black_shulker_box_bottom.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_black_shulker_box_bottom.png deleted file mode 100644 index 264e3441f9..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_black_shulker_box_bottom.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_black_shulker_box_side.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_black_shulker_box_side.png deleted file mode 100644 index 1358951b8b..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_black_shulker_box_side.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_blue_shulker_box_bottom.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_blue_shulker_box_bottom.png deleted file mode 100644 index 615a15bb7b..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_blue_shulker_box_bottom.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_blue_shulker_box_side.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_blue_shulker_box_side.png deleted file mode 100644 index 7c5e257a03..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_blue_shulker_box_side.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_brown_shulker_box_bottom.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_brown_shulker_box_bottom.png deleted file mode 100644 index 92bd4987ae..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_brown_shulker_box_bottom.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_brown_shulker_box_side.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_brown_shulker_box_side.png deleted file mode 100644 index b878931da8..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_brown_shulker_box_side.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_cyan_shulker_box_bottom.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_cyan_shulker_box_bottom.png deleted file mode 100644 index 24501aa317..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_cyan_shulker_box_bottom.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_cyan_shulker_box_side.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_cyan_shulker_box_side.png deleted file mode 100644 index fddd3fd06a..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_cyan_shulker_box_side.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_dark_green_shulker_box_bottom.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_dark_green_shulker_box_bottom.png deleted file mode 100644 index 2c9427bf7f..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_dark_green_shulker_box_bottom.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_dark_green_shulker_box_side.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_dark_green_shulker_box_side.png deleted file mode 100644 index 6381baf006..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_dark_green_shulker_box_side.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_dark_grey_shulker_box_bottom.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_dark_grey_shulker_box_bottom.png deleted file mode 100644 index 69fe6e6fb4..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_dark_grey_shulker_box_bottom.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_dark_grey_shulker_box_side.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_dark_grey_shulker_box_side.png deleted file mode 100644 index 53ad917bca..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_dark_grey_shulker_box_side.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_green_shulker_box_bottom.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_green_shulker_box_bottom.png deleted file mode 100644 index 90039cbb21..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_green_shulker_box_bottom.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_green_shulker_box_side.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_green_shulker_box_side.png deleted file mode 100644 index b50cde0cbb..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_green_shulker_box_side.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_grey_shulker_box_bottom.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_grey_shulker_box_bottom.png deleted file mode 100644 index 738091cd88..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_grey_shulker_box_bottom.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_grey_shulker_box_side.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_grey_shulker_box_side.png deleted file mode 100644 index ee5e18b370..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_grey_shulker_box_side.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_lightblue_shulker_box_bottom.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_lightblue_shulker_box_bottom.png deleted file mode 100644 index f0115525ed..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_lightblue_shulker_box_bottom.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_lightblue_shulker_box_side.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_lightblue_shulker_box_side.png deleted file mode 100644 index 8a6a38e224..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_lightblue_shulker_box_side.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_magenta_shulker_box_bottom.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_magenta_shulker_box_bottom.png deleted file mode 100644 index 133f8444ba..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_magenta_shulker_box_bottom.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_magenta_shulker_box_side.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_magenta_shulker_box_side.png deleted file mode 100644 index b49aea56fb..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_magenta_shulker_box_side.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_orange_shulker_box_bottom.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_orange_shulker_box_bottom.png deleted file mode 100644 index 7c31b3b494..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_orange_shulker_box_bottom.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_orange_shulker_box_side.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_orange_shulker_box_side.png deleted file mode 100644 index e5cc7caa5c..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_orange_shulker_box_side.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_pink_shulker_box_bottom.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_pink_shulker_box_bottom.png deleted file mode 100644 index 50b070e743..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_pink_shulker_box_bottom.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_pink_shulker_box_side.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_pink_shulker_box_side.png deleted file mode 100644 index aed7803ddc..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_pink_shulker_box_side.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_red_shulker_box_bottom.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_red_shulker_box_bottom.png deleted file mode 100644 index 4194670e7a..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_red_shulker_box_bottom.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_red_shulker_box_side.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_red_shulker_box_side.png deleted file mode 100644 index 270ee06282..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_red_shulker_box_side.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_violet_shulker_box_bottom.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_violet_shulker_box_bottom.png deleted file mode 100644 index bb1caf37ca..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_violet_shulker_box_bottom.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_violet_shulker_box_side.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_violet_shulker_box_side.png deleted file mode 100644 index 0f10b6bfaa..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_violet_shulker_box_side.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_white_shulker_box_bottom.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_white_shulker_box_bottom.png deleted file mode 100644 index cf3306b715..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_white_shulker_box_bottom.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_white_shulker_box_side.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_white_shulker_box_side.png deleted file mode 100644 index ae3f726e7c..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_white_shulker_box_side.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_yellow_shulker_box_bottom.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_yellow_shulker_box_bottom.png deleted file mode 100644 index 6cdf408a0e..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_yellow_shulker_box_bottom.png and /dev/null differ diff --git a/mods/ITEMS/mcl_chests/textures/mcl_chests_yellow_shulker_box_side.png b/mods/ITEMS/mcl_chests/textures/mcl_chests_yellow_shulker_box_side.png deleted file mode 100644 index b48c1292dc..0000000000 Binary files a/mods/ITEMS/mcl_chests/textures/mcl_chests_yellow_shulker_box_side.png and /dev/null differ