From 25e857f1680e167848326b71b1e17db75d231300 Mon Sep 17 00:00:00 2001 From: h-v-smacker Date: Sun, 1 Jul 2018 01:37:59 +0300 Subject: better inv image --- init.lua | 4 +++- textures/of.png | Bin 0 -> 199 bytes 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 textures/of.png diff --git a/init.lua b/init.lua index 9bd78a6..b98646c 100644 --- a/init.lua +++ b/init.lua @@ -52,6 +52,8 @@ local frametypes = { }, } + + for material, modname in pairs(materials) do if minetest.get_modpath(modname) then @@ -73,7 +75,7 @@ for material, modname in pairs(materials) do drawtype = "mesh", mesh = f.model, tiles = {texture}, - inventory_image = texture .. "^" .. f.node .. ".png", + inventory_image = "(" .. texture .. "^" .. f.node .. ".png^of.png)^[makealpha:0,0,0", wield_image = texture .. "^" .. f.node .. ".png", paramtype = "light", paramtype2 = "facedir", diff --git a/textures/of.png b/textures/of.png new file mode 100644 index 0000000..3a226ce Binary files /dev/null and b/textures/of.png differ -- cgit v1.2.3