From 507d4cdff1f675e91908f1070f656f1ef966bdc0 Mon Sep 17 00:00:00 2001 From: jp Date: Fri, 20 Nov 2015 11:59:21 +0100 Subject: [PATCH] Add crate --- crafts.lua | 9 +++++++++ nodes.lua | 9 +++++++++ textures/xdecor_crate.png | Bin 0 -> 567 bytes 3 files changed, 18 insertions(+) create mode 100644 textures/xdecor_crate.png 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 0000000000000000000000000000000000000000..8af0fedf6b3f5d1fa99ab4ea737cb85f7143d886 GIT binary patch literal 567 zcmV-70?7S|P)TjERs*ax68IoL$qyuAVl*(wbLKkt_T!X`Mq;NIC!Oj_ zovPy3FP~jXfw^jtELZPy3`~J80H{qvqzjUwOPi@m0Prw+3Rap+iopOF>5`H7cj8X6 z^%hsF5x{@%kl<1pvW=zq7v45*g+uY7imXBi@qW!qrzJ0Th6q~CwCsC?*F~Kf^y?27vUV4UkVw~N!G$FWGdyxtt`4**=q)y<_Lni*ptfT^_FbbhkDeVze)zx{Kx zH*`iLjEF} zJF!#`MiMESB$7s^Kmf6~X!SG&vtJL>axcABgXF((`jV*4V+?dDm;w0s{&0xayEzp% zG6v4YcL!^(`%M85bM;y literal 0 HcmV?d00001