diff --git a/crafts.lua b/crafts.lua index 9675eda..a540a30 100644 --- a/crafts.lua +++ b/crafts.lua @@ -80,6 +80,15 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "xdecor:crate", + recipe = { + {"group:wood", "group:wood", "group:stick"}, + {"group:wood", "group:stick", "group:wood"}, + {"group:stick", "group:wood", "group:wood"} + } +}) + minetest.register_craft({ output = "xdecor:mossycobble_wall_ln 6", recipe = { diff --git a/nodes.lua b/nodes.lua index 15049de..babac1f 100644 --- a/nodes.lua +++ b/nodes.lua @@ -266,6 +266,15 @@ for _, c in pairs(colors) do }) end +xdecor.register("crate", { + description = "Crate", + inventory = {size=24}, + infotext = "Crate", + tiles = {"xdecor_crate.png"}, + groups = {choppy=2, oddly_breakable_by_hand=1, flammable=3}, + sounds = default.node_sound_wood_defaults() +}) + xdecor.register("cushion", { description = "Cushion", tiles = {"xdecor_cushion.png"}, diff --git a/textures/xdecor_crate.png b/textures/xdecor_crate.png new file mode 100644 index 0000000..8af0fed Binary files /dev/null and b/textures/xdecor_crate.png differ