diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-09-26 22:41:06 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-09-26 22:41:06 +0300 |
commit | a7833cca22bbb923efbc01fd0f820318a613eca6 (patch) | |
tree | b8da72d3e36b70f1cd018615ed38de5d009cfe57 /src/content_mapnode.cpp | |
parent | 08ac3454ccb473156d39ebf543d617c1541588ca (diff) | |
parent | bc01ae4cbd6e9ba2bcc0b75bab8ba5d99fcc4e34 (diff) | |
download | minetest-a7833cca22bbb923efbc01fd0f820318a613eca6.tar.gz minetest-a7833cca22bbb923efbc01fd0f820318a613eca6.tar.bz2 minetest-a7833cca22bbb923efbc01fd0f820318a613eca6.zip |
Merge remote-tracking branch 'marktraceur/master'
Diffstat (limited to 'src/content_mapnode.cpp')
-rw-r--r-- | src/content_mapnode.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/content_mapnode.cpp b/src/content_mapnode.cpp index a573ca141..8f2c4bd50 100644 --- a/src/content_mapnode.cpp +++ b/src/content_mapnode.cpp @@ -244,6 +244,8 @@ void content_mapnode_init() { f->setAllTextures("[noalpha:leaves.png"); } + f->extra_dug_item = std::string("MaterialItem2 ")+itos(CONTENT_SAPLING)+" 1"; + f->extra_dug_item_rarity = 20; f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1"; setWoodLikeDiggingProperties(f->digging_properties, 0.15); @@ -651,6 +653,18 @@ void content_mapnode_init() f->setInventoryTexture("nc_rb.png"); f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1"; setStoneLikeDiggingProperties(f->digging_properties, 3.0); + + i = CONTENT_SAPLING; + f = &content_features(i); + f->param_type = CPT_LIGHT; + f->setAllTextures("sapling.png"); + f->setInventoryTexture("sapling.png"); + f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1"; + f->light_propagates = true; + f->air_equivalent = false; + f->solidness = 0; // drawn separately, makes no faces + f->walkable = false; + f->digging_properties.set("", DiggingProperties(true, 0.0, 0)); i = CONTENT_APPLE; f = &content_features(i); |