summaryrefslogtreecommitdiff
path: root/src/content_mapnode.cpp
diff options
context:
space:
mode:
authordarkrose <lisa@ltmnet.com>2011-09-22 19:11:48 +1000
committerdarkrose <lisa@ltmnet.com>2011-09-22 19:11:48 +1000
commit582e450bad08006dff141216351b81d3eb9270b7 (patch)
tree0c76a61f5e36f8e4414d220637ff90eacde4eb86 /src/content_mapnode.cpp
parentae6d83a41ed958b65ec7f6584d7b042ae6a6e51f (diff)
downloadminetest-582e450bad08006dff141216351b81d3eb9270b7.tar.gz
minetest-582e450bad08006dff141216351b81d3eb9270b7.tar.bz2
minetest-582e450bad08006dff141216351b81d3eb9270b7.zip
added locking chests - clean patch
Diffstat (limited to 'src/content_mapnode.cpp')
-rw-r--r--src/content_mapnode.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/content_mapnode.cpp b/src/content_mapnode.cpp
index 09a84156a..38c5099e4 100644
--- a/src/content_mapnode.cpp
+++ b/src/content_mapnode.cpp
@@ -573,6 +573,20 @@ void content_mapnode_init()
f->initial_metadata = new ChestNodeMetadata();
setWoodLikeDiggingProperties(f->digging_properties, 1.0);
+ i = CONTENT_LOCKABLE_CHEST;
+ f = &content_features(i);
+ f->param_type = CPT_FACEDIR_SIMPLE;
+ f->setAllTextures("chest_side.png");
+ f->setTexture(0, "chest_top.png");
+ f->setTexture(1, "chest_top.png");
+ f->setTexture(5, "chest_lock.png"); // Z-
+ f->setInventoryTexture("chest_lock.png");
+ //f->setInventoryTextureCube("chest_top.png", "chest_side.png", "chest_side.png");
+ f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
+ if(f->initial_metadata == NULL)
+ f->initial_metadata = new LockingChestNodeMetadata();
+ setWoodLikeDiggingProperties(f->digging_properties, 1.0);
+
i = CONTENT_FURNACE;
f = &content_features(i);
f->param_type = CPT_FACEDIR_SIMPLE;