From 9a5dcfe13f25941a1ef4f7436d13697c5398ed10 Mon Sep 17 00:00:00 2001 From: AliasAlreadyTaken Date: Tue, 25 Aug 2020 00:02:23 +0200 Subject: [PATCH] textures adhere to naming convention. Solves #2 --- init.lua | 14 +++++++------- .../{apple_jam.png => canned_food_apple_jam.png} | Bin ...{banana_jam.png => canned_food_banana_jam.png} | Bin ...rry_jam.png => canned_food_blackberry_jam.png} | Bin ...erry_jam.png => canned_food_blueberry_jam.png} | Bin ...ned_beans.png => canned_food_canned_beans.png} | Bin ...etroot.png => canned_food_canned_beetroot.png} | Bin ...d_carrot.png => canned_food_canned_carrot.png} | Bin ...er.png => canned_food_canned_chili_pepper.png} | Bin ...coconut.png => canned_food_canned_coconut.png} | Bin ...anned_corn.png => canned_food_canned_corn.png} | Bin ...cumber.png => canned_food_canned_cucumber.png} | Bin ...s.png => canned_food_canned_garlic_cloves.png} | Bin ...rooms.png => canned_food_canned_mushrooms.png} | Bin ...ned_onion.png => canned_food_canned_onion.png} | Bin ...anned_peas.png => canned_food_canned_peas.png} | Bin ...apple.png => canned_food_canned_pineapple.png} | Bin ...d_potato.png => canned_food_canned_potato.png} | Bin ...pumpkin.png => canned_food_canned_pumpkin.png} | Bin ...d_tomato.png => canned_food_canned_tomato.png} | Bin ...nion.png => canned_food_canned_wild_onion.png} | Bin ...lion_jam.png => canned_food_dandelion_jam.png} | Bin .../{grape_jam.png => canned_food_grape_jam.png} | Bin .../{honey_jar.png => canned_food_honey_jar.png} | Bin .../{melon_jam.png => canned_food_melon_jam.png} | Bin ...{orange_jam.png => canned_food_orange_jam.png} | Bin ..._cover.png => canned_food_paper_lid_cover.png} | Bin ...ing_icon.png => canned_food_pickling_icon.png} | Bin ...nuts_jar.png => canned_food_pine_nuts_jar.png} | Bin ...erry_jam.png => canned_food_raspberry_jam.png} | Bin ...hubarb_jam.png => canned_food_rhubarb_jam.png} | Bin .../{rose_jam.png => canned_food_rose_jam.png} | Bin ...rry_jam.png => canned_food_strawberry_jam.png} | Bin ...jam.png => canned_food_wild_blueberry_jam.png} | Bin 34 files changed, 7 insertions(+), 7 deletions(-) rename textures/{apple_jam.png => canned_food_apple_jam.png} (100%) rename textures/{banana_jam.png => canned_food_banana_jam.png} (100%) rename textures/{blackberry_jam.png => canned_food_blackberry_jam.png} (100%) rename textures/{blueberry_jam.png => canned_food_blueberry_jam.png} (100%) rename textures/{canned_beans.png => canned_food_canned_beans.png} (100%) rename textures/{canned_beetroot.png => canned_food_canned_beetroot.png} (100%) rename textures/{canned_carrot.png => canned_food_canned_carrot.png} (100%) rename textures/{canned_chili_pepper.png => canned_food_canned_chili_pepper.png} (100%) rename textures/{canned_coconut.png => canned_food_canned_coconut.png} (100%) rename textures/{canned_corn.png => canned_food_canned_corn.png} (100%) rename textures/{canned_cucumber.png => canned_food_canned_cucumber.png} (100%) rename textures/{canned_garlic_cloves.png => canned_food_canned_garlic_cloves.png} (100%) rename textures/{canned_mushrooms.png => canned_food_canned_mushrooms.png} (100%) rename textures/{canned_onion.png => canned_food_canned_onion.png} (100%) rename textures/{canned_peas.png => canned_food_canned_peas.png} (100%) rename textures/{canned_pineapple.png => canned_food_canned_pineapple.png} (100%) rename textures/{canned_potato.png => canned_food_canned_potato.png} (100%) rename textures/{canned_pumpkin.png => canned_food_canned_pumpkin.png} (100%) rename textures/{canned_tomato.png => canned_food_canned_tomato.png} (100%) rename textures/{canned_wild_onion.png => canned_food_canned_wild_onion.png} (100%) rename textures/{dandelion_jam.png => canned_food_dandelion_jam.png} (100%) rename textures/{grape_jam.png => canned_food_grape_jam.png} (100%) rename textures/{honey_jar.png => canned_food_honey_jar.png} (100%) rename textures/{melon_jam.png => canned_food_melon_jam.png} (100%) rename textures/{orange_jam.png => canned_food_orange_jam.png} (100%) rename textures/{paper_lid_cover.png => canned_food_paper_lid_cover.png} (100%) rename textures/{pickling_icon.png => canned_food_pickling_icon.png} (100%) rename textures/{pine_nuts_jar.png => canned_food_pine_nuts_jar.png} (100%) rename textures/{raspberry_jam.png => canned_food_raspberry_jam.png} (100%) rename textures/{rhubarb_jam.png => canned_food_rhubarb_jam.png} (100%) rename textures/{rose_jam.png => canned_food_rose_jam.png} (100%) rename textures/{strawberry_jam.png => canned_food_strawberry_jam.png} (100%) rename textures/{wild_blueberry_jam.png => canned_food_wild_blueberry_jam.png} (100%) diff --git a/init.lua b/init.lua index 05f62ad..ae26571 100644 --- a/init.lua +++ b/init.lua @@ -22,7 +22,7 @@ if minetest.get_modpath("unified_inventory") and unified_inventory.register_craft_type then unified_inventory.register_craft_type("pickling", { description = "Dark room, wooden shelf", - icon = "pickling_icon.png", + icon = "canned_food_pickling_icon.png", width = 1, height = 1, uses_crafting_grid = false, @@ -305,9 +305,9 @@ for product, def in pairs(canned_food_definitions) do local nodetable = { description = def.proper_name, drawtype = "plantlike", - tiles = {product .. ".png"}, - inventory_image = product .. ".png", - wield_image = product .. ".png", + tiles = {"canned_food_" .. product .. ".png"}, + inventory_image = "canned_food_" .. product .. ".png", + wield_image = "canned_food_" .. product .. ".png", paramtype = "light", is_ground_content = false, walkable = false, @@ -367,9 +367,9 @@ for product, def in pairs(canned_food_definitions) do minetest.register_node("canned_food:" .. product .."_plus", { description = def.transforms, drawtype = "plantlike", - tiles = {product .. ".png^paper_lid_cover.png"}, - inventory_image = product .. ".png^paper_lid_cover.png", - wield_image = product .. ".png^paper_lid_cover.png", + tiles = {"canned_food_" .. product .. ".png^canned_food_paper_lid_cover.png"}, + inventory_image = "canned_food_" .. product .. ".png^canned_food_paper_lid_cover.png", + wield_image = "canned_food_" .. product .. ".png^canned_food_paper_lid_cover.png", paramtype = "light", is_ground_content = false, walkable = false, diff --git a/textures/apple_jam.png b/textures/canned_food_apple_jam.png similarity index 100% rename from textures/apple_jam.png rename to textures/canned_food_apple_jam.png diff --git a/textures/banana_jam.png b/textures/canned_food_banana_jam.png similarity index 100% rename from textures/banana_jam.png rename to textures/canned_food_banana_jam.png diff --git a/textures/blackberry_jam.png b/textures/canned_food_blackberry_jam.png similarity index 100% rename from textures/blackberry_jam.png rename to textures/canned_food_blackberry_jam.png diff --git a/textures/blueberry_jam.png b/textures/canned_food_blueberry_jam.png similarity index 100% rename from textures/blueberry_jam.png rename to textures/canned_food_blueberry_jam.png diff --git a/textures/canned_beans.png b/textures/canned_food_canned_beans.png similarity index 100% rename from textures/canned_beans.png rename to textures/canned_food_canned_beans.png diff --git a/textures/canned_beetroot.png b/textures/canned_food_canned_beetroot.png similarity index 100% rename from textures/canned_beetroot.png rename to textures/canned_food_canned_beetroot.png diff --git a/textures/canned_carrot.png b/textures/canned_food_canned_carrot.png similarity index 100% rename from textures/canned_carrot.png rename to textures/canned_food_canned_carrot.png diff --git a/textures/canned_chili_pepper.png b/textures/canned_food_canned_chili_pepper.png similarity index 100% rename from textures/canned_chili_pepper.png rename to textures/canned_food_canned_chili_pepper.png diff --git a/textures/canned_coconut.png b/textures/canned_food_canned_coconut.png similarity index 100% rename from textures/canned_coconut.png rename to textures/canned_food_canned_coconut.png diff --git a/textures/canned_corn.png b/textures/canned_food_canned_corn.png similarity index 100% rename from textures/canned_corn.png rename to textures/canned_food_canned_corn.png diff --git a/textures/canned_cucumber.png b/textures/canned_food_canned_cucumber.png similarity index 100% rename from textures/canned_cucumber.png rename to textures/canned_food_canned_cucumber.png diff --git a/textures/canned_garlic_cloves.png b/textures/canned_food_canned_garlic_cloves.png similarity index 100% rename from textures/canned_garlic_cloves.png rename to textures/canned_food_canned_garlic_cloves.png diff --git a/textures/canned_mushrooms.png b/textures/canned_food_canned_mushrooms.png similarity index 100% rename from textures/canned_mushrooms.png rename to textures/canned_food_canned_mushrooms.png diff --git a/textures/canned_onion.png b/textures/canned_food_canned_onion.png similarity index 100% rename from textures/canned_onion.png rename to textures/canned_food_canned_onion.png diff --git a/textures/canned_peas.png b/textures/canned_food_canned_peas.png similarity index 100% rename from textures/canned_peas.png rename to textures/canned_food_canned_peas.png diff --git a/textures/canned_pineapple.png b/textures/canned_food_canned_pineapple.png similarity index 100% rename from textures/canned_pineapple.png rename to textures/canned_food_canned_pineapple.png diff --git a/textures/canned_potato.png b/textures/canned_food_canned_potato.png similarity index 100% rename from textures/canned_potato.png rename to textures/canned_food_canned_potato.png diff --git a/textures/canned_pumpkin.png b/textures/canned_food_canned_pumpkin.png similarity index 100% rename from textures/canned_pumpkin.png rename to textures/canned_food_canned_pumpkin.png diff --git a/textures/canned_tomato.png b/textures/canned_food_canned_tomato.png similarity index 100% rename from textures/canned_tomato.png rename to textures/canned_food_canned_tomato.png diff --git a/textures/canned_wild_onion.png b/textures/canned_food_canned_wild_onion.png similarity index 100% rename from textures/canned_wild_onion.png rename to textures/canned_food_canned_wild_onion.png diff --git a/textures/dandelion_jam.png b/textures/canned_food_dandelion_jam.png similarity index 100% rename from textures/dandelion_jam.png rename to textures/canned_food_dandelion_jam.png diff --git a/textures/grape_jam.png b/textures/canned_food_grape_jam.png similarity index 100% rename from textures/grape_jam.png rename to textures/canned_food_grape_jam.png diff --git a/textures/honey_jar.png b/textures/canned_food_honey_jar.png similarity index 100% rename from textures/honey_jar.png rename to textures/canned_food_honey_jar.png diff --git a/textures/melon_jam.png b/textures/canned_food_melon_jam.png similarity index 100% rename from textures/melon_jam.png rename to textures/canned_food_melon_jam.png diff --git a/textures/orange_jam.png b/textures/canned_food_orange_jam.png similarity index 100% rename from textures/orange_jam.png rename to textures/canned_food_orange_jam.png diff --git a/textures/paper_lid_cover.png b/textures/canned_food_paper_lid_cover.png similarity index 100% rename from textures/paper_lid_cover.png rename to textures/canned_food_paper_lid_cover.png diff --git a/textures/pickling_icon.png b/textures/canned_food_pickling_icon.png similarity index 100% rename from textures/pickling_icon.png rename to textures/canned_food_pickling_icon.png diff --git a/textures/pine_nuts_jar.png b/textures/canned_food_pine_nuts_jar.png similarity index 100% rename from textures/pine_nuts_jar.png rename to textures/canned_food_pine_nuts_jar.png diff --git a/textures/raspberry_jam.png b/textures/canned_food_raspberry_jam.png similarity index 100% rename from textures/raspberry_jam.png rename to textures/canned_food_raspberry_jam.png diff --git a/textures/rhubarb_jam.png b/textures/canned_food_rhubarb_jam.png similarity index 100% rename from textures/rhubarb_jam.png rename to textures/canned_food_rhubarb_jam.png diff --git a/textures/rose_jam.png b/textures/canned_food_rose_jam.png similarity index 100% rename from textures/rose_jam.png rename to textures/canned_food_rose_jam.png diff --git a/textures/strawberry_jam.png b/textures/canned_food_strawberry_jam.png similarity index 100% rename from textures/strawberry_jam.png rename to textures/canned_food_strawberry_jam.png diff --git a/textures/wild_blueberry_jam.png b/textures/canned_food_wild_blueberry_jam.png similarity index 100% rename from textures/wild_blueberry_jam.png rename to textures/canned_food_wild_blueberry_jam.png