add some random drops to dirt nodes

This commit is contained in:
darkrose 2014-01-11 15:52:04 +10:00
parent 174689d99b
commit f409876950
2 changed files with 5 additions and 0 deletions

View File

@ -1076,6 +1076,8 @@ void content_mapnode_init()
f->draw_type = CDT_CUBELIKE; f->draw_type = CDT_CUBELIKE;
f->is_ground_content = true; f->is_ground_content = true;
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_MUD)+" 1"; f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_MUD)+" 1";
f->extra_dug_item = std::string("MaterialItem2 ")+itos(CONTENT_WILDGRASS_SHORT)+" 1";
f->extra_dug_item_rarity = 10;
setDirtLikeDiggingProperties(f->digging_properties, 1.0); setDirtLikeDiggingProperties(f->digging_properties, 1.0);
i = CONTENT_GRASS_FOOTSTEPS; i = CONTENT_GRASS_FOOTSTEPS;
@ -1098,6 +1100,8 @@ void content_mapnode_init()
f->draw_type = CDT_CUBELIKE; f->draw_type = CDT_CUBELIKE;
f->is_ground_content = true; f->is_ground_content = true;
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_MUD)+" 1"; f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_MUD)+" 1";
f->extra_dug_item = std::string("CraftItem snow_ball 1");
f->extra_dug_item_rarity = 5;
setDirtLikeDiggingProperties(f->digging_properties, 1.0); setDirtLikeDiggingProperties(f->digging_properties, 1.0);
i = CONTENT_FARM_DIRT; i = CONTENT_FARM_DIRT;

View File

@ -2209,6 +2209,7 @@ void ServerEnvironment::step(float dtime)
if (testnode.getContent() == CONTENT_WATERSOURCE) { if (testnode.getContent() == CONTENT_WATERSOURCE) {
n_top1.setContent(CONTENT_JUNGLEGRASS); n_top1.setContent(CONTENT_JUNGLEGRASS);
m_map->addNodeWithEvent(p+v3s16(0,1,0), n_top1); m_map->addNodeWithEvent(p+v3s16(0,1,0), n_top1);
found = true;
break; break;
} }
} }