]> git.lizzy.rs Git - xdecor.git/commitdiff
Add new blocks
authorkilbith <jeanpatrick.guerrero@gmail.com>
Wed, 10 Jun 2015 22:09:37 +0000 (00:09 +0200)
committerkilbith <jeanpatrick.guerrero@gmail.com>
Wed, 10 Jun 2015 22:12:03 +0000 (00:12 +0200)
crafts.lua
depends.txt
nodes.lua
textures/xdecor_empty_shelf.png [new file with mode: 0644]
textures/xdecor_stone_rune.png [new file with mode: 0644]
textures/xdecor_stone_tile.png [new file with mode: 0644]

index 192dbead5418339dd0815f652cc55c15c2c49001..429397000a89569437e22d736742c38497d9538c 100644 (file)
@@ -32,6 +32,11 @@ minetest.register_craft({ output = "xdecor:chair", recipe = {
 minetest.register_craft({ output = "xdecor:coalstone_tile 8", recipe = {
        {"default:coalblock", "default:stone"},
        {"default:stone", "default:coalblock"} } })
+       
+minetest.register_craft({ output = "xdecor:empty_shelf", recipe = {
+       {"group:wood", "group:wood", "group:wood"},
+       {"", "", ""},
+       {"group:wood", "group:wood", "group:wood"} } })
 
 minetest.register_craft({ output = "xdecor:fence_wrought_iron 2", recipe = {
        {"default:iron_lump", "default:iron_lump", "default:iron_lump"},
@@ -56,6 +61,15 @@ minetest.register_craft({ output = "xdecor:rope 2", recipe = {
        {"farming:string"},
        {"farming:string"},
        {"farming:string"} } })
+       
+minetest.register_craft({ output = "xdecor:stone_tile 2", recipe = {
+       {"default:cobble", "default:cobble"},
+       {"default:cobble", "default:cobble"} } })
+       
+       minetest.register_craft({ output = "xdecor:stone_rune 4", recipe = {
+       {"default:stone", "default:stone", "default:stone"},
+       {"default:stone", "", "default:stone"},
+       {"default:stone", "default:stone", "default:stone"} } })
 
 minetest.register_craft({ output = "xdecor:table", recipe = {
        {"stairs:slab_wood", "stairs:slab_wood", "stairs:slab_wood"},
index 41bb35a6a1e85a3ae5b1e9858df5bbdb2847b15e..4ad96d51599fb734101f6229f6c1a8a509bd6255 100644 (file)
@@ -1,2 +1 @@
 default
-moreblocks?
index ae1d9ea1206ab2ac19f0ab17ab00c2dc0af8b41a..f60f5ae8163c0aedf34e9ee8469abcbcef187808 100644 (file)
--- a/nodes.lua
+++ b/nodes.lua
@@ -1,15 +1,15 @@
 xdecor.register("barrel", {
-       description = "Barrel", inventory = {size=24},
+       description = "Barrel", inventory = {size=24}, infotext = "Barrel",
        tiles = {"xdecor_barrel_top.png", "xdecor_barrel_sides.png"},
        groups = {snappy=3}, sounds = default.node_sound_wood_defaults() })
 
 xdecor.register("cabinet", {
-       description = "Cabinet", inventory = {size=24},
+       description = "Cabinet", inventory = {size=24}, infotext = "Cabinet",
        tiles = {"default_wood.png", "xdecor_cabinet_front.png"},
        groups = {snappy=3}, sounds = default.node_sound_wood_defaults() })
 
 xdecor.register("cabinet_half", {
-       description = "Half Cabinet", inventory = {size=8},
+       description = "Half Cabinet", inventory = {size=8}, infotext = "Half Cabinet",
        tiles = {"default_wood.png", "xdecor_cabinet_half_front.png"},
        groups = {snappy=3}, sounds = default.node_sound_wood_defaults(),
        node_box = {type="fixed", fixed={{-0.5, 0, -0.5, 0.5, 0.5, 0.5}}} })
@@ -26,13 +26,14 @@ xdecor.register("candle", {
                wall_side={-0.5, -0.35, -0.15, -0.15, 0.4, 0.15}} })
 
 xdecor.register("cardboard_box", {
-       description = "Cardboard Box", groups = {snappy=3}, inventory = {size=8},
+       description = "Cardboard Box", groups = {snappy=3}, inventory = {size=8}, infotext = "Cardboard Box",
        tiles = {"xdecor_cardbox_top.png", "xdecor_cardbox_top.png", "xdecor_cardbox_sides.png"},
        node_box = {type="fixed", fixed={{-0.3125, -0.5, -0.3125, 0.3125, 0, 0.3125}}} })
 
 xdecor.register("cauldron", {
        description = "Cauldron", groups = {snappy=1},
-       tiles = {{name="xdecor_cauldron_top_anim.png", animation={type="vertical_frames", length=3.0}}, "xdecor_cauldron_sides.png"} })
+       tiles = {{name="xdecor_cauldron_top_anim.png",
+               animation={type="vertical_frames", length=3.0}}, "xdecor_cauldron_sides.png"} })
 
 xdecor.register("chair", {
        description = "Chair", tiles = {"xdecor_wood.png"},
@@ -84,11 +85,16 @@ xdecor.register("cushion", {
        description = "Cushion", tiles = {"xdecor_cushion.png"},
        groups = {snappy=3}, on_place = minetest.rotate_node,
        node_box = {type="fixed", fixed={{-0.5, -0.5, -0.5, 0.5, 0, 0.5}}} })
+       
+xdecor.register("empty_shelf", {
+       description = "Empty Shelf", inventory = {size=24}, infotext = "Empty Shelf",
+       tiles = {"default_wood.png", "xdecor_empty_shelf.png"},
+       groups = {snappy=3}, sounds = default.node_sound_wood_defaults() })
 
 xdecor.register("fence_wrought_iron", {
-       description = "Wrought Iron Fence", drawtype = "fencelike", tiles = {"default_stone.png^[colorize:#2a2420:180"},
-       inventory_image = "default_fence_overlay.png^default_stone.png^[colorize:#2a2420:160^default_fence_overlay.png^[makealpha:255,126,126",
-       groups = {snappy=3} })
+       description = "Wrought Iron Fence", drawtype = "fencelike", 
+       tiles = {"default_stone.png^[colorize:#2a2420:180"}, groups = {snappy=3},
+       inventory_image = "default_fence_overlay.png^default_stone.png^[colorize:#2a2420:160^default_fence_overlay.png^[makealpha:255,126,126" })
 
 xdecor.register("fire", {
        description = "Fake Fire", light_source = 14, walkable = false,
@@ -113,9 +119,9 @@ minetest.register_tool("xdecor:flint_steel", {
 flowerstype = {"dandelion_white", "dandelion_yellow", "geranium", "rose", "tulip", "viola"}
 for _, f in ipairs(flowerstype) do
 xdecor.register("potted_"..f, {
-       description = "Potted Flowers ("..f..")", walkable = false,
+       description = "Potted Flowers ("..f..")", walkable = false, groups = {dig_immediate=3},
        tiles = {"xdecor_"..f.."_pot.png"}, inventory_image = "xdecor_"..f.."_pot.png",
-       drawtype = "plantlike", groups = {dig_immediate=3}, sounds = default.node_sound_leaves_defaults() })
+       drawtype = "plantlike", sounds = default.node_sound_leaves_defaults() })
 
 minetest.register_craft({
        type = "shapeless", output = "xdecor:potted_"..f.." 2",
@@ -133,11 +139,11 @@ xdecor.register("plant_pot", {
        tiles = {"xdecor_plant_pot_top.png", "xdecor_plant_pot_sides.png"} })
 
 xdecor.register("moonbrick", {
-       description = "Moonbrick", tiles = {"xdecor_moonbrick.png"},
+       description = "Moonbrick", tiles = {"xdecor_moonbrick.png"}, 
        groups = {snappy=3}, sounds = default.node_sound_stone_defaults() })
 
 xdecor.register("multishelf", {
-       description = "Multishelf", inventory = {size=24},
+       description = "Multishelf", inventory = {size=24}, infotext = "Multishelf",
        tiles = {"default_wood.png", "xdecor_multishelf.png"},
        groups = {snappy=3}, sounds = default.node_sound_wood_defaults() })
 
@@ -146,6 +152,14 @@ xdecor.register("rope", {
        description = "Rope", walkable = false, climbable = true,
        tiles = {"xdecor_rope.png"}, inventory_image = "xdecor_rope_inv.png",
        drawtype = "plantlike", groups = {dig_immediate=3}, selection_box = rope_sbox })
+       
+xdecor.register("stone_rune", {
+       description = "Stone Rune", tiles = {"xdecor_stone_rune.png"},
+       groups = {snappy=3}, sounds = default.node_sound_stone_defaults() })
+       
+xdecor.register("stone_tile", {
+       description = "Stone Tile", tiles = {"xdecor_stone_tile.png"},
+       groups = {snappy=3}, sounds = default.node_sound_stone_defaults() })
 
 xdecor.register("table", {
        description = "Table", tiles = {"xdecor_wood.png"},
@@ -165,8 +179,7 @@ xdecor.register("wood_tile", {
        groups = {snappy=3}, sounds = default.node_sound_wood_defaults() })
 
 xdecor.register("workbench", {
-       description = "Work Bench", inventory = {size=24},
-       groups = {snappy=3}, sounds = default.node_sound_wood_defaults(),
-       tiles = {"xdecor_workbench_top.png", "xdecor_workbench_top.png",
-               "xdecor_workbench_sides.png", "xdecor_workbench_sides.png",
+       description = "Work Bench", inventory = {size=24}, infotext = "Work Bench",
+       sounds = default.node_sound_wood_defaults(), groups = {snappy=3}, 
+       tiles = {"xdecor_workbench_top.png", "xdecor_workbench_top.png", "xdecor_workbench_sides.png", "xdecor_workbench_sides.png",
                "xdecor_workbench_front.png", "xdecor_workbench_front.png"} })
diff --git a/textures/xdecor_empty_shelf.png b/textures/xdecor_empty_shelf.png
new file mode 100644 (file)
index 0000000..15f9661
Binary files /dev/null and b/textures/xdecor_empty_shelf.png differ
diff --git a/textures/xdecor_stone_rune.png b/textures/xdecor_stone_rune.png
new file mode 100644 (file)
index 0000000..76e34d2
Binary files /dev/null and b/textures/xdecor_stone_rune.png differ
diff --git a/textures/xdecor_stone_tile.png b/textures/xdecor_stone_tile.png
new file mode 100644 (file)
index 0000000..510c1b1
Binary files /dev/null and b/textures/xdecor_stone_tile.png differ