New fence texture
authorHybridDog <adresse_test@t-online.de>
Sat, 8 Jun 2013 15:33:51 +0000 (17:33 +0200)
committerBlockMen <nmuelll@web.de>
Sat, 5 Jul 2014 14:03:14 +0000 (16:03 +0200)
mods/default/nodes.lua
mods/default/textures/default_fence.png [deleted file]
mods/default/textures/default_fence_overlay.png [new file with mode: 0644]

index c098159082bc2c40c80a4bd53d028129dfe5704b..aff25b6de533e3feff1198e9fb819b1d43e48387 100644 (file)
@@ -456,12 +456,13 @@ minetest.register_node("default:glass", {
        sounds = default.node_sound_glass_defaults(),
 })
 
+local fence_texture = "default_fence_overlay.png^default_wood.png^default_fence_overlay.png^[makealpha:255,126,126"
 minetest.register_node("default:fence_wood", {
        description = "Wooden Fence",
        drawtype = "fencelike",
        tiles = {"default_wood.png"},
-       inventory_image = "default_fence.png",
-       wield_image = "default_fence.png",
+       inventory_image = fence_texture,
+       wield_image = fence_texture,
        paramtype = "light",
        is_ground_content = false,
        selection_box = {
diff --git a/mods/default/textures/default_fence.png b/mods/default/textures/default_fence.png
deleted file mode 100644 (file)
index ca6ed59..0000000
Binary files a/mods/default/textures/default_fence.png and /dev/null differ
diff --git a/mods/default/textures/default_fence_overlay.png b/mods/default/textures/default_fence_overlay.png
new file mode 100644 (file)
index 0000000..780e736
Binary files /dev/null and b/mods/default/textures/default_fence_overlay.png differ