aboutsummaryrefslogtreecommitdiff
path: root/src/content_mapnode.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-07-23 02:04:24 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-07-23 02:04:24 +0300
commit8993d9dd8321aad1243f4fb7fc55259c3747224f (patch)
tree90ad8e88e5480d5864277d4fca0dd9c6fd159a55 /src/content_mapnode.cpp
parentfdf14471c6fd56003ba32943db5c6eee67bd5e60 (diff)
downloadminetest-8993d9dd8321aad1243f4fb7fc55259c3747224f.tar.gz
minetest-8993d9dd8321aad1243f4fb7fc55259c3747224f.tar.bz2
minetest-8993d9dd8321aad1243f4fb7fc55259c3747224f.zip
Jungle biome/whatever thing
Diffstat (limited to 'src/content_mapnode.cpp')
-rw-r--r--src/content_mapnode.cpp24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/content_mapnode.cpp b/src/content_mapnode.cpp
index 79e10fd61..be7f95adc 100644
--- a/src/content_mapnode.cpp
+++ b/src/content_mapnode.cpp
@@ -136,12 +136,34 @@ void content_mapnode_init()
f->dug_item = std::string("MaterialItem ")+itos(i)+" 1";
setWoodLikeDiggingProperties(f->digging_properties, 1.0);
+ i = CONTENT_JUNGLETREE;
+ f = &content_features(i);
+ f->setAllTextures("jungletree.png");
+ f->setTexture(0, "jungletree_top.png");
+ f->setTexture(1, "jungletree_top.png");
+ f->param_type = CPT_MINERAL;
+ //f->is_ground_content = true;
+ f->dug_item = std::string("MaterialItem ")+itos(i)+" 1";
+ setWoodLikeDiggingProperties(f->digging_properties, 1.0);
+
+ i = CONTENT_JUNGLEGRASS;
+ f = &content_features(i);
+ f->setInventoryTexture("junglegrass.png");
+ f->light_propagates = true;
+ f->param_type = CPT_LIGHT;
+ //f->is_ground_content = true;
+ f->air_equivalent = false; // grass grows underneath
+ f->dug_item = std::string("MaterialItem ")+itos(i)+" 1";
+ f->solidness = 0; // drawn separately, makes no faces
+ f->walkable = false;
+ setWoodLikeDiggingProperties(f->digging_properties, 0.10);
+
i = CONTENT_LEAVES;
f = &content_features(i);
f->light_propagates = true;
//f->param_type = CPT_MINERAL;
f->param_type = CPT_LIGHT;
- f->is_ground_content = true;
+ //f->is_ground_content = true;
if(new_style_leaves)
{
f->solidness = 0; // drawn separately, makes no faces