stone tiles and parquetry

This commit is contained in:
darkrose 2015-02-13 05:55:06 +10:00
parent 1f49f7da14
commit 9fc5256b5a
5 changed files with 48 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 348 B

After

Width:  |  Height:  |  Size: 736 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 802 B

BIN
data/textures/wood_tile.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 801 B

View File

@ -2355,4 +2355,49 @@ void content_mapnode_init(bool repeat)
lists::add("craftguide",i);
lists::add("creative",i);
i = CONTENT_STONE_TILE;
f = &content_features(i);
f->description = wgettext("Stone Tiles");
f->setAllTextures("stone_tile.png");
f->param_type = CPT_LIGHT;
f->draw_type = CDT_NODEBOX;
f->is_ground_content = true;
f->light_propagates = true;
f->sunlight_propagates = true;
f->solidness = 0; // drawn separately, makes no faces
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
content_nodebox_carpet(f);
f->setInventoryTextureNodeBox(i,"stone_tile.png", "stone_tile.png", "stone_tile.png");
f->fuel_time = 5;
f->type = CMT_STONE;
f->hardness = 0.5;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
crafting::setTileRecipe(CONTENT_STONE,CONTENT_STONE_TILE);
lists::add("craftguide",i);
lists::add("creative",i);
i = CONTENT_WOOD_TILE;
f = &content_features(i);
f->description = wgettext("Wood Tiles");
f->setAllTextures("wood_tile.png");
f->param_type = CPT_LIGHT;
f->draw_type = CDT_NODEBOX;
f->is_ground_content = true;
f->light_propagates = true;
f->sunlight_propagates = true;
f->solidness = 0; // drawn separately, makes no faces
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
content_nodebox_carpet(f);
f->setInventoryTextureNodeBox(i,"wood_tile.png", "wood_tile.png", "wood_tile.png");
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 5;
f->type = CMT_WOOD;
f->hardness = 0.5;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
crafting::setTileRecipe(CONTENT_WOOD,CONTENT_WOOD_TILE);
lists::add("craftguide",i);
lists::add("creative",i);
}

View File

@ -540,7 +540,9 @@ MapNode mapnode_translate_to_internal(MapNode n_from, u8 version);
#define CONTENT_CONIFER_TREE 0xC09
#define CONTENT_LIFE_SUPPORT 0xC0A
#define CONTENT_INCINERATOR_ACTIVE 0xC0B
// FREE C0B-C0F
#define CONTENT_STONE_TILE 0xC0C
#define CONTENT_WOOD_TILE 0xC0D
// FREE C0E-C0F
// beds
#define CONTENT_BED_HEAD 0xC10
#define CONTENT_BED_FOOT 0xC11