forked from oerkki/voxelands
add marble
This commit is contained in:
parent
a211182511
commit
a0df109ce4
Binary file not shown.
After Width: | Height: | Size: 530 B |
|
@ -206,14 +206,27 @@ void content_mapnode_init(bool repeat)
|
|||
f->draw_type = CDT_CUBELIKE;
|
||||
f->is_ground_content = true;
|
||||
f->often_contains_mineral = true;
|
||||
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_LIMESTONE)+" 1";
|
||||
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
|
||||
f->cook_result = std::string("MaterialItem2 ")+itos(CONTENT_MARBLE)+" 1";
|
||||
f->type = CMT_STONE;
|
||||
f->hardness = 0.6;
|
||||
if (invisible_stone)
|
||||
f->solidness = 0; // For debugging, hides regular stone
|
||||
lists::add("creative",i);
|
||||
lists::add("cooking",idd);
|
||||
lists::add("decrafting",i);
|
||||
|
||||
i = CONTENT_MARBLE;
|
||||
f = &content_features(i);
|
||||
f->description = wgettext("Marble");
|
||||
f->setAllTextures("marble.png");
|
||||
f->setInventoryTextureCube("marble.png", "marble.png", "marble.png");
|
||||
f->draw_type = CDT_CUBELIKE;
|
||||
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
|
||||
f->type = CMT_STONE;
|
||||
f->hardness = 1.0;
|
||||
lists::add("creative",i);
|
||||
|
||||
i = CONTENT_ROCK;
|
||||
f = &content_features(i);
|
||||
f->description = wgettext("Rock");
|
||||
|
|
|
@ -57,7 +57,8 @@ MapNode mapnode_translate_to_internal(MapNode n_from, u8 version);
|
|||
#define CONTENT_TABLE 0x008
|
||||
#define CONTENT_WATERSOURCE 0x009
|
||||
#define CONTENT_FORGE_FIRE 0x00A
|
||||
// FREE 0x00B-0x00C
|
||||
#define CONTENT_MARBLE 0x00B
|
||||
// FREE 0x00C
|
||||
#define CONTENT_SAFE 0x00D
|
||||
#define CONTENT_SIGN_WALL 0x00E
|
||||
#define CONTENT_CHEST 0x00F
|
||||
|
|
Loading…
Reference in New Issue