]> git.lizzy.rs Git - xdecor.git/commitdiff
Change Lantern textures
authorJean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com>
Tue, 15 Mar 2016 15:21:34 +0000 (16:21 +0100)
committerJean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com>
Tue, 15 Mar 2016 15:26:28 +0000 (16:26 +0100)
nodes.lua
textures/xdecor_candle_ceiling.png [deleted file]
textures/xdecor_lantern.png
textures/xdecor_lantern_ceiling.png [deleted file]
textures/xdecor_lantern_floor.png [deleted file]
textures/xdecor_lantern_inv.png [new file with mode: 0644]

index 7e2dd3e2919138ef71f63181b36812d49d8ab711..54bac6570cb620af35464ff443276ea3cc44531b 100644 (file)
--- a/nodes.lua
+++ b/nodes.lua
@@ -106,19 +106,18 @@ xdecor.register("candle", {
        inventory_image = "xdecor_candle_inv.png",
        wield_image = "xdecor_candle_wield.png",
        paramtype2 = "wallmounted",
-       legacy_wallmounted = true,
        walkable = false,
        groups = {dig_immediate=3, attached_node=1},
        tiles = {{name = "xdecor_candle_floor.png",
                        animation = {type="vertical_frames", length=1.5}},
-               {name = "xdecor_candle_ceiling.png",
+               {name = "xdecor_candle_floor.png",
                        animation = {type="vertical_frames", length=1.5}},
                {name = "xdecor_candle_wall.png",
                        animation = {type="vertical_frames", length=1.5}}
        },
        selection_box = {
                type = "wallmounted",
-               wall_top = {-0.3, -0.4, -0.3, 0.3, 0.5, 0.3},
+               wall_top = {-0.25, -0.5, -0.25, 0.25, 0.1, 0.25},
                wall_bottom = {-0.25, -0.5, -0.25, 0.25, 0.1, 0.25},
                wall_side = {-0.5, -0.35, -0.15, -0.15, 0.4, 0.15}
        }
@@ -319,7 +318,6 @@ xdecor.register("ivy", {
        groups = {dig_immediate=3, flammable=3, plant=1},
        paramtype2 = "wallmounted",
        selection_box = {type="wallmounted"},
-       legacy_wallmounted = true,
        tiles = {"xdecor_ivy.png"},
        inventory_image = "xdecor_ivy.png",
        wield_image = "xdecor_ivy.png",
@@ -328,20 +326,15 @@ xdecor.register("ivy", {
 
 xdecor.register("lantern", {
        description = "Lantern",
-       light_source = 12,
-       drawtype = "torchlike",
-       inventory_image = "xdecor_lantern_floor.png",
-       wield_image = "xdecor_lantern_floor.png", 
+       light_source = 13,
+       drawtype = "plantlike",
+       inventory_image = "xdecor_lantern_inv.png",
+       wield_image = "xdecor_lantern_inv.png",
        paramtype2 = "wallmounted",
-       legacy_wallmounted = true,
        walkable = false,
        groups = {dig_immediate=3, attached_node=1},
-       tiles = {"xdecor_lantern_floor.png", "xdecor_lantern_ceiling.png", "xdecor_lantern.png"},
-       selection_box = {
-               type = "wallmounted",
-               wall_top = {-0.25, -0.4, -0.25, 0.25, 0.5, 0.25},
-               wall_bottom = {-0.25, -0.5, -0.25, 0.25, 0.4, 0.25},
-               wall_side = {-0.5, -0.5, -0.15, 0.5, 0.5, 0.15} }
+       tiles = {{name = "xdecor_lantern.png", animation = {type="vertical_frames", length=1.5}}},
+       selection_box = xdecor.pixelbox(16, {{4, 0, 4, 8, 16, 8}})
 })
 
 for _, l in pairs({"iron", "wooden"}) do
@@ -388,7 +381,6 @@ xdecor.register("painting_1", {
        inventory_image = "xdecor_painting_empty.png",
        wield_image = "xdecor_painting_empty.png",
        paramtype2 = "wallmounted",
-       legacy_wallmounted = true,
        wield_image = "xdecor_painting_empty.png",
        sunlight_propagates = true,
        groups = {choppy=3, oddly_breakable_by_hand=2, flammable=2, attached_node=1},
@@ -406,7 +398,6 @@ for i = 2, 4 do
        xdecor.register("painting_"..i, {
                tiles = {"xdecor_painting_"..i..".png"},
                paramtype2 = "wallmounted",
-               legacy_wallmounted = true,
                drop = "xdecor:painting_1",
                sunlight_propagates = true,
                groups = {choppy=3, oddly_breakable_by_hand=2, flammable=2, attached_node=1, not_in_creative_inventory=1},
diff --git a/textures/xdecor_candle_ceiling.png b/textures/xdecor_candle_ceiling.png
deleted file mode 100644 (file)
index 8b0a054..0000000
Binary files a/textures/xdecor_candle_ceiling.png and /dev/null differ
index 8c5b1fa911afe9041ace8955b72ee1cb95ba4740..3ddcf5397e0341bb19db32b248d72b5dfbb8b619 100644 (file)
Binary files a/textures/xdecor_lantern.png and b/textures/xdecor_lantern.png differ
diff --git a/textures/xdecor_lantern_ceiling.png b/textures/xdecor_lantern_ceiling.png
deleted file mode 100644 (file)
index 71310ec..0000000
Binary files a/textures/xdecor_lantern_ceiling.png and /dev/null differ
diff --git a/textures/xdecor_lantern_floor.png b/textures/xdecor_lantern_floor.png
deleted file mode 100644 (file)
index 9dbb5b0..0000000
Binary files a/textures/xdecor_lantern_floor.png and /dev/null differ
diff --git a/textures/xdecor_lantern_inv.png b/textures/xdecor_lantern_inv.png
new file mode 100644 (file)
index 0000000..ea66101
Binary files /dev/null and b/textures/xdecor_lantern_inv.png differ