summaryrefslogtreecommitdiff
path: root/chest.lua
diff options
context:
space:
mode:
authorBremaweb <brandon@bremaweb.com>2013-11-20 10:32:54 -0800
committerBremaweb <brandon@bremaweb.com>2013-11-20 10:32:54 -0800
commit6b22f3d60f1b942485ccbb6dc5417fbe65119db9 (patch)
tree29e6bf5c9a0754a5a2938ea5b802b3059d107aba /chest.lua
parent242874cbff76e30f342fd689efa76be898f52cfc (diff)
parent8ea999ded5fa15325b56a334261f34cd2afb19c2 (diff)
Merge pull request #6 from t4im/master
facedir fix and alternate crafting recipe (for upgrading a default chest)
Diffstat (limited to 'chest.lua')
-rw-r--r--chest.lua23
1 files changed, 20 insertions, 3 deletions
diff --git a/chest.lua b/chest.lua
index 8746355..93373d3 100644
--- a/chest.lua
+++ b/chest.lua
@@ -4,6 +4,7 @@ minetest.register_node("landrush:shared_chest", {
description = "Land Rush Shared Chest",
tiles = {"landrush_shared_chest_top.png", "landrush_shared_chest_top.png", "landrush_shared_chest_side.png", "landrush_shared_chest_side.png", "landrush_shared_chest_side.png", "landrush_shared_chest_front.png"},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2,tubedevice=1,tubedevice_receiver=1},
+ paramtype2 = "facedir",
legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(),
@@ -85,8 +86,24 @@ minetest.register_node("landrush:shared_chest", {
minetest.register_craft({
output = 'landrush:shared_chest',
recipe = {
- {'default:wood','default:wood','default:wood'},
- {'default:wood','landrush:landclaim','default:wood'},
- {'default:wood','default:wood','default:wood'}
+ {'group:wood','group:wood','group:wood'},
+ {'group:wood','landrush:landclaim','group:wood'},
+ {'group:wood','group:wood','group:wood'}
+ }
+})
+
+minetest.register_craft({
+ output = 'landrush:shared_chest',
+ recipe = {
+ {'landrush:landclaim'},
+ {'default:chest'}
+ }
+})
+
+minetest.register_craft({
+ output = 'landrush:shared_chest',
+ recipe = {
+ {'landrush:landclaim'},
+ {'default:chest_locked'}
}
}) \ No newline at end of file