From 27c75caf25888ad7d8c4f42894e3ad27fdfa725c Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 2 Mar 2017 16:58:32 +0100 Subject: [PATCH] Fix bad wield image of buttons --- mods/ITEMS/REDSTONE/mesecons_button/init.lua | 8 ++++++++ .../textures/mesecons_button_wield_mask.png | Bin 0 -> 117 bytes 2 files changed, 8 insertions(+) create mode 100644 mods/ITEMS/REDSTONE/mesecons_textures/textures/mesecons_button_wield_mask.png diff --git a/mods/ITEMS/REDSTONE/mesecons_button/init.lua b/mods/ITEMS/REDSTONE/mesecons_button/init.lua index 030da8ecbb..0b692a6494 100644 --- a/mods/ITEMS/REDSTONE/mesecons_button/init.lua +++ b/mods/ITEMS/REDSTONE/mesecons_button/init.lua @@ -23,6 +23,8 @@ local boxes_on = { -4/16, -2/16, 8/16, 4/16, 2/16, 7/16 } -- The button minetest.register_node("mesecons_button:button_stone_off", { drawtype = "nodebox", tiles = {"default_stone.png"}, + wield_image = "default_stone.png^[mask:mesecons_button_wield_mask.png", + wield_scale = { x=1, y=1, z=1}, paramtype = "light", paramtype2 = "facedir", is_ground_content = false, @@ -56,6 +58,8 @@ minetest.register_node("mesecons_button:button_stone_off", { minetest.register_node("mesecons_button:button_stone_on", { drawtype = "nodebox", tiles = {"default_stone.png"}, + wield_image = "default_stone.png^[mask:mesecons_button_wield_mask.png", + wield_scale = { x=1, y=1, z=0.5}, paramtype = "light", paramtype2 = "facedir", is_ground_content = false, @@ -84,6 +88,8 @@ minetest.register_node("mesecons_button:button_stone_on", { minetest.register_node("mesecons_button:button_wood_off", { drawtype = "nodebox", tiles = {"default_wood.png"}, + wield_image = "default_wood.png^[mask:mesecons_button_wield_mask.png", + wield_scale = { x=1, y=1, z=1}, paramtype = "light", paramtype2 = "facedir", is_ground_content = false, @@ -117,6 +123,8 @@ minetest.register_node("mesecons_button:button_wood_off", { minetest.register_node("mesecons_button:button_wood_on", { drawtype = "nodebox", tiles = {"default_wood.png"}, + wield_image = "default_wood.png^[mask:mesecons_button_wield_mask.png", + wield_scale = { x=1, y=1, z=0.5}, paramtype = "light", paramtype2 = "facedir", is_ground_content = false, diff --git a/mods/ITEMS/REDSTONE/mesecons_textures/textures/mesecons_button_wield_mask.png b/mods/ITEMS/REDSTONE/mesecons_textures/textures/mesecons_button_wield_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..ebcc26e225fb02e01d5d2068f7583dfd251fede9 GIT binary patch literal 117 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE0wix1Z>k4UjKx9jP7LeL$-D$|^gUf1Lp+Wr z|2gjbP0l+XkK%7`JD literal 0 HcmV?d00001