Default: Improve fences inventory/wield images
authorpithydon <daniel@danielimac.local>
Sat, 30 Jul 2016 23:15:42 +0000 (17:15 -0600)
committerparamat <mat.gregory@virginmedia.com>
Sat, 20 Aug 2016 03:27:48 +0000 (04:27 +0100)
mods/default/nodes.lua

index 5bf5458c85139f81bb24a824e1383d924b3db069..fe7cbb12a4137b56ac82710e83acb4edd3d61ebe 100644 (file)
@@ -1857,6 +1857,8 @@ minetest.register_node("default:ladder_steel", {
 default.register_fence("default:fence_wood", {
        description = "Wooden Fence",
        texture = "default_fence_wood.png",
+       inventory_image = "default_fence_overlay.png^default_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
+       wield_image = "default_fence_overlay.png^default_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
        material = "default:wood",
        groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
        sounds = default.node_sound_wood_defaults()
@@ -1865,6 +1867,8 @@ default.register_fence("default:fence_wood", {
 default.register_fence("default:fence_acacia_wood", {
        description = "Acacia Fence",
        texture = "default_fence_acacia_wood.png",
+       inventory_image = "default_fence_overlay.png^default_acacia_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
+       wield_image = "default_fence_overlay.png^default_acacia_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
        material = "default:acacia_wood",
        groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
        sounds = default.node_sound_wood_defaults()
@@ -1873,6 +1877,8 @@ default.register_fence("default:fence_acacia_wood", {
 default.register_fence("default:fence_junglewood", {
        description = "Junglewood Fence",
        texture = "default_fence_junglewood.png",
+       inventory_image = "default_fence_overlay.png^default_junglewood.png^default_fence_overlay.png^[makealpha:255,126,126",
+       wield_image = "default_fence_overlay.png^default_junglewood.png^default_fence_overlay.png^[makealpha:255,126,126",
        material = "default:junglewood",
        groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
        sounds = default.node_sound_wood_defaults()
@@ -1881,6 +1887,8 @@ default.register_fence("default:fence_junglewood", {
 default.register_fence("default:fence_pine_wood", {
        description = "Pine Fence",
        texture = "default_fence_pine_wood.png",
+       inventory_image = "default_fence_overlay.png^default_pine_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
+       wield_image = "default_fence_overlay.png^default_pine_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
        material = "default:pine_wood",
        groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
        sounds = default.node_sound_wood_defaults()
@@ -1889,6 +1897,8 @@ default.register_fence("default:fence_pine_wood", {
 default.register_fence("default:fence_aspen_wood", {
        description = "Aspen Fence",
        texture = "default_fence_aspen_wood.png",
+       inventory_image = "default_fence_overlay.png^default_aspen_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
+       wield_image = "default_fence_overlay.png^default_aspen_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
        material = "default:aspen_wood",
        groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
        sounds = default.node_sound_wood_defaults()