forked from oerkki/voxelands
add some random drops to dirt nodes
This commit is contained in:
parent
174689d99b
commit
f409876950
|
@ -1076,6 +1076,8 @@ void content_mapnode_init()
|
|||
f->draw_type = CDT_CUBELIKE;
|
||||
f->is_ground_content = true;
|
||||
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);
|
||||
|
||||
i = CONTENT_GRASS_FOOTSTEPS;
|
||||
|
@ -1098,6 +1100,8 @@ void content_mapnode_init()
|
|||
f->draw_type = CDT_CUBELIKE;
|
||||
f->is_ground_content = true;
|
||||
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);
|
||||
|
||||
i = CONTENT_FARM_DIRT;
|
||||
|
|
|
@ -2209,6 +2209,7 @@ void ServerEnvironment::step(float dtime)
|
|||
if (testnode.getContent() == CONTENT_WATERSOURCE) {
|
||||
n_top1.setContent(CONTENT_JUNGLEGRASS);
|
||||
m_map->addNodeWithEvent(p+v3s16(0,1,0), n_top1);
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue