forked from oerkki/voxelands
fix leaf drops, add desert sandstone
This commit is contained in:
parent
821e83bfe9
commit
9665cc2588
Binary file not shown.
Before Width: | Height: | Size: 661 B |
Binary file not shown.
Before Width: | Height: | Size: 679 B |
|
@ -608,48 +608,87 @@ void content_mapnode_init(bool repeat)
|
|||
|
||||
i = CONTENT_SANDSTONE;
|
||||
f = &content_features(i);
|
||||
f->description = gettext("Sand Stone");
|
||||
f->description = gettext("Sandstone");
|
||||
f->setAllTextures("sandstone.png");
|
||||
f->setInventoryTextureCube("sandstone.png", "sandstone.png", "sandstone.png");
|
||||
f->draw_type = CDT_CUBELIKE;
|
||||
f->is_ground_content = true;
|
||||
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_SAND)+" 4";
|
||||
f->type = CMT_DIRT;
|
||||
f->dig_time = 1.0;
|
||||
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
|
||||
f->type = CMT_STONE;
|
||||
f->dig_time = 0.5;
|
||||
crafting::setSoftBlockRecipe(CONTENT_SAND,CONTENT_SANDSTONE);
|
||||
content_list_add("craftguide",i,1,0);
|
||||
content_list_add("creative",i,1,0);
|
||||
content_list_add("decrafting",i,1,0);
|
||||
|
||||
i = CONTENT_SANDSTONE_BRICK;
|
||||
f = &content_features(i);
|
||||
f->description = gettext("Sand Stone Bricks");
|
||||
f->setAllTextures("sandstone_brick.png");
|
||||
f->setInventoryTextureCube("sandstone_brick.png", "sandstone_brick.png", "sandstone_brick.png");
|
||||
f->description = gettext("Sandstone Bricks");
|
||||
f->setAllTextures("sandstone.png^overlay_brick.png");
|
||||
f->setInventoryTextureCube("sandstone.png^overlay_brick.png", "sandstone.png^overlay_brick.png", "sandstone.png^overlay_brick.png");
|
||||
f->draw_type = CDT_CUBELIKE;
|
||||
f->is_ground_content = true;
|
||||
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_SAND)+" 4";
|
||||
f->type = CMT_DIRT;
|
||||
f->dig_time = 1.0;
|
||||
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
|
||||
f->type = CMT_STONE;
|
||||
f->dig_time = 0.5;
|
||||
crafting::setBrickRecipe(CONTENT_SANDSTONE,CONTENT_SANDSTONE_BRICK);
|
||||
content_list_add("craftguide",i,1,0);
|
||||
content_list_add("creative",i,1,0);
|
||||
content_list_add("decrafting",i,1,0);
|
||||
|
||||
i = CONTENT_SANDSTONE_BLOCK;
|
||||
f = &content_features(i);
|
||||
f->description = gettext("Sand Stone Blocks");
|
||||
f->setAllTextures("sandstone_block.png");
|
||||
f->setInventoryTextureCube("sandstone_block.png", "sandstone_block.png", "sandstone_block.png");
|
||||
f->description = gettext("Sandstone Blocks");
|
||||
f->setAllTextures("sandstone.png^overlay_block.png");
|
||||
f->setInventoryTextureCube("sandstone.png^overlay_block.png", "sandstone.png^overlay_block.png", "sandstone.png^overlay_block.png");
|
||||
f->draw_type = CDT_CUBELIKE;
|
||||
f->is_ground_content = true;
|
||||
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_SAND)+" 4";
|
||||
f->type = CMT_DIRT;
|
||||
f->dig_time = 1.0;
|
||||
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
|
||||
f->type = CMT_STONE;
|
||||
f->dig_time = 0.5;
|
||||
crafting::setBlockRecipe(CONTENT_SANDSTONE,CONTENT_SANDSTONE_BLOCK);
|
||||
content_list_add("craftguide",i,1,0);
|
||||
content_list_add("creative",i,1,0);
|
||||
content_list_add("decrafting",i,1,0);
|
||||
|
||||
i = CONTENT_DESERT_SANDSTONE;
|
||||
f = &content_features(i);
|
||||
f->description = gettext("Desert Sandstone");
|
||||
f->setAllTextures("sandstone_desert.png");
|
||||
f->setInventoryTextureCube("sandstone_desert.png", "sandstone_desert.png", "sandstone_desert.png");
|
||||
f->draw_type = CDT_CUBELIKE;
|
||||
f->is_ground_content = true;
|
||||
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
|
||||
f->type = CMT_STONE;
|
||||
f->dig_time = 0.5;
|
||||
crafting::setSoftBlockRecipe(CONTENT_DESERT_SAND,CONTENT_DESERT_SANDSTONE);
|
||||
content_list_add("craftguide",i,1,0);
|
||||
content_list_add("creative",i,1,0);
|
||||
|
||||
i = CONTENT_DESERT_SANDSTONE_BRICK;
|
||||
f = &content_features(i);
|
||||
f->description = gettext("Desert Sandstone Bricks");
|
||||
f->setAllTextures("sandstone_desert.png^overlay_brick.png");
|
||||
f->setInventoryTextureCube("sandstone_desert.png^overlay_brick.png", "sandstone_desert.png^overlay_brick.png", "sandstone_desert.png^overlay_brick.png");
|
||||
f->draw_type = CDT_CUBELIKE;
|
||||
f->is_ground_content = true;
|
||||
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
|
||||
f->type = CMT_STONE;
|
||||
f->dig_time = 0.5;
|
||||
crafting::setBrickRecipe(CONTENT_DESERT_SANDSTONE,CONTENT_DESERT_SANDSTONE_BRICK);
|
||||
content_list_add("craftguide",i,1,0);
|
||||
content_list_add("creative",i,1,0);
|
||||
|
||||
i = CONTENT_DESERT_SANDSTONE_BLOCK;
|
||||
f = &content_features(i);
|
||||
f->description = gettext("Desert Sandstone Blocks");
|
||||
f->setAllTextures("sandstone_desert.png^overlay_block.png");
|
||||
f->setInventoryTextureCube("sandstone_desert.png^overlay_block.png", "sandstone_desert.png^overlay_block.png", "sandstone_desert.png^overlay_block.png");
|
||||
f->draw_type = CDT_CUBELIKE;
|
||||
f->is_ground_content = true;
|
||||
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
|
||||
f->type = CMT_STONE;
|
||||
f->dig_time = 0.5;
|
||||
crafting::setBlockRecipe(CONTENT_DESERT_SANDSTONE,CONTENT_DESERT_SANDSTONE_BLOCK);
|
||||
content_list_add("craftguide",i,1,0);
|
||||
content_list_add("creative",i,1,0);
|
||||
|
||||
i = CONTENT_CLAY;
|
||||
f = &content_features(i);
|
||||
|
|
|
@ -130,7 +130,10 @@ MapNode mapnode_translate_to_internal(MapNode n_from, u8 version);
|
|||
#define CONTENT_PINE_BARREL_SEALED 0x049
|
||||
#define CONTENT_CLAY_VESSEL 0x04A
|
||||
#define CONTENT_CLAY_VESSEL_RAW 0x04B
|
||||
// FREE 0x04C-0x07C
|
||||
#define CONTENT_DESERT_SANDSTONE 0x04C
|
||||
#define CONTENT_DESERT_SANDSTONE_BRICK 0x04D
|
||||
#define CONTENT_DESERT_SANDSTONE_BLOCK 0x04E
|
||||
// FREE 0x04F-0x07C
|
||||
// 0x7D-0x7F reserved values, air, ignore, etc
|
||||
#define CONTENT_CHAIR_CENTRE 0x080
|
||||
#define CONTENT_CHAIR_ENDL 0x081
|
||||
|
|
|
@ -255,7 +255,7 @@ void content_mapnode_plants(bool repeat)
|
|||
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_RESIN)+" 1";
|
||||
f->extra_dug_item = std::string("MaterialItem2 ")+itos(CONTENT_SAPLING)+" 1";
|
||||
f->extra_dug_item_rarity = 20;
|
||||
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_CRAFTITEM_STICK)+" 2";
|
||||
f->dug_item = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_STICK)+" 2";
|
||||
f->ondig_special_drop = CONTENT_TRIMMED_LEAVES;
|
||||
f->ondig_special_drop_count = 1;
|
||||
f->ondig_special_tool = TT_SHEAR;
|
||||
|
@ -287,7 +287,7 @@ void content_mapnode_plants(bool repeat)
|
|||
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_RESIN)+" 1";
|
||||
f->extra_dug_item = std::string("MaterialItem2 ")+itos(CONTENT_SAPLING)+" 1";
|
||||
f->extra_dug_item_rarity = 20;
|
||||
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_CRAFTITEM_STICK)+" 2";
|
||||
f->dug_item = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_STICK)+" 2";
|
||||
f->ondig_special_drop = CONTENT_TRIMMED_LEAVES_AUTUMN;
|
||||
f->ondig_special_drop_count = 1;
|
||||
f->ondig_special_tool = TT_SHEAR;
|
||||
|
@ -319,7 +319,7 @@ void content_mapnode_plants(bool repeat)
|
|||
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_ASH)+" 1";
|
||||
f->extra_dug_item = std::string("MaterialItem2 ")+itos(CONTENT_SAPLING)+" 1";
|
||||
f->extra_dug_item_rarity = 20;
|
||||
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_CRAFTITEM_STICK)+" 2";
|
||||
f->dug_item = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_STICK)+" 2";
|
||||
f->ondig_special_drop = CONTENT_TRIMMED_LEAVES_WINTER;
|
||||
f->ondig_special_drop_count = 1;
|
||||
f->ondig_special_tool = TT_SHEAR;
|
||||
|
@ -351,7 +351,7 @@ void content_mapnode_plants(bool repeat)
|
|||
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_ASH)+" 1";
|
||||
f->extra_dug_item = std::string("MaterialItem2 ")+itos(CONTENT_SAPLING)+" 1";
|
||||
f->extra_dug_item_rarity = 20;
|
||||
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_CRAFTITEM_STICK)+" 2";
|
||||
f->dug_item = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_STICK)+" 2";
|
||||
f->ondig_special_drop = CONTENT_TRIMMED_LEAVES_WINTER;
|
||||
f->ondig_special_drop_count = 1;
|
||||
f->ondig_special_tool = TT_SHEAR;
|
||||
|
@ -384,7 +384,7 @@ void content_mapnode_plants(bool repeat)
|
|||
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_RESIN)+" 1";
|
||||
f->extra_dug_item = std::string("MaterialItem2 ")+itos(CONTENT_APPLE_SAPLING)+" 1";
|
||||
f->extra_dug_item_rarity = 20;
|
||||
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_CRAFTITEM_STICK)+" 2";
|
||||
f->dug_item = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_STICK)+" 2";
|
||||
f->ondig_special_drop = CONTENT_TRIMMED_APPLE_LEAVES;
|
||||
f->ondig_special_drop_count = 1;
|
||||
f->ondig_special_tool = TT_SHEAR;
|
||||
|
@ -416,7 +416,7 @@ void content_mapnode_plants(bool repeat)
|
|||
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_RESIN)+" 1";
|
||||
f->extra_dug_item = std::string("MaterialItem2 ")+itos(CONTENT_JUNGLESAPLING)+" 1";
|
||||
f->extra_dug_item_rarity = 20;
|
||||
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_CRAFTITEM_STICK)+" 2";
|
||||
f->dug_item = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_STICK)+" 2";
|
||||
f->ondig_special_drop = CONTENT_TRIMMED_JUNGLE_LEAVES;
|
||||
f->ondig_special_drop_count = 1;
|
||||
f->ondig_special_tool = TT_SHEAR;
|
||||
|
@ -448,7 +448,7 @@ void content_mapnode_plants(bool repeat)
|
|||
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_RESIN)+" 1";
|
||||
f->extra_dug_item = std::string("MaterialItem2 ")+itos(CONTENT_CONIFER_SAPLING)+" 1";
|
||||
f->extra_dug_item_rarity = 20;
|
||||
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_CRAFTITEM_STICK)+" 2";
|
||||
f->dug_item = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_STICK)+" 2";
|
||||
f->ondig_special_drop = CONTENT_TRIMMED_CONIFER_LEAVES;
|
||||
f->ondig_special_drop_count = 1;
|
||||
f->ondig_special_tool = TT_SHEAR;
|
||||
|
|
Loading…
Reference in New Issue