From 6605724fe1fa6ce0844faeeb176a6d16884ed07d Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 30 Sep 2020 17:41:04 +0200 Subject: [PATCH] Add icons for invisible nodes (#2718) --- mods/butterflies/init.lua | 4 ++-- mods/default/nodes.lua | 2 ++ .../textures/default_invisible_node_overlay.png | Bin 0 -> 110 bytes mods/doors/init.lua | 2 ++ mods/doors/textures/doors_hidden_segment.png | Bin 0 -> 280 bytes mods/fireflies/init.lua | 4 ++-- mods/tnt/init.lua | 2 ++ 7 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 mods/default/textures/default_invisible_node_overlay.png create mode 100644 mods/doors/textures/doors_hidden_segment.png diff --git a/mods/butterflies/init.lua b/mods/butterflies/init.lua index 650e7da9..49240eea 100644 --- a/mods/butterflies/init.lua +++ b/mods/butterflies/init.lua @@ -62,8 +62,8 @@ for i in ipairs (butter_list) do minetest.register_node("butterflies:hidden_butterfly_"..name, { drawtype = "airlike", - inventory_image = "butterflies_butterfly_"..name..".png", - wield_image = "butterflies_butterfly_"..name..".png", + inventory_image = "butterflies_butterfly_"..name..".png^default_invisible_node_overlay.png", + wield_image = "butterflies_butterfly_"..name..".png^default_invisible_node_overlay.png", paramtype = "light", sunlight_propagates = true, walkable = false, diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index 7a9899d6..23b3c647 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -796,6 +796,8 @@ minetest.register_node("default:apple", { minetest.register_node("default:apple_mark", { description = S("Apple Marker"), + inventory_image = "default_apple.png^default_invisible_node_overlay.png", + wield_image = "default_apple.png^default_invisible_node_overlay.png", drawtype = "airlike", paramtype = "light", sunlight_propagates = true, diff --git a/mods/default/textures/default_invisible_node_overlay.png b/mods/default/textures/default_invisible_node_overlay.png new file mode 100644 index 0000000000000000000000000000000000000000..7fc880618ee63fb23fd5a59ee97f6e7b07e8f682 GIT binary patch literal 110 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!D3?x-;bCrM;TYyi9>o&dR|Ns9#&VD}!D8f_{ zNG zXA=8edi(cF?b^V|dH0sf6zkwQCQpNYL^!UA%Kl$*bM4kxGmVMwuHC#IwN|%4PW;{Z X!)y^J-W{|6I)=g1)z4*}Q$iB}q)=Z+ literal 0 HcmV?d00001 diff --git a/mods/fireflies/init.lua b/mods/fireflies/init.lua index 1c533a12..0d706308 100644 --- a/mods/fireflies/init.lua +++ b/mods/fireflies/init.lua @@ -54,8 +54,8 @@ minetest.register_node("fireflies:firefly", { minetest.register_node("fireflies:hidden_firefly", { description = S("Hidden Firefly"), drawtype = "airlike", - inventory_image = "fireflies_firefly.png", - wield_image = "fireflies_firefly.png", + inventory_image = "fireflies_firefly.png^default_invisible_node_overlay.png", + wield_image = "fireflies_firefly.png^default_invisible_node_overlay.png", paramtype = "light", sunlight_propagates = true, walkable = false, diff --git a/mods/tnt/init.lua b/mods/tnt/init.lua index ae28191a..cc71b9f9 100644 --- a/mods/tnt/init.lua +++ b/mods/tnt/init.lua @@ -429,6 +429,8 @@ end minetest.register_node("tnt:boom", { drawtype = "airlike", + inventory_image = "tnt_boom.png", + wield_image = "tnt_boom.png", light_source = default.LIGHT_MAX, walkable = false, drop = "",