Add marble walls
parent
7cbdd101db
commit
eaba86594e
|
@ -94,7 +94,8 @@ MapNode mapnode_translate_to_internal(MapNode n_from, u8 version);
|
|||
#define CONTENT_PINE_FENCE 0x02B
|
||||
// more walls
|
||||
#define CONTENT_LIMESTONE_WALL 0x02C
|
||||
// FREE 0x02D-0x07C
|
||||
#define CONTENT_MARBLE_WALL 0x02D
|
||||
// FREE 0x02E-0x07C
|
||||
// 0x7D-0x7F reserved values, air, ignore, etc
|
||||
#define CONTENT_CHAIR_CENTRE 0x080
|
||||
#define CONTENT_CHAIR_ENDL 0x081
|
||||
|
|
|
@ -1669,6 +1669,29 @@ void content_mapnode_special(bool repeat)
|
|||
lists::add("craftguide",i);
|
||||
lists::add("creative",i);
|
||||
|
||||
i = CONTENT_MARBLE_WALL;
|
||||
f = &content_features(i);
|
||||
f->description = wgettext("Marble Wall");
|
||||
f->setAllTextures("marble.png");
|
||||
f->light_propagates = true;
|
||||
f->jumpable = false;
|
||||
f->param_type = CPT_LIGHT;
|
||||
f->param2_type = CPT_SPECIAL;
|
||||
f->draw_type = CDT_WALLLIKE;
|
||||
f->is_ground_content = true;
|
||||
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
|
||||
f->air_equivalent = true; // grass grows underneath
|
||||
content_nodebox_wall_inv(f);
|
||||
content_nodebox_wall(f);
|
||||
f->setInventoryTextureNodeBox(i,"marble.png","marble.png","marble.png");
|
||||
f->special_alternate_node = CONTENT_MARBLE;
|
||||
f->type = CMT_STONE;
|
||||
f->hardness = 1.0;
|
||||
f->suffocation_per_second = 0;
|
||||
crafting::setWallRecipe(CONTENT_MARBLE,CONTENT_MARBLE_WALL);
|
||||
lists::add("craftguide",i);
|
||||
lists::add("creative",i);
|
||||
|
||||
i = CONTENT_TNT;
|
||||
f = &content_features(i);
|
||||
f->description = wgettext("TNT");
|
||||
|
|
Loading…
Reference in New Issue