diff options
author | sfan5 <sfan5@live.de> | 2011-09-11 17:50:44 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2011-09-11 17:50:44 +0200 |
commit | c0caedc3730085b3261f09e1df23cc1bdd2fce79 (patch) | |
tree | 4d278c8dd78da08caa60e70326ff49353221f05d /src/content_mapnode.cpp | |
parent | d28ea57083481bff8180249fc8b43f7ed7b18545 (diff) | |
download | minetest-c0caedc3730085b3261f09e1df23cc1bdd2fce79.tar.gz minetest-c0caedc3730085b3261f09e1df23cc1bdd2fce79.tar.bz2 minetest-c0caedc3730085b3261f09e1df23cc1bdd2fce79.zip |
Added Apple Trees
Diffstat (limited to 'src/content_mapnode.cpp')
-rw-r--r-- | src/content_mapnode.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/content_mapnode.cpp b/src/content_mapnode.cpp index 51f2f9736..37e79829f 100644 --- a/src/content_mapnode.cpp +++ b/src/content_mapnode.cpp @@ -1,4 +1,4 @@ -/* + /* Minetest-c55 Copyright (C) 2010-2011 celeron55, Perttu Ahola <celeron55@gmail.com> @@ -630,6 +630,18 @@ void content_mapnode_init() f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1"; setStoneLikeDiggingProperties(f->digging_properties, 3.0); + i = CONTENT_APPLE; + f = &content_features(i); + f->setInventoryTexture("apple.png"); + f->param_type = CPT_LIGHT; + f->light_propagates = true; + f->sunlight_propagates = true; + f->solidness = 0; // drawn separately, makes no faces + f->walkable = false; + f->air_equivalent = true; + f->dug_item = std::string("CraftItem apple 1"); + f->digging_properties.set("", DiggingProperties(true, 0.0, 0)); + // NOTE: Remember to add frequently used stuff to the texture atlas in tile.cpp |