]> git.lizzy.rs Git - xdecor.git/commitdiff
Better plant pot texture and make it plantlike for simplicity
authorkilbith <jeanpatrick.guerrero@gmail.com>
Tue, 1 Sep 2015 11:10:26 +0000 (13:10 +0200)
committerkilbith <jeanpatrick.guerrero@gmail.com>
Tue, 1 Sep 2015 11:25:34 +0000 (13:25 +0200)
nodes.lua
textures/xdecor_plant_pot.png [new file with mode: 0644]
textures/xdecor_plant_pot_bottom.png [deleted file]
textures/xdecor_plant_pot_sides.png [deleted file]
textures/xdecor_plant_pot_top.png [deleted file]

index 1982170e9d7a9231d6ea697ca90a2904d9133473..35ddc6e4d90db5b6f5553f677c66064098a1f5fe 100644 (file)
--- a/nodes.lua
+++ b/nodes.lua
@@ -407,7 +407,7 @@ local flowers = {"dandelion_white", "dandelion_yellow", "geranium",
 
 for _, f in pairs(flowers) do
        xdecor.register("potted_"..f, {
-               description = "Potted Flowers ("..f..")",
+               description = string.gsub("Potted Flowers ("..f..")", "_", " "),
                walkable = false,
                groups = {dig_immediate=3, flammable=3, plant=1, flower=1},
                tiles = {"xdecor_"..f.."_pot.png"},
@@ -441,10 +441,12 @@ xdecor.register("painting", {
 
 xdecor.register("plant_pot", {
        description = "Plant Pot",
+       drawtype = "plantlike",
+       inventory_image = "xdecor_plant_pot.png",
+       wield_image = "xdecor_plant_pot.png",
        groups = {snappy=3},
-       tiles = {"xdecor_plant_pot_top.png", "xdecor_plant_pot_bottom.png",
-                       "xdecor_plant_pot_sides.png"},
-       sounds = default.node_sound_stone_defaults(),
+       tiles = {"xdecor_plant_pot.png"},
+       sounds = default.node_sound_stone_defaults()
 })
 
 xdecor.register("metal_cabinet", {
diff --git a/textures/xdecor_plant_pot.png b/textures/xdecor_plant_pot.png
new file mode 100644 (file)
index 0000000..71a731d
Binary files /dev/null and b/textures/xdecor_plant_pot.png differ
diff --git a/textures/xdecor_plant_pot_bottom.png b/textures/xdecor_plant_pot_bottom.png
deleted file mode 100644 (file)
index 51e8512..0000000
Binary files a/textures/xdecor_plant_pot_bottom.png and /dev/null differ
diff --git a/textures/xdecor_plant_pot_sides.png b/textures/xdecor_plant_pot_sides.png
deleted file mode 100644 (file)
index 4850e7c..0000000
Binary files a/textures/xdecor_plant_pot_sides.png and /dev/null differ
diff --git a/textures/xdecor_plant_pot_top.png b/textures/xdecor_plant_pot_top.png
deleted file mode 100644 (file)
index 6958934..0000000
Binary files a/textures/xdecor_plant_pot_top.png and /dev/null differ