addition - applewood slabs

This commit is contained in:
Capricornus 2017-06-30 00:31:20 +02:00 committed by darkrose
parent 1aae758c0b
commit c84b44a185
2 changed files with 36 additions and 1 deletions

View File

@ -505,6 +505,7 @@ MapNode mapnode_translate_to_internal(MapNode n_from, u8 version);
#define CONTENT_GLASS_YELLOW_SLAB 0xA0E
#define CONTENT_GLASS_BLACK_SLAB 0xA0F
#define CONTENT_LIMESTONE_SLAB 0xA10
#define CONTENT_APPLEWOOD_SLAB 0xA11
// stairs
#define CONTENT_ROUGHSTONE_STAIR 0xA20
#define CONTENT_MOSSYCOBBLE_STAIR 0xA21
@ -534,6 +535,7 @@ MapNode mapnode_translate_to_internal(MapNode n_from, u8 version);
#define CONTENT_GLASS_YELLOW_SLAB_UD 0xA4E
#define CONTENT_GLASS_BLACK_SLAB_UD 0xA4F
#define CONTENT_LIMESTONE_SLAB_UD 0xA50
#define CONTENT_APPLEWOOD_SLAB_UD 0xA51
// upside down stairs
#define CONTENT_ROUGHSTONE_STAIR_UD 0xA60
#define CONTENT_MOSSYCOBBLE_STAIR_UD 0xA61
@ -779,4 +781,3 @@ MapNode mapnode_translate_to_internal(MapNode n_from, u8 version);
#define CONTENT_CIRCUIT_MAX 0xFFF
#endif

View File

@ -103,6 +103,25 @@ void content_mapnode_slab(bool repeat)
content_list_add("craftguide",i,1,0);
content_list_add("creative",i,1,0);
i = CONTENT_APPLEWOOD_SLAB;
f = &content_features(i);
f->description = gettext("Apple Wood Slab");
f->setAllTextures("applewood.png");
f->draw_type = CDT_NODEBOX;
f->is_ground_content = true;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->special_alternate_node = CONTENT_APPLEWOOD;
content_nodebox_slab(f);
f->setInventoryTextureNodeBox(i,"applewood.png", "applewood.png", "applewood.png");
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 30;
f->type = CMT_WOOD;
f->dig_time = 0.75;
f->suffocation_per_second = 0;
crafting::setRow3Recipe(CONTENT_APPLEWOOD,CONTENT_APPLEWOOD_SLAB);
content_list_add("craftguide",i,1,0);
content_list_add("creative",i,1,0);
i = CONTENT_WOOD_SLAB;
f = &content_features(i);
f->description = gettext("Wood Slab");
@ -461,6 +480,21 @@ void content_mapnode_slab(bool repeat)
f->dig_time = 1.0;
f->suffocation_per_second = 0;
i = CONTENT_APPLEWOOD_SLAB_UD;
f = &content_features(i);
f->setAllTextures("applewood.png");
f->draw_type = CDT_SLABLIKE;
f->is_ground_content = true;
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_APPLEWOOD_SLAB)+" 1";
f->special_alternate_node = CONTENT_APPLEWOOD;
content_nodebox_slabud(f);
f->setInventoryTextureNodeBox(i,"applewood.png", "applewood.png", "applewood.png");
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 30;
f->type = CMT_WOOD;
f->dig_time = 0.75;
f->suffocation_per_second = 0;
i = CONTENT_WOOD_SLAB_UD;
f = &content_features(i);
f->setAllTextures("wood.png");