Changed stones to mud and added some crafts.
parent
04b97450e0
commit
42ace62115
|
@ -37,7 +37,53 @@ InventoryItem *craft_get_result(InventoryItem **items)
|
|||
{
|
||||
return new MaterialItem(CONTENT_WOOD, 4);
|
||||
}
|
||||
}//MYINE
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
ItemSpec specs[9];
|
||||
specs[0] = ItemSpec(ITEM_MATERIAL, CONTENT_SAPLING);
|
||||
if(checkItemCombination(items, specs))
|
||||
{
|
||||
return new MaterialItem(CONTENT_SAPLING, 2);
|
||||
}
|
||||
}
|
||||
{
|
||||
ItemSpec specs[9];
|
||||
specs[1] = ItemSpec(ITEM_MATERIAL, CONTENT_SAPLING);
|
||||
specs[2] = ItemSpec(ITEM_MATERIAL, CONTENT_SAPLING);
|
||||
if(checkItemCombination(items, specs))
|
||||
{
|
||||
return new MaterialItem(CONTENT_SAPLING, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
{ //COBBLE TO MUD
|
||||
ItemSpec specs[9];
|
||||
specs[0] = ItemSpec(ITEM_MATERIAL, CONTENT_COBBLE);
|
||||
if(checkItemCombination(items, specs))
|
||||
{
|
||||
return new MaterialItem(CONTENT_MUD, 2);
|
||||
}
|
||||
}
|
||||
{ //MUD TO CLAY
|
||||
ItemSpec specs[9];
|
||||
specs[0] = ItemSpec(ITEM_MATERIAL, CONTENT_MUD);
|
||||
if(checkItemCombination(items, specs))
|
||||
{
|
||||
return new MaterialItem(CONTENT_CLAY, 2);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//ENDMINE
|
||||
|
||||
// Stick
|
||||
{
|
||||
|
@ -298,7 +344,7 @@ InventoryItem *craft_get_result(InventoryItem **items)
|
|||
}
|
||||
|
||||
// Locking Chest
|
||||
{
|
||||
/*{
|
||||
ItemSpec specs[9];
|
||||
specs[0] = ItemSpec(ITEM_MATERIAL, CONTENT_WOOD);
|
||||
specs[1] = ItemSpec(ITEM_MATERIAL, CONTENT_WOOD);
|
||||
|
@ -313,7 +359,7 @@ InventoryItem *craft_get_result(InventoryItem **items)
|
|||
{
|
||||
return new MaterialItem(CONTENT_LOCKABLE_CHEST, 1);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
// Furnace
|
||||
{
|
||||
|
@ -331,6 +377,23 @@ InventoryItem *craft_get_result(InventoryItem **items)
|
|||
return new MaterialItem(CONTENT_FURNACE, 1);
|
||||
}
|
||||
}
|
||||
// Furnace Backup
|
||||
{
|
||||
ItemSpec specs[9];
|
||||
specs[0] = ItemSpec(ITEM_MATERIAL, CONTENT_MUD);
|
||||
specs[1] = ItemSpec(ITEM_MATERIAL, CONTENT_MUD);
|
||||
specs[2] = ItemSpec(ITEM_MATERIAL, CONTENT_MUD);
|
||||
specs[3] = ItemSpec(ITEM_MATERIAL, CONTENT_MUD);
|
||||
specs[4] = ItemSpec(ITEM_CRAFT, "lump_of_coal");
|
||||
specs[5] = ItemSpec(ITEM_MATERIAL, CONTENT_MUD);
|
||||
specs[6] = ItemSpec(ITEM_MATERIAL, CONTENT_MUD);
|
||||
specs[7] = ItemSpec(ITEM_MATERIAL, CONTENT_MUD);
|
||||
specs[8] = ItemSpec(ITEM_MATERIAL, CONTENT_MUD);
|
||||
if(checkItemCombination(items, specs))
|
||||
{
|
||||
return new MaterialItem(CONTENT_FURNACE, 1);
|
||||
}
|
||||
}
|
||||
|
||||
// Steel block
|
||||
{
|
||||
|
|
|
@ -42,6 +42,12 @@ InventoryItem* item_material_create_cook_result(content_t content)
|
|||
return new MaterialItem(CONTENT_STONE, 1);
|
||||
else if(content == CONTENT_SAND)
|
||||
return new MaterialItem(CONTENT_GLASS, 1);
|
||||
|
||||
else if(content == CONTENT_CLAY)
|
||||
return new MaterialItem(CONTENT_MUD, 2);
|
||||
else if(content == CONTENT_MUD)
|
||||
return new MaterialItem(CONTENT_STONE, 2);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -906,7 +906,7 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
|
|||
/*
|
||||
Add stones with minerals if stone is invisible
|
||||
*/
|
||||
else if(n.getContent() == CONTENT_STONE && invisible_stone && n.getMineral() != MINERAL_NONE)
|
||||
else if(n.getContent() == CONTENT_MUD && invisible_stone && n.getMineral() != MINERAL_NONE)
|
||||
{
|
||||
for(u32 j=0; j<6; j++)
|
||||
{
|
||||
|
|
|
@ -150,6 +150,7 @@ void content_mapnode_init()
|
|||
f->setInventoryTextureCube("mud.png", "mud.png", "mud.png");
|
||||
f->param_type = CPT_MINERAL;
|
||||
f->is_ground_content = true;
|
||||
f->often_contains_mineral = true;
|
||||
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
|
||||
setDirtLikeDiggingProperties(f->digging_properties, 1.0);
|
||||
|
||||
|
|
|
@ -1051,7 +1051,7 @@ void ServerEnvironment::step(float dtime)
|
|||
/*
|
||||
Fun things spawn in caves and dungeons
|
||||
*/
|
||||
if(n.getContent() == CONTENT_STONE ||
|
||||
if(n.getContent() == CONTENT_MUD ||
|
||||
n.getContent() == CONTENT_MOSSYCOBBLE)
|
||||
{
|
||||
if(myrand()%200 == 0 && active_object_count_wider == 0)
|
||||
|
|
|
@ -1656,7 +1656,7 @@ void make_block(BlockMakeData *data)
|
|||
else if(noisebuf_cave.get(x,y,z) > CAVE_NOISE_THRESHOLD)
|
||||
vmanip.m_data[i] = MapNode(CONTENT_AIR);
|
||||
else
|
||||
vmanip.m_data[i] = MapNode(CONTENT_STONE);
|
||||
vmanip.m_data[i] = MapNode(CONTENT_MUD);
|
||||
}
|
||||
|
||||
data->vmanip->m_area.add_y(em, i, 1);
|
||||
|
@ -1685,7 +1685,7 @@ void make_block(BlockMakeData *data)
|
|||
{
|
||||
v3s16 p = v3s16(x,y,z) + g_27dirs[i];
|
||||
u32 vi = vmanip.m_area.index(p);
|
||||
if(vmanip.m_data[vi].getContent() == CONTENT_STONE)
|
||||
if(vmanip.m_data[vi].getContent() == CONTENT_MUD)
|
||||
if(mineralrandom.next()%8 == 0)
|
||||
vmanip.m_data[vi] = MapNode(CONTENT_MESE);
|
||||
}
|
||||
|
@ -1705,18 +1705,18 @@ void make_block(BlockMakeData *data)
|
|||
s16 y = mineralrandom.range(node_min.Y+1, node_max.Y-1);
|
||||
s16 z = mineralrandom.range(node_min.Z+1, node_max.Z-1);
|
||||
|
||||
u8 base_content = CONTENT_STONE;
|
||||
u8 base_content = CONTENT_MUD;
|
||||
MapNode new_content(CONTENT_IGNORE);
|
||||
u32 sparseness = 6;
|
||||
|
||||
if(noisebuf_ground_crumbleness.get(x,y+5,z) < -0.1)
|
||||
{
|
||||
new_content = MapNode(CONTENT_STONE, MINERAL_COAL);
|
||||
new_content = MapNode(CONTENT_MUD, MINERAL_COAL);
|
||||
}
|
||||
else
|
||||
{
|
||||
if(noisebuf_ground_wetness.get(x,y+5,z) > 0.0)
|
||||
new_content = MapNode(CONTENT_STONE, MINERAL_IRON);
|
||||
new_content = MapNode(CONTENT_MUD, MINERAL_IRON);
|
||||
/*if(noisebuf_ground_wetness.get(x,y,z) > 0.0)
|
||||
vmanip.m_data[i] = MapNode(CONTENT_MUD);
|
||||
else
|
||||
|
@ -1763,9 +1763,9 @@ void make_block(BlockMakeData *data)
|
|||
{
|
||||
v3s16 p = v3s16(x,y,z) + g_27dirs[i];
|
||||
u32 vi = vmanip.m_area.index(p);
|
||||
if(vmanip.m_data[vi].getContent() == CONTENT_STONE)
|
||||
if(vmanip.m_data[vi].getContent() == CONTENT_MUD)
|
||||
if(mineralrandom.next()%8 == 0)
|
||||
vmanip.m_data[vi] = MapNode(CONTENT_STONE, MINERAL_COAL);
|
||||
vmanip.m_data[vi] = MapNode(CONTENT_MUD, MINERAL_COAL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1789,9 +1789,9 @@ void make_block(BlockMakeData *data)
|
|||
{
|
||||
v3s16 p = v3s16(x,y,z) + g_27dirs[i];
|
||||
u32 vi = vmanip.m_area.index(p);
|
||||
if(vmanip.m_data[vi].getContent() == CONTENT_STONE)
|
||||
if(vmanip.m_data[vi].getContent() == CONTENT_MUD)
|
||||
if(mineralrandom.next()%8 == 0)
|
||||
vmanip.m_data[vi] = MapNode(CONTENT_STONE, MINERAL_IRON);
|
||||
vmanip.m_data[vi] = MapNode(CONTENT_MUD, MINERAL_IRON);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1812,7 +1812,7 @@ void make_block(BlockMakeData *data)
|
|||
u32 i = vmanip.m_area.index(v3s16(p2d.X, node_max.Y, p2d.Y));
|
||||
for(s16 y=node_max.Y; y>=node_min.Y; y--)
|
||||
{
|
||||
if(vmanip.m_data[i].getContent() == CONTENT_STONE)
|
||||
if(vmanip.m_data[i].getContent() == CONTENT_MUD)
|
||||
{
|
||||
if(noisebuf_ground_crumbleness.get(x,y,z) > 1.3)
|
||||
{
|
||||
|
@ -2014,7 +2014,7 @@ void make_block(BlockMakeData *data)
|
|||
if(vmanip.m_data[i].getContent() == CONTENT_AIR)
|
||||
air_detected = true;
|
||||
|
||||
if((vmanip.m_data[i].getContent() == CONTENT_STONE
|
||||
if((vmanip.m_data[i].getContent() == CONTENT_MUD
|
||||
|| vmanip.m_data[i].getContent() == CONTENT_GRASS
|
||||
|| vmanip.m_data[i].getContent() == CONTENT_MUD
|
||||
|| vmanip.m_data[i].getContent() == CONTENT_SAND
|
||||
|
@ -2055,7 +2055,7 @@ void make_block(BlockMakeData *data)
|
|||
{
|
||||
if(vmanip.m_data[i].getContent() == CONTENT_MUD
|
||||
|| vmanip.m_data[i].getContent() == CONTENT_GRASS)
|
||||
vmanip.m_data[i] = MapNode(CONTENT_STONE);
|
||||
vmanip.m_data[i] = MapNode(CONTENT_MUD);
|
||||
}
|
||||
|
||||
current_depth++;
|
||||
|
|
Loading…
Reference in New Issue