diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-09-16 19:09:13 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-09-16 19:09:13 +0300 |
commit | b22cb69a155d586791341d4df90060b8220361e1 (patch) | |
tree | 9ba2ec3a1f675271f05509bfe1384514a83c1772 /src/content_mapnode.cpp | |
parent | 40707e3c5bc730ebc5780b1c545c5daeb3353a42 (diff) | |
parent | 88dc8c694ed0e182b4d5ace4fcd94a0a82946c31 (diff) | |
download | minetest-b22cb69a155d586791341d4df90060b8220361e1.tar.gz minetest-b22cb69a155d586791341d4df90060b8220361e1.tar.bz2 minetest-b22cb69a155d586791341d4df90060b8220361e1.zip |
Merge remote-tracking branch 'sfan5/apple-trees'
Diffstat (limited to 'src/content_mapnode.cpp')
-rw-r--r-- | src/content_mapnode.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/content_mapnode.cpp b/src/content_mapnode.cpp index 51f2f9736..09a84156a 100644 --- a/src/content_mapnode.cpp +++ b/src/content_mapnode.cpp @@ -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 |