Browse Source

Add icons for invisible nodes (#2718)

Wuzzy 3 weeks ago
parent
commit
6605724fe1

+ 2 - 2
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,

+ 2 - 0
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,

BIN
mods/default/textures/default_invisible_node_overlay.png


+ 2 - 0
mods/doors/init.lua

@@ -78,6 +78,8 @@ end
 -- nodes from being placed in the top half of the door.
 minetest.register_node("doors:hidden", {
 	description = S("Hidden Door Segment"),
+	inventory_image = "doors_hidden_segment.png^default_invisible_node_overlay.png",
+	wield_image = "doors_hidden_segment.png^default_invisible_node_overlay.png",
 	drawtype = "airlike",
 	paramtype = "light",
 	paramtype2 = "facedir",

BIN
mods/doors/textures/doors_hidden_segment.png


+ 2 - 2
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,

+ 2 - 0
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 = "",