diff options
author | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2011-06-03 13:12:56 +0200 |
---|---|---|
committer | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2011-06-03 13:12:56 +0200 |
commit | 8835433b5ef23c22b3b84045af6f97dc52883ef1 (patch) | |
tree | 4e3bbf7350e13a4f0cc59cc70a8bc86797476f11 /src/mapnode.cpp | |
parent | 176ac0b0bfefaecdfce7956ea351dc23ebabde99 (diff) | |
download | minetest-8835433b5ef23c22b3b84045af6f97dc52883ef1.tar.gz minetest-8835433b5ef23c22b3b84045af6f97dc52883ef1.tar.bz2 minetest-8835433b5ef23c22b3b84045af6f97dc52883ef1.zip |
+ paper, book, bookshelf
Diffstat (limited to 'src/mapnode.cpp')
-rw-r--r-- | src/mapnode.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mapnode.cpp b/src/mapnode.cpp index 954c85f2f..7e97a8d04 100644 --- a/src/mapnode.cpp +++ b/src/mapnode.cpp @@ -251,6 +251,17 @@ void init_mapnode() f->solidness = 0; // drawn separately, makes no faces f->walkable = false; + i = CONTENT_BOOKSHELF; + f = &g_content_features[i]; + f->setAllTextures("bookshelf.png"); + f->setTexture(0, "wood.png"); + f->setTexture(1, "wood.png"); + // FIXME: setInventoryTextureCube() only cares for the first texture + f->setInventoryTextureCube("bookshelf.png", "bookshelf.png", "bookshelf.png"); + //f->setInventoryTextureCube("wood.png", "bookshelf.png", "bookshelf.png"); + f->param_type = CPT_MINERAL; + f->is_ground_content = true; + i = CONTENT_GLASS; f = &g_content_features[i]; f->light_propagates = true; |