summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorh-v-smacker <hans-von-smacker+github@gmail.com>2018-07-01 01:37:59 +0300
committerh-v-smacker <hans-von-smacker+github@gmail.com>2018-07-01 01:37:59 +0300
commit25e857f1680e167848326b71b1e17db75d231300 (patch)
tree2fac1c6d39e5b77b4d489ad79a319221a980a084
parentbd0a241e5362684ffce89c5b963f762bc4aaa09f (diff)
better inv image
-rw-r--r--init.lua4
-rw-r--r--textures/of.pngbin0 -> 199 bytes
2 files changed, 3 insertions, 1 deletions
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
--- /dev/null
+++ b/textures/of.png
Binary files differ