get per-block-type dig time working

This commit is contained in:
darkrose 2017-06-25 17:28:11 +10:00
parent ca029edf6c
commit a633fa4220
14 changed files with 587 additions and 585 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

File diff suppressed because it is too large Load Diff

View File

@ -45,7 +45,7 @@ void content_mapnode_circuit(bool repeat)
f->air_equivalent = true; // grass grows underneath
f->dug_item = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_MITHRILDUST)+" 1";
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_carpet(f);
@ -68,7 +68,7 @@ void content_mapnode_circuit(bool repeat)
f->air_equivalent = true; // grass grows underneath
f->dug_item = std::string("MaterialItem2 ") + itos(i)+" 1";
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_carpet(f);
@ -97,7 +97,7 @@ void content_mapnode_circuit(bool repeat)
f->light_source = 10;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_WOOD;
f->hardness = 0.10;
f->dig_time = 0.10;
f->suffocation_per_second = 0;
content_nodebox_battery(f);
f->setInventoryTextureNodeBox(i,"circuit_reactor_top.png","circuit_reactor.png","circuit_reactor.png");
@ -120,7 +120,7 @@ void content_mapnode_circuit(bool repeat)
f->sunlight_propagates = true;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_WOOD;
f->hardness = 0.10;
f->dig_time = 0.10;
f->suffocation_per_second = 0;
content_nodebox_carpet(f);
f->setInventoryTextureNodeBox(i,"circuit_solarpanel_top.png","wood.png","wood.png");
@ -153,7 +153,7 @@ void content_mapnode_circuit(bool repeat)
f->rotate_tile_with_nodebox = true;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_WOOD;
f->hardness = 0.10;
f->dig_time = 0.10;
content_nodebox_waterwheel(f);
f->setInventoryTextureNodeBox(i,"circuit_waterwheel.png","circuit_waterwheel.png","circuit_waterwheel_side.png");
if (f->initial_metadata == NULL)
@ -187,7 +187,7 @@ void content_mapnode_circuit(bool repeat)
f->energy_drop = 0;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->suffocation_per_second = 0;
content_nodebox_switch(f);
f->setInventoryTextureNodeBox(i,"stone.png","circuit_switch_front.png","stone.png");
@ -218,7 +218,7 @@ void content_mapnode_circuit(bool repeat)
f->energy_drop = 0;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->suffocation_per_second = 0;
content_nodebox_button(f);
f->setInventoryTextureNodeBox(i,"stone.png","stone.png","stone.png");
@ -246,7 +246,7 @@ void content_mapnode_circuit(bool repeat)
f->energy_drop = 0;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->suffocation_per_second = 0;
content_nodebox_carpet(f);
f->setInventoryTextureNodeBox(i,"pressureplate_stone_top.png","stone.png","stone.png");
@ -274,7 +274,7 @@ void content_mapnode_circuit(bool repeat)
f->energy_drop = 0;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_WOOD;
f->hardness = 1.0;
f->dig_time = 1.0;
f->suffocation_per_second = 0;
content_nodebox_carpet(f);
f->setInventoryTextureNodeBox(i,"pressureplate_wood_top.png","stone.png","stone.png");
@ -305,7 +305,7 @@ void content_mapnode_circuit(bool repeat)
f->light_propagates = true;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->suffocation_per_second = 0;
content_nodebox_logicgate(f);
f->setInventoryTextureNodeBox(i,"circuit_gate_top.png","circuit_gate.png","circuit_gate.png");
@ -336,7 +336,7 @@ void content_mapnode_circuit(bool repeat)
f->light_propagates = true;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->suffocation_per_second = 0;
content_nodebox_logicgate(f);
f->setInventoryTextureNodeBox(i,"circuit_repeater_top.png","circuit_repeater.png","circuit_repeater.png");
@ -368,7 +368,7 @@ void content_mapnode_circuit(bool repeat)
f->setAllTextures("circuit_lamp_on.png");
f->setInventoryTextureCube("circuit_lamp.png", "circuit_lamp.png", "circuit_lamp.png");
f->type = CMT_WOOD;
f->hardness = 0.15;
f->dig_time = 0.15;
if (f->initial_metadata == NULL)
f->initial_metadata = new CircuitNodeMetadata();
@ -389,7 +389,7 @@ void content_mapnode_circuit(bool repeat)
#endif
f->setInventoryTextureCube("circuit_lamp.png", "circuit_lamp.png", "circuit_lamp.png");
f->type = CMT_WOOD;
f->hardness = 0.15;
f->dig_time = 0.15;
if (f->initial_metadata == NULL)
f->initial_metadata = new CircuitNodeMetadata();
{
@ -424,7 +424,7 @@ void content_mapnode_circuit(bool repeat)
f->setTexture(5,"circuit_piston_arm_top.png");
f->setInventoryTextureCube("circuit_piston.png^[transformR90", "circuit_piston_arm_top.png", "circuit_piston.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
if (f->initial_metadata == NULL)
f->initial_metadata = new PistonNodeMetadata();
{
@ -458,7 +458,7 @@ void content_mapnode_circuit(bool repeat)
content_nodebox_piston(f);
f->setInventoryTextureCube("circuit_piston.png^[transformR90", "circuit_piston_top.png", "circuit_piston.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_SOLID;
if (f->initial_metadata == NULL)
f->initial_metadata = new PistonNodeMetadata();
@ -483,7 +483,7 @@ void content_mapnode_circuit(bool repeat)
content_nodebox_pistonarm(f);
f->setInventoryTextureCube("circuit_piston_arm.png", "circuit_piston_arm_top.png", "circuit_piston_arm.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
@ -504,7 +504,7 @@ void content_mapnode_circuit(bool repeat)
f->setTexture(1,"circuit_piston_bottom.png");
f->setInventoryTextureCube("circuit_piston_arm_top.png", "circuit_piston.png^[transformR90", "circuit_piston.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
if (f->initial_metadata == NULL)
f->initial_metadata = new PistonNodeMetadata();
@ -524,7 +524,7 @@ void content_mapnode_circuit(bool repeat)
content_nodebox_piston_up(f);
f->setInventoryTextureCube("circuit_piston_top.png", "circuit_piston.png^[transformR90", "circuit_piston.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_SOLID;
if (f->initial_metadata == NULL)
f->initial_metadata = new PistonNodeMetadata();
@ -544,7 +544,7 @@ void content_mapnode_circuit(bool repeat)
content_nodebox_pistonarm_up(f);
f->setInventoryTextureCube("circuit_piston_arm_top.png", "circuit_piston_arm.png", "circuit_piston_arm.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
@ -565,7 +565,7 @@ void content_mapnode_circuit(bool repeat)
f->setTexture(1,"circuit_piston_arm_top.png");
f->setInventoryTextureCube("circuit_piston_arm_bottom.png", "circuit_piston.png^[transformR90", "circuit_piston.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
if (f->initial_metadata == NULL)
f->initial_metadata = new PistonNodeMetadata();
@ -585,7 +585,7 @@ void content_mapnode_circuit(bool repeat)
content_nodebox_piston_down(f);
f->setInventoryTextureCube("circuit_piston_top.png", "circuit_piston.png^[transformR90", "circuit_piston.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_SOLID;
if (f->initial_metadata == NULL)
f->initial_metadata = new PistonNodeMetadata();
@ -605,7 +605,7 @@ void content_mapnode_circuit(bool repeat)
content_nodebox_pistonarm_down(f);
f->setInventoryTextureCube("circuit_piston_arm.png", "circuit_piston_arm_top.png", "circuit_piston_arm.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
@ -630,7 +630,7 @@ void content_mapnode_circuit(bool repeat)
f->setTexture(5,"circuit_stickypiston_arm_top.png");
f->setInventoryTextureCube("circuit_piston.png^[transformR90", "circuit_stickypiston_arm_top.png", "circuit_piston.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
if (f->initial_metadata == NULL)
f->initial_metadata = new PistonNodeMetadata();
crafting::set1over1Recipe(CONTENT_CRAFTITEM_RESIN,CONTENT_CIRCUIT_PISTON_OFF,CONTENT_CIRCUIT_STICKYPISTON_OFF);
@ -657,7 +657,7 @@ void content_mapnode_circuit(bool repeat)
content_nodebox_piston(f);
f->setInventoryTextureCube("circuit_piston.png^[transformR90", "circuit_piston_top.png", "circuit_piston.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_SOLID;
if (f->initial_metadata == NULL)
f->initial_metadata = new PistonNodeMetadata();
@ -682,7 +682,7 @@ void content_mapnode_circuit(bool repeat)
content_nodebox_pistonarm(f);
f->setInventoryTextureCube("circuit_piston_arm.png", "circuit_stickypiston_arm_top.png", "circuit_piston_arm.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
@ -703,7 +703,7 @@ void content_mapnode_circuit(bool repeat)
f->setTexture(1,"circuit_piston_bottom.png");
f->setInventoryTextureCube("circuit_stickypiston_arm_top.png", "circuit_piston.png^[transformR90", "circuit_piston.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
if (f->initial_metadata == NULL)
f->initial_metadata = new PistonNodeMetadata();
@ -723,7 +723,7 @@ void content_mapnode_circuit(bool repeat)
content_nodebox_piston_up(f);
f->setInventoryTextureCube("circuit_piston_top.png", "circuit_piston.png^[transformR90", "circuit_piston.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_SOLID;
if (f->initial_metadata == NULL)
f->initial_metadata = new PistonNodeMetadata();
@ -743,7 +743,7 @@ void content_mapnode_circuit(bool repeat)
content_nodebox_pistonarm_up(f);
f->setInventoryTextureCube("circuit_stickypiston_arm_top.png", "circuit_piston_arm.png", "circuit_piston_arm.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
@ -764,7 +764,7 @@ void content_mapnode_circuit(bool repeat)
f->setTexture(1,"circuit_stickypiston_arm_top.png");
f->setInventoryTextureCube("circuit_piston_arm_bottom.png", "circuit_piston.png^[transformR90", "circuit_piston.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
if (f->initial_metadata == NULL)
f->initial_metadata = new PistonNodeMetadata();
@ -784,7 +784,7 @@ void content_mapnode_circuit(bool repeat)
content_nodebox_piston_down(f);
f->setInventoryTextureCube("circuit_piston_top.png", "circuit_piston.png^[transformR90", "circuit_piston.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_SOLID;
if (f->initial_metadata == NULL)
f->initial_metadata = new PistonNodeMetadata();
@ -804,7 +804,7 @@ void content_mapnode_circuit(bool repeat)
content_nodebox_pistonarm_down(f);
f->setInventoryTextureCube("circuit_piston_arm.png", "circuit_stickypiston_arm_top.png", "circuit_piston_arm.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
}

View File

@ -55,7 +55,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_door(f);
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
i = CONTENT_WOOD_DOOR_LT;
@ -82,7 +82,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_door(f);
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
crafting::set1over1Recipe(CONTENT_WOOD_HATCH,CONTENT_WOOD_HATCH,CONTENT_WOOD_DOOR_LT);
@ -110,7 +110,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-dooropen";
content_nodebox_door(f);
f->type = CMT_STONE;
f->hardness = 5.0;
f->dig_time = 2.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
f->energy_type = CET_DEVICE;
@ -138,7 +138,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-dooropen";
content_nodebox_door(f);
f->type = CMT_STONE;
f->hardness = 5.0;
f->dig_time = 2.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
f->energy_type = CET_DEVICE;
@ -173,7 +173,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-dooropen";
content_nodebox_door(f);
f->type = CMT_GLASS;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
i = CONTENT_GLASS_DOOR_LT;
@ -202,7 +202,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-dooropen";
content_nodebox_door(f);
f->type = CMT_GLASS;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
crafting::set1over1Recipe(CONTENT_GLASS_PANE,CONTENT_GLASS_PANE,CONTENT_GLASS_DOOR_LT);
@ -233,7 +233,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_door(f);
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
i = CONTENT_WOOD_W_DOOR_LT;
@ -261,7 +261,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_doorw(f);
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
crafting::set1over1Recipe(CONTENT_WOOD_W_HATCH,CONTENT_WOOD_HATCH,CONTENT_WOOD_W_DOOR_LT);
@ -291,7 +291,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-dooropen";
content_nodebox_door(f);
f->type = CMT_STONE;
f->hardness = 5.0;
f->dig_time = 2.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
f->energy_type = CET_DEVICE;
@ -320,7 +320,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-dooropen";
content_nodebox_doorw(f);
f->type = CMT_STONE;
f->hardness = 5.0;
f->dig_time = 2.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
f->energy_type = CET_DEVICE;
@ -355,7 +355,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_door(f);
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
i = CONTENT_WOOD_DOOR_RT;
@ -382,7 +382,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_door(f);
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -413,7 +413,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_door(f);
f->type = CMT_GLASS;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
i = CONTENT_GLASS_DOOR_RT;
@ -443,7 +443,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_door(f);
f->type = CMT_GLASS;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -469,7 +469,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-dooropen";
content_nodebox_door(f);
f->type = CMT_STONE;
f->hardness = 5.0;
f->dig_time = 2.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
f->energy_type = CET_DEVICE;
@ -497,7 +497,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-dooropen";
content_nodebox_door(f);
f->type = CMT_STONE;
f->hardness = 5.0;
f->dig_time = 2.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
f->energy_type = CET_DEVICE;
@ -529,7 +529,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_door(f);
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
i = CONTENT_WOOD_W_DOOR_RT;
@ -557,7 +557,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_doorw(f);
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -584,7 +584,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-dooropen";
content_nodebox_door(f);
f->type = CMT_STONE;
f->hardness = 5.0;
f->dig_time = 2.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
f->energy_type = CET_DEVICE;
@ -613,7 +613,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-dooropen";
content_nodebox_doorw(f);
f->type = CMT_STONE;
f->hardness = 5.0;
f->dig_time = 2.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
f->energy_type = CET_DEVICE;
@ -647,7 +647,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_doorol(f);
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
i = CONTENT_WOOD_DOOR_LT_OPEN;
@ -672,7 +672,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_doorol(f);
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
@ -700,7 +700,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_doorol(f);
f->type = CMT_WOOD;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
i = CONTENT_GLASS_DOOR_LT_OPEN;
@ -727,7 +727,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_doorol(f);
f->type = CMT_WOOD;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
@ -751,7 +751,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-doorclose";
content_nodebox_doorol(f);
f->type = CMT_STONE;
f->hardness = 5.0;
f->dig_time = 2.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
f->energy_type = CET_DEVICE;
@ -777,7 +777,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-doorclose";
content_nodebox_doorol(f);
f->type = CMT_STONE;
f->hardness = 5.0;
f->dig_time = 2.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
f->energy_type = CET_DEVICE;
@ -806,7 +806,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_doorol(f);
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
i = CONTENT_WOOD_W_DOOR_LT_OPEN;
@ -831,7 +831,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_doorwol(f);
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
@ -855,7 +855,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-doorclose";
content_nodebox_doorol(f);
f->type = CMT_STONE;
f->hardness = 5.0;
f->dig_time = 2.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
f->energy_type = CET_DEVICE;
@ -881,7 +881,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-doorclose";
content_nodebox_doorwol(f);
f->type = CMT_STONE;
f->hardness = 5.0;
f->dig_time = 2.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
f->energy_type = CET_DEVICE;
@ -913,7 +913,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_dooror(f);
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
i = CONTENT_WOOD_DOOR_RT_OPEN;
@ -940,7 +940,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_dooror(f);
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
@ -970,7 +970,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_dooror(f);
f->type = CMT_GLASS;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
i = CONTENT_GLASS_DOOR_RT_OPEN;
@ -998,7 +998,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-doorclose";
content_nodebox_dooror(f);
f->type = CMT_GLASS;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
@ -1024,7 +1024,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-doorclose";
content_nodebox_dooror(f);
f->type = CMT_STONE;
f->hardness = 5.0;
f->dig_time = 2.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
f->energy_type = CET_DEVICE;
@ -1052,7 +1052,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-doorclose";
content_nodebox_dooror(f);
f->type = CMT_STONE;
f->hardness = 5.0;
f->dig_time = 2.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
f->energy_type = CET_DEVICE;
@ -1083,7 +1083,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_dooror(f);
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
i = CONTENT_WOOD_W_DOOR_RT_OPEN;
@ -1110,7 +1110,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_doorwor(f);
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
@ -1136,7 +1136,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-doorclose";
content_nodebox_dooror(f);
f->type = CMT_STONE;
f->hardness = 5.0;
f->dig_time = 2.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
f->energy_type = CET_DEVICE;
@ -1164,7 +1164,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-doorclose";
content_nodebox_doorwor(f);
f->type = CMT_STONE;
f->hardness = 5.0;
f->dig_time = 2.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
f->energy_type = CET_DEVICE;
@ -1190,7 +1190,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_hatch(f);
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
crafting::setSoftBlockRecipe(CONTENT_CRAFTITEM_WOOD_PLANK,CONTENT_WOOD_HATCH);
@ -1214,7 +1214,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-dooropen";
content_nodebox_hatch(f);
f->type = CMT_STONE;
f->hardness = 5.0;
f->dig_time = 2.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
f->energy_type = CET_DEVICE;
@ -1245,7 +1245,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_hatchw(f);
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
crafting::set1over1Recipe(CONTENT_GLASS,CONTENT_WOOD_HATCH,CONTENT_WOOD_W_HATCH);
@ -1271,7 +1271,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-dooropen";
content_nodebox_hatchw(f);
f->type = CMT_STONE;
f->hardness = 5.0;
f->dig_time = 2.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
f->energy_type = CET_DEVICE;
@ -1302,7 +1302,7 @@ void content_mapnode_door(bool repeat)
content_nodebox_gate(f);
f->setInventoryTextureNodeBox(i,"wood.png","wood.png","wood.png");
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
crafting::setGateRecipe(CONTENT_CRAFTITEM_WOOD_PLANK,CONTENT_WOOD,CONTENT_WOOD_GATE);
@ -1332,7 +1332,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-dooropen";
content_nodebox_gate(f);
f->type = CMT_STONE;
f->hardness = 5.0;
f->dig_time = 2.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
f->energy_type = CET_DEVICE;
@ -1366,7 +1366,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_hatcho(f);
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
@ -1391,7 +1391,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-doorclose";
content_nodebox_hatcho(f);
f->type = CMT_STONE;
f->hardness = 5.0;
f->dig_time = 2.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
f->energy_type = CET_DEVICE;
@ -1421,7 +1421,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_hatchwo(f);
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
@ -1446,7 +1446,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-doorclose";
content_nodebox_hatchwo(f);
f->type = CMT_STONE;
f->hardness = 5.0;
f->dig_time = 2.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
f->energy_type = CET_DEVICE;
@ -1474,7 +1474,7 @@ void content_mapnode_door(bool repeat)
f->fuel_time = 30;
content_nodebox_gateo(f);
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
@ -1497,7 +1497,7 @@ void content_mapnode_door(bool repeat)
f->sound_punch = "env-doorclose";
content_nodebox_gateo(f);
f->type = CMT_STONE;
f->hardness = 5.0;
f->dig_time = 2.0;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
f->energy_type = CET_DEVICE;

View File

@ -41,7 +41,7 @@ void content_mapnode_farm(bool repeat)
f->is_ground_content = true;
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_MUD)+" 1";
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
content_list_add("decrafting",i,1,0);
i = CONTENT_FERTILIZER;
@ -57,7 +57,7 @@ void content_mapnode_farm(bool repeat)
content_nodebox_carpet(f);
f->setInventoryTextureNodeBox(i,"fertilizer.png", "fertilizer.png", "fertilizer.png");
f->type = CMT_DIRT;
f->hardness = 0.4;
f->dig_time = 0.4;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
@ -75,7 +75,7 @@ void content_mapnode_farm(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 30/4;
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
crafting::set5Recipe(CONTENT_CRAFTITEM_WOOD_PLANK,CONTENT_TRELLIS);
@ -97,7 +97,7 @@ void content_mapnode_farm(bool repeat)
f->special_alternate_node = CONTENT_FARM_WHEAT;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
f->hardness = 0.4;
f->dig_time = 0.4;
f->pressure_type = CST_CRUSHABLE;
f->fuel_time = 2;
f->suffocation_per_second = 0;
@ -117,7 +117,7 @@ void content_mapnode_farm(bool repeat)
f->special_alternate_node = CONTENT_FARM_MELON;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
f->hardness = 0.4;
f->dig_time = 0.4;
f->pressure_type = CST_CRUSHABLE;
f->fuel_time = 2;
f->suffocation_per_second = 0;
@ -139,7 +139,7 @@ void content_mapnode_farm(bool repeat)
f->special_alternate_node = CONTENT_FARM_PUMPKIN;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
f->hardness = 0.4;
f->dig_time = 0.4;
f->pressure_type = CST_CRUSHABLE;
f->fuel_time = 2;
f->suffocation_per_second = 0;
@ -161,7 +161,7 @@ void content_mapnode_farm(bool repeat)
f->special_alternate_node = CONTENT_FARM_POTATO;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
f->hardness = 0.4;
f->dig_time = 0.4;
f->pressure_type = CST_CRUSHABLE;
f->fuel_time = 2;
f->suffocation_per_second = 0;
@ -183,7 +183,7 @@ void content_mapnode_farm(bool repeat)
f->special_alternate_node = CONTENT_FARM_CARROT;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
f->hardness = 0.4;
f->dig_time = 0.4;
f->pressure_type = CST_CRUSHABLE;
f->fuel_time = 2;
f->suffocation_per_second = 0;
@ -205,7 +205,7 @@ void content_mapnode_farm(bool repeat)
f->special_alternate_node = CONTENT_FARM_BEETROOT;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
f->hardness = 0.4;
f->dig_time = 0.4;
f->pressure_type = CST_CRUSHABLE;
f->fuel_time = 2;
f->suffocation_per_second = 0;
@ -227,7 +227,7 @@ void content_mapnode_farm(bool repeat)
f->special_alternate_node = CONTENT_FARM_GRAPEVINE;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
f->hardness = 0.4;
f->dig_time = 0.4;
f->pressure_type = CST_CRUSHABLE;
f->fuel_time = 2;
f->suffocation_per_second = 0;
@ -249,7 +249,7 @@ void content_mapnode_farm(bool repeat)
f->special_alternate_node = CONTENT_FARM_COTTON;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
f->hardness = 0.4;
f->dig_time = 0.4;
f->pressure_type = CST_CRUSHABLE;
f->fuel_time = 2;
f->suffocation_per_second = 0;
@ -273,7 +273,7 @@ void content_mapnode_farm(bool repeat)
f->plantgrowth_large_dug_node = CONTENT_CRAFTITEM_WHEAT;
f->plantgrowth_large_gives_small = true;
f->type = CMT_PLANT;
f->hardness = 0.4;
f->dig_time = 0.4;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
@ -291,7 +291,7 @@ void content_mapnode_farm(bool repeat)
f->plantgrowth_large_dug_node = CONTENT_FARM_MELON;
f->plantgrowth_large_count = 1;
f->type = CMT_PLANT;
f->hardness = 0.4;
f->dig_time = 0.4;
f->pressure_type = CST_CRUSHABLE;
i = CONTENT_FARM_PUMPKIN;
@ -308,7 +308,7 @@ void content_mapnode_farm(bool repeat)
f->plantgrowth_large_dug_node = CONTENT_FARM_PUMPKIN;
f->plantgrowth_large_count = 1;
f->type = CMT_PLANT;
f->hardness = 0.4;
f->dig_time = 0.4;
content_list_add("creative",i,1,0);
f->pressure_type = CST_CRUSHABLE;
@ -330,7 +330,7 @@ void content_mapnode_farm(bool repeat)
f->flammable = 1;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
f->hardness = 0.4;
f->dig_time = 0.4;
f->light_source = LIGHT_MAX-1;
crafting::set1Any2Recipe(CONTENT_TORCH,CONTENT_FARM_PUMPKIN,CONTENT_FARM_PUMPKIN_JACK);
content_list_add("creative",i,1,0);
@ -353,7 +353,7 @@ void content_mapnode_farm(bool repeat)
f->plantgrowth_small_dug_node = CONTENT_SEEDS_POTATO;
f->plantgrowth_large_dug_node = CONTENT_CRAFTITEM_POTATO;
f->type = CMT_PLANT;
f->hardness = 0.4;
f->dig_time = 0.4;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
@ -373,7 +373,7 @@ void content_mapnode_farm(bool repeat)
f->plantgrowth_small_dug_node = CONTENT_SEEDS_CARROT;
f->plantgrowth_large_dug_node = CONTENT_CRAFTITEM_CARROT;
f->type = CMT_PLANT;
f->hardness = 0.4;
f->dig_time = 0.4;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
@ -393,7 +393,7 @@ void content_mapnode_farm(bool repeat)
f->plantgrowth_small_dug_node = CONTENT_SEEDS_BEETROOT;
f->plantgrowth_large_dug_node = CONTENT_CRAFTITEM_BEETROOT;
f->type = CMT_PLANT;
f->hardness = 0.4;
f->dig_time = 0.4;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
@ -414,7 +414,7 @@ void content_mapnode_farm(bool repeat)
f->plantgrowth_large_dug_node = CONTENT_CRAFTITEM_GRAPE;
f->plantgrowth_trellis_node = CONTENT_FARM_TRELLIS_GRAPE;
f->type = CMT_PLANT;
f->hardness = 0.4;
f->dig_time = 0.4;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
@ -437,7 +437,7 @@ void content_mapnode_farm(bool repeat)
f->plantgrowth_large_count = 6;
f->plantgrowth_large_gives_small = true;
f->type = CMT_PLANT;
f->hardness = 0.4;
f->dig_time = 0.4;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
@ -461,7 +461,7 @@ void content_mapnode_farm(bool repeat)
f->fuel_time = 30/4;
f->type = CMT_WOOD;
f->type = CMT_PLANT;
f->hardness = 0.4;
f->dig_time = 0.4;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
@ -479,7 +479,7 @@ void content_mapnode_farm(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 30/4;
f->type = CMT_WOOD;
f->hardness = 0.3;
f->dig_time = 0.3;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
@ -499,7 +499,7 @@ void content_mapnode_farm(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 30/4;
f->type = CMT_PLANT;
f->hardness = 0.4;
f->dig_time = 0.4;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
}

View File

@ -46,7 +46,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 30/4;
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
content_nodebox_bookshelf(f);
f->setInventoryTextureNodeBox(i,"wood.png", "wood.png", "wood.png");
if (f->initial_metadata == NULL)
@ -79,7 +79,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 30/4;
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
content_nodebox_bookshelf(f);
f->setInventoryTextureNodeBox(i,"junglewood.png", "junglewood.png", "junglewood.png");
if (f->initial_metadata == NULL)
@ -112,7 +112,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 30/4;
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
content_nodebox_bookshelf(f);
f->setInventoryTextureNodeBox(i,"pine.png", "pine.png", "pine.png");
if (f->initial_metadata == NULL)
@ -145,7 +145,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 30/4;
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
content_nodebox_bookshelf(f);
f->setInventoryTextureNodeBox(i,"applewood.png", "applewood.png", "applewood.png");
if (f->initial_metadata == NULL)
@ -175,7 +175,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_ENDL;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_centre(f);
@ -194,7 +194,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_ENDR;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_left(f);
@ -213,7 +213,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_INNER;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_right(f);
@ -232,7 +232,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_OUTER;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_inner(f);
@ -251,7 +251,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_CHAIR;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_outer(f);
@ -270,7 +270,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_CENTRE;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_chair(f);
@ -299,7 +299,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_ENDL_BLUE;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_centre(f);
@ -318,7 +318,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_ENDR_BLUE;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_left(f);
@ -337,7 +337,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_INNER_BLUE;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_right(f);
@ -356,7 +356,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_OUTER_BLUE;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_inner(f);
@ -375,7 +375,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_CHAIR_BLUE;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_outer(f);
@ -394,7 +394,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_CENTRE_BLUE;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_chair(f);
@ -417,7 +417,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_ENDL_GREEN;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_centre(f);
@ -436,7 +436,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_ENDR_GREEN;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_left(f);
@ -455,7 +455,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_INNER_GREEN;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_right(f);
@ -474,7 +474,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_OUTER_GREEN;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_inner(f);
@ -493,7 +493,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_CHAIR_GREEN;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_outer(f);
@ -512,7 +512,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_CENTRE_GREEN;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_chair(f);
@ -535,7 +535,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_ENDL_ORANGE;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_centre(f);
@ -554,7 +554,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_ENDR_ORANGE;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_left(f);
@ -573,7 +573,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_INNER_ORANGE;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_right(f);
@ -592,7 +592,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_OUTER_ORANGE;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_inner(f);
@ -611,7 +611,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_CHAIR_ORANGE;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_outer(f);
@ -630,7 +630,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_CENTRE_ORANGE;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_chair(f);
@ -653,7 +653,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_ENDL_PURPLE;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_centre(f);
@ -672,7 +672,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_ENDR_PURPLE;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_left(f);
@ -691,7 +691,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_INNER_PURPLE;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_right(f);
@ -710,7 +710,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_OUTER_PURPLE;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_inner(f);
@ -729,7 +729,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_CHAIR_PURPLE;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_outer(f);
@ -748,7 +748,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_CENTRE_PURPLE;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_chair(f);
@ -771,7 +771,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_ENDL_RED;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_centre(f);
@ -790,7 +790,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_ENDR_RED;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_left(f);
@ -809,7 +809,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_INNER_RED;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_right(f);
@ -828,7 +828,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_OUTER_RED;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_inner(f);
@ -847,7 +847,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_CHAIR_RED;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_outer(f);
@ -866,7 +866,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_CENTRE_RED;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_chair(f);
@ -889,7 +889,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_ENDL_YELLOW;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_centre(f);
@ -908,7 +908,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_ENDR_YELLOW;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_left(f);
@ -927,7 +927,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_INNER_YELLOW;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_right(f);
@ -946,7 +946,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_OUTER_YELLOW;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_inner(f);
@ -965,7 +965,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_CHAIR_YELLOW;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_outer(f);
@ -984,7 +984,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_CENTRE_YELLOW;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_chair(f);
@ -1007,7 +1007,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_ENDL_BLACK;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_centre(f);
@ -1026,7 +1026,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_ENDR_BLACK;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_left(f);
@ -1045,7 +1045,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_INNER_BLACK;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_right(f);
@ -1064,7 +1064,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_OUTER_BLACK;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_inner(f);
@ -1083,7 +1083,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_CHAIR_BLACK;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_outer(f);
@ -1102,7 +1102,7 @@ void content_mapnode_furniture(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 15;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_COUCH_CENTRE_BLACK;
f->onpunch_replace_respects_borderstone = true;
content_nodebox_couch_chair(f);
@ -1132,7 +1132,7 @@ void content_mapnode_furniture(bool repeat)
f->onpunch_replace_respects_borderstone = true;
f->setInventoryTextureNodeBox(i,"pine.png", "pine.png", "pine.png");
f->type = CMT_WOOD;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_CRUSHABLE;
{
u16 r[9] = {
@ -1165,7 +1165,7 @@ void content_mapnode_furniture(bool repeat)
f->onpunch_replace_respects_borderstone = true;
f->setInventoryTextureNodeBox(i,"pine.png", "pine.png", "pine.png");
f->type = CMT_WOOD;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
@ -1188,7 +1188,7 @@ void content_mapnode_furniture(bool repeat)
f->onpunch_replace_respects_borderstone = true;
f->setInventoryTextureNodeBox(i,"pine.png", "pine.png", "pine.png");
f->type = CMT_WOOD;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
@ -1211,7 +1211,7 @@ void content_mapnode_furniture(bool repeat)
f->onpunch_replace_respects_borderstone = true;
f->setInventoryTextureNodeBox(i,"pine.png", "pine.png", "pine.png");
f->type = CMT_WOOD;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
@ -1234,7 +1234,7 @@ void content_mapnode_furniture(bool repeat)
f->onpunch_replace_respects_borderstone = true;
f->setInventoryTextureNodeBox(i,"pine.png", "pine.png", "pine.png");
f->type = CMT_WOOD;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
@ -1257,7 +1257,7 @@ void content_mapnode_furniture(bool repeat)
f->onpunch_replace_respects_borderstone = true;
f->setInventoryTextureNodeBox(i,"pine.png", "pine.png", "pine.png");
f->type = CMT_WOOD;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
@ -1277,7 +1277,7 @@ void content_mapnode_furniture(bool repeat)
content_nodebox_table(f);
f->setInventoryTextureNodeBox(i,"pine.png", "pine.png", "pine.png");
f->type = CMT_WOOD;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_CRUSHABLE;
{
u16 r[9] = {
@ -1314,7 +1314,7 @@ void content_mapnode_furniture(bool repeat)
f->onact_also_affects = v3s16(0,0,1);
content_nodebox_bed_head(f);
f->type = CMT_WOOD;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_SOLID;
crafting::setBedRecipe(CONTENT_COTTON,CONTENT_BED_HEAD);
content_list_add("craftguide",i,1,0);
@ -1346,7 +1346,7 @@ void content_mapnode_furniture(bool repeat)
f->onact_also_affects = v3s16(0,0,-1);
content_nodebox_bed_foot(f);
f->type = CMT_WOOD;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
@ -1373,7 +1373,7 @@ void content_mapnode_furniture(bool repeat)
f->onact_also_affects = v3s16(0,0,1);
content_nodebox_bed_head(f);
f->type = CMT_WOOD;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_SOLID;
crafting::setBedRecipe(CONTENT_COTTON_BLUE,CONTENT_BED_BLUE_HEAD);
content_list_add("craftguide",i,1,0);
@ -1405,7 +1405,7 @@ void content_mapnode_furniture(bool repeat)
f->onact_also_affects = v3s16(0,0,-1);
content_nodebox_bed_foot(f);
f->type = CMT_WOOD;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
@ -1432,7 +1432,7 @@ void content_mapnode_furniture(bool repeat)
f->onact_also_affects = v3s16(0,0,1);
content_nodebox_bed_head(f);
f->type = CMT_WOOD;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_SOLID;
crafting::setBedRecipe(CONTENT_COTTON_GREEN,CONTENT_BED_GREEN_HEAD);
content_list_add("craftguide",i,1,0);
@ -1464,7 +1464,7 @@ void content_mapnode_furniture(bool repeat)
f->onact_also_affects = v3s16(0,0,-1);
content_nodebox_bed_foot(f);
f->type = CMT_WOOD;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
@ -1491,7 +1491,7 @@ void content_mapnode_furniture(bool repeat)
f->onact_also_affects = v3s16(0,0,1);
content_nodebox_bed_head(f);
f->type = CMT_WOOD;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_SOLID;
crafting::setBedRecipe(CONTENT_COTTON_ORANGE,CONTENT_BED_ORANGE_HEAD);
content_list_add("craftguide",i,1,0);
@ -1523,7 +1523,7 @@ void content_mapnode_furniture(bool repeat)
f->onact_also_affects = v3s16(0,0,-1);
content_nodebox_bed_foot(f);
f->type = CMT_WOOD;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
@ -1550,7 +1550,7 @@ void content_mapnode_furniture(bool repeat)
f->onact_also_affects = v3s16(0,0,1);
content_nodebox_bed_head(f);
f->type = CMT_WOOD;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_SOLID;
crafting::setBedRecipe(CONTENT_COTTON_PURPLE,CONTENT_BED_PURPLE_HEAD);
content_list_add("craftguide",i,1,0);
@ -1582,7 +1582,7 @@ void content_mapnode_furniture(bool repeat)
f->onact_also_affects = v3s16(0,0,-1);
content_nodebox_bed_foot(f);
f->type = CMT_WOOD;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
@ -1609,7 +1609,7 @@ void content_mapnode_furniture(bool repeat)
f->onact_also_affects = v3s16(0,0,1);
content_nodebox_bed_head(f);
f->type = CMT_WOOD;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_SOLID;
crafting::setBedRecipe(CONTENT_COTTON_RED,CONTENT_BED_RED_HEAD);
content_list_add("craftguide",i,1,0);
@ -1641,7 +1641,7 @@ void content_mapnode_furniture(bool repeat)
f->onact_also_affects = v3s16(0,0,-1);
content_nodebox_bed_foot(f);
f->type = CMT_WOOD;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
@ -1668,7 +1668,7 @@ void content_mapnode_furniture(bool repeat)
f->onact_also_affects = v3s16(0,0,1);
content_nodebox_bed_head(f);
f->type = CMT_WOOD;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_SOLID;
crafting::setBedRecipe(CONTENT_COTTON_YELLOW,CONTENT_BED_YELLOW_HEAD);
content_list_add("craftguide",i,1,0);
@ -1700,7 +1700,7 @@ void content_mapnode_furniture(bool repeat)
f->onact_also_affects = v3s16(0,0,-1);
content_nodebox_bed_foot(f);
f->type = CMT_WOOD;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
@ -1727,7 +1727,7 @@ void content_mapnode_furniture(bool repeat)
f->onact_also_affects = v3s16(0,0,1);
content_nodebox_bed_head(f);
f->type = CMT_WOOD;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_SOLID;
crafting::setBedRecipe(CONTENT_COTTON_BLACK,CONTENT_BED_BLACK_HEAD);
content_list_add("craftguide",i,1,0);
@ -1759,7 +1759,7 @@ void content_mapnode_furniture(bool repeat)
f->onact_also_affects = v3s16(0,0,-1);
content_nodebox_bed_foot(f);
f->type = CMT_WOOD;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
@ -1781,7 +1781,7 @@ void content_mapnode_furniture(bool repeat)
f->onact_also_affects = v3s16(0,0,1);
content_nodebox_slab(f);
f->type = CMT_PLANT;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_CRUSHABLE;
{
content_t r[9] = {
@ -1815,7 +1815,7 @@ void content_mapnode_furniture(bool repeat)
f->onact_also_affects = v3s16(0,0,-1);
content_nodebox_slab(f);
f->type = CMT_PLANT;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
@ -1839,7 +1839,7 @@ void content_mapnode_furniture(bool repeat)
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_PAINTING_WHITE)+" 1";
f->type = CMT_WOOD;
content_nodebox_painting(f);
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
{
u16 r[9] = {
@ -1873,7 +1873,7 @@ void content_mapnode_furniture(bool repeat)
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_PAINTING_RED)+" 1";
f->type = CMT_WOOD;
content_nodebox_painting(f);
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
{
u16 r[9] = {
@ -1907,7 +1907,7 @@ void content_mapnode_furniture(bool repeat)
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_PAINTING_GREEN)+" 1";
f->type = CMT_WOOD;
content_nodebox_painting(f);
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
{
u16 r[9] = {
@ -1941,7 +1941,7 @@ void content_mapnode_furniture(bool repeat)
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_PAINTING_BLUE)+" 1";
f->type = CMT_WOOD;
content_nodebox_painting(f);
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
{
u16 r[9] = {
@ -1975,7 +1975,7 @@ void content_mapnode_furniture(bool repeat)
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_PAINTING_CANVAS)+" 1";
f->type = CMT_WOOD;
content_nodebox_painting(f);
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
crafting::set1Any2Recipe(CONTENT_PAINTING_WHITE,CONTENT_CRAFTITEM_STARCH,CONTENT_PAINTING_CANVAS);
crafting::set1Any2Recipe(CONTENT_PAINTING_RED,CONTENT_CRAFTITEM_STARCH,CONTENT_PAINTING_CANVAS);
@ -2010,7 +2010,7 @@ void content_mapnode_furniture(bool repeat)
f->fuel_time = 1;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_WOOD;
f->hardness = 0.1;
f->dig_time = 0.1;
content_nodebox_clock(f);
f->setInventoryTextureNodeBox(i,"clock.png","clock_front.png","clock.png");
f->pressure_type = CST_CRUSHABLE;

View File

@ -49,7 +49,7 @@ void content_mapnode_plants(bool repeat)
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_CHARCOAL)+" 1";
f->fuel_time = 30;
f->type = CMT_TREE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->ondig_special_drop = CONTENT_WOOD;
f->ondig_special_drop_count = 6;
f->ondig_special_tool = TT_AXE;
@ -70,7 +70,7 @@ void content_mapnode_plants(bool repeat)
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_CHARCOAL)+" 1";
f->fuel_time = 30;
f->type = CMT_TREE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->ondig_special_drop = CONTENT_WOOD;
f->ondig_special_drop_count = 6;
f->ondig_special_tool = TT_AXE;
@ -91,7 +91,7 @@ void content_mapnode_plants(bool repeat)
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_CHARCOAL)+" 1";
f->fuel_time = 30;
f->type = CMT_TREE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->ondig_special_drop = CONTENT_JUNGLEWOOD;
f->ondig_special_drop_count = 6;
f->ondig_special_tool = TT_AXE;
@ -111,7 +111,7 @@ void content_mapnode_plants(bool repeat)
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_CHARCOAL)+" 1";
f->fuel_time = 25;
f->type = CMT_TREE;
f->hardness = 0.8;
f->dig_time = 0.8;
f->ondig_special_drop = CONTENT_WOOD_PINE;
f->ondig_special_drop_count = 6;
f->ondig_special_tool = TT_AXE;
@ -134,7 +134,7 @@ void content_mapnode_plants(bool repeat)
f->special_alternate_node = CONTENT_LEAVES;
f->fuel_time = 20;
f->type = CMT_TREE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -154,7 +154,7 @@ void content_mapnode_plants(bool repeat)
f->special_alternate_node = CONTENT_JUNGLELEAVES;
f->fuel_time = 20;
f->type = CMT_TREE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -174,7 +174,7 @@ void content_mapnode_plants(bool repeat)
f->special_alternate_node = CONTENT_APPLE_LEAVES;
f->fuel_time = 20;
f->type = CMT_TREE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -194,7 +194,7 @@ void content_mapnode_plants(bool repeat)
f->special_alternate_node = CONTENT_CONIFER_LEAVES;
f->fuel_time = 20;
f->type = CMT_TREE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -214,7 +214,7 @@ void content_mapnode_plants(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 30/32;
f->type = CMT_PLANT;
f->hardness = 0.20;
f->dig_time = 0.20;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -235,7 +235,7 @@ void content_mapnode_plants(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 30/32;
f->type = CMT_PLANT;
f->hardness = 0.20;
f->dig_time = 0.20;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -266,7 +266,7 @@ void content_mapnode_plants(bool repeat)
f->place_on_drop = CONTENT_SAPLING;
f->place_on_drop_alternate = CONTENT_WILDGRASS_SHORT;
f->type = CMT_PLANT;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("decrafting",i,1,0);
@ -298,7 +298,7 @@ void content_mapnode_plants(bool repeat)
f->place_on_drop = CONTENT_SAPLING;
f->place_on_drop_alternate = CONTENT_WILDGRASS_SHORT;
f->type = CMT_PLANT;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("decrafting",i,1,0);
@ -330,7 +330,7 @@ void content_mapnode_plants(bool repeat)
f->place_on_drop = CONTENT_SAPLING;
f->place_on_drop_alternate = CONTENT_WILDGRASS_SHORT;
f->type = CMT_PLANT;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("decrafting",i,1,0);
@ -362,7 +362,7 @@ void content_mapnode_plants(bool repeat)
f->place_on_drop = CONTENT_SAPLING;
f->place_on_drop_alternate = CONTENT_WILDGRASS_SHORT;
f->type = CMT_PLANT;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("decrafting",i,1,0);
@ -395,7 +395,7 @@ void content_mapnode_plants(bool repeat)
f->place_on_drop = CONTENT_APPLE_SAPLING;
f->place_on_drop_alternate = CONTENT_WILDGRASS_SHORT;
f->type = CMT_PLANT;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("decrafting",i,1,0);
@ -427,7 +427,7 @@ void content_mapnode_plants(bool repeat)
f->place_on_drop = CONTENT_JUNGLESAPLING;
f->place_on_drop_alternate = CONTENT_WILDGRASS_SHORT;
f->type = CMT_PLANT;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("decrafting",i,1,0);
@ -459,7 +459,7 @@ void content_mapnode_plants(bool repeat)
f->place_on_drop = CONTENT_CONIFER_SAPLING;
f->place_on_drop_alternate = CONTENT_WILDGRASS_SHORT;
f->type = CMT_PLANT;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("decrafting",i,1,0);
@ -484,7 +484,7 @@ void content_mapnode_plants(bool repeat)
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_RESIN)+" 1";
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -509,7 +509,7 @@ void content_mapnode_plants(bool repeat)
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_RESIN)+" 1";
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -534,7 +534,7 @@ void content_mapnode_plants(bool repeat)
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_ASH)+" 1";
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -559,7 +559,7 @@ void content_mapnode_plants(bool repeat)
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_RESIN)+" 1";
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -584,7 +584,7 @@ void content_mapnode_plants(bool repeat)
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_RESIN)+" 1";
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -609,7 +609,7 @@ void content_mapnode_plants(bool repeat)
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_RESIN)+" 1";
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -635,7 +635,7 @@ void content_mapnode_plants(bool repeat)
f->extra_dug_item_rarity = 1;
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_APPLE_LEAVES)+" 1";
f->type = CMT_PLANT;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("decrafting",i,1,0);
@ -657,7 +657,7 @@ void content_mapnode_plants(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -677,7 +677,7 @@ void content_mapnode_plants(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 30/32;
f->type = CMT_PLANT;
f->hardness = 0.20;
f->dig_time = 0.20;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -697,7 +697,7 @@ void content_mapnode_plants(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 30/32;
f->type = CMT_PLANT;
f->hardness = 0.20;
f->dig_time = 0.20;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -718,7 +718,7 @@ void content_mapnode_plants(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 30/32;
f->type = CMT_PLANT;
f->hardness = 0.20;
f->dig_time = 0.20;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -781,7 +781,7 @@ void content_mapnode_plants(bool repeat)
));
f->setInventoryTextureCube("cactus_top.png", "cactus_side.png", "cactus_side.png");
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_CRUSHABLE;
content_list_add("creative",i,1,0);
@ -803,7 +803,7 @@ void content_mapnode_plants(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 30/32;
f->type = CMT_PLANT;
f->hardness = 0.25;
f->dig_time = 0.25;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -823,7 +823,7 @@ void content_mapnode_plants(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 1;
f->type = CMT_WOOD;
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
f->fertilizer_affects = true;
@ -844,7 +844,7 @@ void content_mapnode_plants(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 1;
f->type = CMT_WOOD;
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
f->fertilizer_affects = true;
@ -865,7 +865,7 @@ void content_mapnode_plants(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 1;
f->type = CMT_WOOD;
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
f->fertilizer_affects = true;
@ -886,7 +886,7 @@ void content_mapnode_plants(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 1;
f->type = CMT_WOOD;
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
f->fertilizer_affects = true;
@ -910,7 +910,7 @@ void content_mapnode_plants(bool repeat)
f->ondig_replace_node = CONTENT_APPLE_LEAVES;
f->ondig_replace_node_requires = CONTENT_APPLE_TREE;
f->type = CMT_PLANT;
f->hardness = 0.0;
f->dig_time = 0.0;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -935,7 +935,7 @@ void content_mapnode_plants(bool repeat)
//f->pointable = false;
f->buildable_to = true;
f->type = CMT_PLANT;
f->hardness = 0.10;
f->dig_time = 0.10;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
@ -957,7 +957,7 @@ void content_mapnode_plants(bool repeat)
f->fuel_time = 30/32;
f->buildable_to = true;
f->type = CMT_PLANT;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
@ -979,7 +979,7 @@ void content_mapnode_plants(bool repeat)
f->fuel_time = 30/32;
f->buildable_to = true;
f->type = CMT_PLANT;
f->hardness = 0.10;
f->dig_time = 0.10;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
@ -1001,7 +1001,7 @@ void content_mapnode_plants(bool repeat)
f->fuel_time = 30/32;
f->buildable_to = true;
f->type = CMT_PLANT;
f->hardness = 0.10;
f->dig_time = 0.10;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
@ -1023,7 +1023,7 @@ void content_mapnode_plants(bool repeat)
f->fuel_time = 30/32;
f->buildable_to = true;
f->type = CMT_PLANT;
f->hardness = 0.10;
f->dig_time = 0.10;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -1046,7 +1046,7 @@ void content_mapnode_plants(bool repeat)
f->fuel_time = 30/32;
f->buildable_to = true;
f->type = CMT_PLANT;
f->hardness = 0.10;
f->dig_time = 0.10;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -1069,7 +1069,7 @@ void content_mapnode_plants(bool repeat)
f->fuel_time = 30/32;
f->buildable_to = true;
f->type = CMT_PLANT;
f->hardness = 0.10;
f->dig_time = 0.10;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -1088,7 +1088,7 @@ void content_mapnode_plants(bool repeat)
f->special_alternate_node = CONTENT_TEA;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
f->hardness = 0.4;
f->dig_time = 0.4;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -1111,7 +1111,7 @@ void content_mapnode_plants(bool repeat)
f->fuel_time = 30/32;
f->buildable_to = true;
f->type = CMT_PLANT;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -1131,7 +1131,7 @@ void content_mapnode_plants(bool repeat)
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_COFFEE_BEANS)+" 1";
f->type = CMT_PLANT;
f->hardness = 0.4;
f->dig_time = 0.4;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -1153,7 +1153,7 @@ void content_mapnode_plants(bool repeat)
f->fuel_time = 30/32;
f->buildable_to = true;
f->type = CMT_PLANT;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_list_add("creative",i,1,0);
@ -1179,7 +1179,7 @@ void content_mapnode_plants(bool repeat)
f->fuel_time = 30/16;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
f->onpunch_gives_inventory = true;
@ -1209,7 +1209,7 @@ void content_mapnode_plants(bool repeat)
f->fuel_time = 30/16;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
f->hardness = 0.15;
f->dig_time = 0.15;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
f->onpunch_gives_inventory = true;

View File

@ -50,7 +50,7 @@ void content_mapnode_sign(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new SignNodeMetadata("Some sign");
f->type = CMT_WOOD;
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
f->alternate_lockstate_node = CONTENT_LOCKABLE_SIGN;
@ -80,7 +80,7 @@ void content_mapnode_sign(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new SignNodeMetadata("Some sign");
f->type = CMT_WOOD;
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
f->alternate_lockstate_node = CONTENT_LOCKABLE_SIGN_WALL;
@ -105,7 +105,7 @@ void content_mapnode_sign(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new SignNodeMetadata("Some sign");
f->type = CMT_WOOD;
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
f->alternate_lockstate_node = CONTENT_LOCKABLE_SIGN_UD;
@ -130,7 +130,7 @@ void content_mapnode_sign(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new SignNodeMetadata("Some sign");
f->type = CMT_WOOD;
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_sign(f);
@ -160,7 +160,7 @@ void content_mapnode_sign(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new SignNodeMetadata("Some sign");
f->type = CMT_WOOD;
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_sign_wall(f);
@ -184,7 +184,7 @@ void content_mapnode_sign(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new SignNodeMetadata("Some sign");
f->type = CMT_WOOD;
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_sign_ud(f);
@ -208,7 +208,7 @@ void content_mapnode_sign(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new SignNodeMetadata("Some sign");
f->type = CMT_WOOD;
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_sign(f);
@ -237,7 +237,7 @@ void content_mapnode_sign(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new SignNodeMetadata("Some sign");
f->type = CMT_WOOD;
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_sign_wall(f);
@ -261,7 +261,7 @@ void content_mapnode_sign(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new SignNodeMetadata("Some sign");
f->type = CMT_WOOD;
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_sign_ud(f);
@ -285,7 +285,7 @@ void content_mapnode_sign(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new SignNodeMetadata("Some sign");
f->type = CMT_WOOD;
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_sign(f);
@ -314,7 +314,7 @@ void content_mapnode_sign(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new SignNodeMetadata("Some sign");
f->type = CMT_WOOD;
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_sign_wall(f);
@ -338,7 +338,7 @@ void content_mapnode_sign(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new SignNodeMetadata("Some sign");
f->type = CMT_WOOD;
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_sign_ud(f);
@ -362,7 +362,7 @@ void content_mapnode_sign(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new SignNodeMetadata("Some sign");
f->type = CMT_STONE;
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_sign(f);
@ -391,7 +391,7 @@ void content_mapnode_sign(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new SignNodeMetadata("Some sign");
f->type = CMT_STONE;
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_sign_wall(f);
@ -415,7 +415,7 @@ void content_mapnode_sign(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new SignNodeMetadata("Some sign");
f->type = CMT_STONE;
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_sign_ud(f);
@ -443,7 +443,7 @@ void content_mapnode_sign(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new LockingSignNodeMetadata("Some sign");
f->type = CMT_WOOD;
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
f->alternate_lockstate_node = CONTENT_SIGN_WALL;
@ -469,7 +469,7 @@ void content_mapnode_sign(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new LockingSignNodeMetadata("Some sign");
f->type = CMT_WOOD;
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
f->alternate_lockstate_node = CONTENT_SIGN;
@ -499,7 +499,7 @@ void content_mapnode_sign(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new LockingSignNodeMetadata("Some sign");
f->type = CMT_WOOD;
f->hardness = 0.1;
f->dig_time = 0.1;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
f->alternate_lockstate_node = CONTENT_SIGN_UD;

View File

@ -44,7 +44,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slab(f);
f->setInventoryTextureNodeBox(i,"roughstone.png", "roughstone.png", "roughstone.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->suffocation_per_second = 0;
crafting::setRow3Recipe(CONTENT_ROUGHSTONE,CONTENT_ROUGHSTONE_SLAB);
content_list_add("craftguide",i,1,0);
@ -62,7 +62,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slab(f);
f->setInventoryTextureNodeBox(i,"cobble.png", "cobble.png", "cobble.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->suffocation_per_second = 0;
crafting::setRow3Recipe(CONTENT_COBBLE,CONTENT_COBBLE_SLAB);
content_list_add("craftguide",i,1,0);
@ -80,7 +80,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slab(f);
f->setInventoryTextureNodeBox(i,"mossycobble.png", "mossycobble.png", "mossycobble.png");
f->type = CMT_STONE;
f->hardness = 0.8;
f->dig_time = 0.8;
f->suffocation_per_second = 0;
crafting::setRow3Recipe(CONTENT_MOSSYCOBBLE,CONTENT_MOSSYCOBBLE_SLAB);
content_list_add("craftguide",i,1,0);
@ -97,7 +97,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slab(f);
f->setInventoryTextureNodeBox(i,"stone.png", "stone.png", "stone.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->suffocation_per_second = 0;
crafting::setRow3Recipe(CONTENT_STONE,CONTENT_STONE_SLAB);
content_list_add("craftguide",i,1,0);
@ -116,7 +116,7 @@ void content_mapnode_slab(bool repeat)
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->hardness = 0.75;
f->dig_time = 0.75;
f->suffocation_per_second = 0;
crafting::setRow3Recipe(CONTENT_WOOD,CONTENT_WOOD_SLAB);
content_list_add("craftguide",i,1,0);
@ -135,7 +135,7 @@ void content_mapnode_slab(bool repeat)
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->hardness = 1.0;
f->dig_time = 1.0;
f->suffocation_per_second = 0;
crafting::setRow3Recipe(CONTENT_JUNGLEWOOD,CONTENT_JUNGLE_SLAB);
content_list_add("craftguide",i,1,0);
@ -156,7 +156,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slab(f);
f->setInventoryTextureNodeBox(i,"brick_top.png", "brick.png", "brick_side.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->suffocation_per_second = 0;
crafting::setRow3Recipe(CONTENT_BRICK,CONTENT_BRICK_SLAB);
content_list_add("craftguide",i,1,0);
@ -173,7 +173,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slab(f);
f->setInventoryTextureNodeBox(i,"sandstone.png", "sandstone.png", "sandstone.png");
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->suffocation_per_second = 0;
crafting::setRow3Recipe(CONTENT_SANDSTONE,CONTENT_SANDSTONE_SLAB);
content_list_add("craftguide",i,1,0);
@ -198,7 +198,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slab(f);
f->setInventoryTextureNodeBox(i,"glass.png", "glass_slab.png", "glass_slab.png^glass.png");
f->type = CMT_GLASS;
f->hardness = 0.15;
f->dig_time = 0.15;
f->suffocation_per_second = 0;
crafting::setRow3Recipe(CONTENT_GLASS,CONTENT_GLASS_SLAB);
content_list_add("craftguide",i,1,0);
@ -223,7 +223,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slab(f);
f->setInventoryTextureNodeBox(i,"glass.png^glass_pane_blue_side.png", "glass_slab.png^glass_pane_blue_side.png", "glass_slab.png^glass_pane_blue_side.png");
f->type = CMT_GLASS;
f->hardness = 0.15;
f->dig_time = 0.15;
f->suffocation_per_second = 0;
crafting::setRow3Recipe(CONTENT_GLASS,CONTENT_GLASS_BLUE_SLAB);
crafting::set1Any2Recipe(CONTENT_GLASS_SLAB,CONTENT_CRAFTITEM_DYE_BLUE,CONTENT_GLASS_BLUE_SLAB);
@ -249,7 +249,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slab(f);
f->setInventoryTextureNodeBox(i,"glass.png^glass_pane_green_side.png", "glass_slab.png^glass_pane_green_side.png", "glass_slab.png^glass_pane_green_side.png");
f->type = CMT_GLASS;
f->hardness = 0.15;
f->dig_time = 0.15;
f->suffocation_per_second = 0;
crafting::setRow3Recipe(CONTENT_GLASS,CONTENT_GLASS_GREEN_SLAB);
crafting::set1Any2Recipe(CONTENT_GLASS_SLAB,CONTENT_CRAFTITEM_DYE_GREEN,CONTENT_GLASS_GREEN_SLAB);
@ -275,7 +275,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slab(f);
f->setInventoryTextureNodeBox(i,"glass.png^glass_pane_orange_side.png", "glass_slab.png^glass_pane_orange_side.png", "glass_slab.png^glass_pane_orange_side.png");
f->type = CMT_GLASS;
f->hardness = 0.15;
f->dig_time = 0.15;
f->suffocation_per_second = 0;
crafting::setRow3Recipe(CONTENT_GLASS,CONTENT_GLASS_ORANGE_SLAB);
crafting::set1Any2Recipe(CONTENT_GLASS_SLAB,CONTENT_CRAFTITEM_DYE_ORANGE,CONTENT_GLASS_ORANGE_SLAB);
@ -301,7 +301,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slab(f);
f->setInventoryTextureNodeBox(i,"glass.png^glass_pane_purple_side.png", "glass_slab.png^glass_pane_purple_side.png", "glass_slab.png^glass_pane_purple_side.png");
f->type = CMT_GLASS;
f->hardness = 0.15;
f->dig_time = 0.15;
f->suffocation_per_second = 0;
crafting::setRow3Recipe(CONTENT_GLASS,CONTENT_GLASS_PURPLE_SLAB);
crafting::set1Any2Recipe(CONTENT_GLASS_SLAB,CONTENT_CRAFTITEM_DYE_PURPLE,CONTENT_GLASS_PURPLE_SLAB);
@ -327,7 +327,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slab(f);
f->setInventoryTextureNodeBox(i,"glass.png^glass_pane_red_side.png", "glass_slab.png^glass_pane_red_side.png", "glass_slab.png^glass_pane_red_side.png");
f->type = CMT_GLASS;
f->hardness = 0.15;
f->dig_time = 0.15;
f->suffocation_per_second = 0;
crafting::setRow3Recipe(CONTENT_GLASS,CONTENT_GLASS_RED_SLAB);
crafting::set1Any2Recipe(CONTENT_GLASS_SLAB,CONTENT_CRAFTITEM_DYE_RED,CONTENT_GLASS_RED_SLAB);
@ -353,7 +353,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slab(f);
f->setInventoryTextureNodeBox(i,"glass.png^glass_pane_yellow_side.png", "glass_slab.png^glass_pane_yellow_side.png", "glass_slab.png^glass_pane_yellow_side.png");
f->type = CMT_GLASS;
f->hardness = 0.15;
f->dig_time = 0.15;
f->suffocation_per_second = 0;
crafting::setRow3Recipe(CONTENT_GLASS,CONTENT_GLASS_YELLOW_SLAB);
crafting::set1Any2Recipe(CONTENT_GLASS_SLAB,CONTENT_CRAFTITEM_DYE_YELLOW,CONTENT_GLASS_YELLOW_SLAB);
@ -379,7 +379,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slab(f);
f->setInventoryTextureNodeBox(i,"glass.png^glass_pane_black_side.png", "glass_slab.png^glass_pane_black_side.png", "glass_slab.png^glass_pane_black_side.png");
f->type = CMT_GLASS;
f->hardness = 0.15;
f->dig_time = 0.15;
f->suffocation_per_second = 0;
crafting::setRow3Recipe(CONTENT_GLASS,CONTENT_GLASS_BLACK_SLAB);
crafting::set1Any2Recipe(CONTENT_GLASS_SLAB,CONTENT_CRAFTITEM_DYE_BLACK,CONTENT_GLASS_BLACK_SLAB);
@ -398,7 +398,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slab(f);
f->setInventoryTextureNodeBox(i,"limestone.png", "limestone.png", "limestone.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->suffocation_per_second = 0;
crafting::setRow3Recipe(CONTENT_LIMESTONE,CONTENT_LIMESTONE_SLAB);
content_list_add("craftguide",i,1,0);
@ -416,7 +416,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slabud(f);
f->setInventoryTextureNodeBox(i,"roughstone.png", "roughstone.png", "roughstone.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->suffocation_per_second = 0;
i = CONTENT_COBBLE_SLAB_UD;
@ -431,7 +431,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slabud(f);
f->setInventoryTextureNodeBox(i,"cobble.png", "cobble.png", "cobble.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->suffocation_per_second = 0;
i = CONTENT_MOSSYCOBBLE_SLAB_UD;
@ -445,7 +445,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slabud(f);
f->setInventoryTextureNodeBox(i,"mossycobble.png", "mossycobble.png", "mossycobble.png");
f->type = CMT_STONE;
f->hardness = 0.8;
f->dig_time = 0.8;
f->suffocation_per_second = 0;
i = CONTENT_STONE_SLAB_UD;
@ -458,7 +458,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slabud(f);
f->setInventoryTextureNodeBox(i,"stone.png", "stone.png", "stone.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->suffocation_per_second = 0;
i = CONTENT_WOOD_SLAB_UD;
@ -473,7 +473,7 @@ void content_mapnode_slab(bool repeat)
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->hardness = 0.75;
f->dig_time = 0.75;
f->suffocation_per_second = 0;
i = CONTENT_JUNGLE_SLAB_UD;
@ -488,7 +488,7 @@ void content_mapnode_slab(bool repeat)
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->hardness = 1.0;
f->dig_time = 1.0;
f->suffocation_per_second = 0;
i = CONTENT_BRICK_SLAB_UD;
@ -505,7 +505,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slabud(f);
f->setInventoryTextureNodeBox(i,"brick_top.png", "brick.png^[transformfy", "brick_side.png^[transformfy");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->suffocation_per_second = 0;
i = CONTENT_SANDSTONE_SLAB_UD;
@ -518,7 +518,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slabud(f);
f->setInventoryTextureNodeBox(i,"sandstone.png", "sandstone.png", "sandstone.png");
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->suffocation_per_second = 0;
i = CONTENT_GLASS_SLAB_UD;
@ -540,7 +540,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slabud(f);
f->setInventoryTextureNodeBox(i,"glass.png", "glass_slab.png^glass.png", "glass_slab.png^glass.png");
f->type = CMT_GLASS;
f->hardness = 0.15;
f->dig_time = 0.15;
f->suffocation_per_second = 0;
i = CONTENT_GLASS_BLUE_SLAB_UD;
@ -562,7 +562,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slabud(f);
f->setInventoryTextureNodeBox(i,"glass.png^glass_pane_blue_side.png", "glass_slab.png^glass_pane_blue_side.png", "glass_slab.png^glass_pane_blue_side.png");
f->type = CMT_GLASS;
f->hardness = 0.15;
f->dig_time = 0.15;
f->suffocation_per_second = 0;
i = CONTENT_GLASS_GREEN_SLAB_UD;
@ -584,7 +584,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slabud(f);
f->setInventoryTextureNodeBox(i,"glass.png^glass_pane_green_side.png", "glass_slab.png^glass_pane_green_side.png", "glass_slab.png^glass_pane_green_side.png");
f->type = CMT_GLASS;
f->hardness = 0.15;
f->dig_time = 0.15;
f->suffocation_per_second = 0;
i = CONTENT_GLASS_ORANGE_SLAB_UD;
@ -606,7 +606,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slabud(f);
f->setInventoryTextureNodeBox(i,"glass.png^glass_pane_orange_side.png", "glass_slab.png^glass_pane_orange_side.png", "glass_slab.png^glass_pane_orange_side.png");
f->type = CMT_GLASS;
f->hardness = 0.15;
f->dig_time = 0.15;
f->suffocation_per_second = 0;
i = CONTENT_GLASS_PURPLE_SLAB_UD;
@ -628,7 +628,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slabud(f);
f->setInventoryTextureNodeBox(i,"glass.png^glass_pane_purple_side.png", "glass_slab.png^glass_pane_purple_side.png", "glass_slab.png^glass_pane_purple_side.png");
f->type = CMT_GLASS;
f->hardness = 0.15;
f->dig_time = 0.15;
f->suffocation_per_second = 0;
i = CONTENT_GLASS_RED_SLAB_UD;
@ -650,7 +650,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slabud(f);
f->setInventoryTextureNodeBox(i,"glass.png^glass_pane_red_side.png", "glass_slab.png^glass_pane_red_side.png", "glass_slab.png^glass_pane_red_side.png");
f->type = CMT_GLASS;
f->hardness = 0.15;
f->dig_time = 0.15;
f->suffocation_per_second = 0;
i = CONTENT_GLASS_YELLOW_SLAB_UD;
@ -672,7 +672,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slabud(f);
f->setInventoryTextureNodeBox(i,"glass.png^glass_pane_yellow_side.png", "glass_slab.png^glass_pane_yellow_side.png", "glass_slab.png^glass_pane_yellow_side.png");
f->type = CMT_GLASS;
f->hardness = 0.15;
f->dig_time = 0.15;
f->suffocation_per_second = 0;
i = CONTENT_GLASS_BLACK_SLAB_UD;
@ -694,7 +694,7 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slabud(f);
f->setInventoryTextureNodeBox(i,"glass.png^glass_pane_black_side.png", "glass_slab.png^glass_pane_black_side.png", "glass_slab.png^glass_pane_black_side.png");
f->type = CMT_GLASS;
f->hardness = 0.15;
f->dig_time = 0.15;
f->suffocation_per_second = 0;
i = CONTENT_LIMESTONE_SLAB_UD;
@ -708,6 +708,6 @@ void content_mapnode_slab(bool repeat)
content_nodebox_slabud(f);
f->setInventoryTextureNodeBox(i,"limestone.png", "limestone.png", "limestone.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->suffocation_per_second = 0;
}

View File

@ -48,7 +48,7 @@ void content_mapnode_special(bool repeat)
f->fuel_time = 15;
f->special_alternate_node = CONTENT_WOOD;
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_fence_inv(f);
@ -74,7 +74,7 @@ void content_mapnode_special(bool repeat)
f->air_equivalent = true; // grass grows underneath
f->special_alternate_node = CONTENT_STEEL;
f->type = CMT_STONE;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
f->destructive_mob_safe = true;
@ -101,7 +101,7 @@ void content_mapnode_special(bool repeat)
f->fuel_time = 15;
f->special_alternate_node = CONTENT_JUNGLEWOOD;
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_fence_inv(f);
@ -127,7 +127,7 @@ void content_mapnode_special(bool repeat)
f->fuel_time = 15;
f->special_alternate_node = CONTENT_WOOD_PINE;
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_fence_inv(f);
@ -153,7 +153,7 @@ void content_mapnode_special(bool repeat)
f->fuel_time = 15;
f->special_alternate_node = CONTENT_APPLEWOOD;
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_fence_inv(f);
@ -176,7 +176,7 @@ void content_mapnode_special(bool repeat)
f->air_equivalent = true; // grass grows underneath
f->special_alternate_node = CONTENT_STEEL;
f->type = CMT_STONE;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_SOLID;
f->suffocation_per_second = 0;
content_nodebox_bars(f);
@ -205,7 +205,7 @@ void content_mapnode_special(bool repeat)
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->air_equivalent = true; // grass grows underneath
f->type = CMT_DIRT;
f->hardness = 0.75;
f->dig_time = 0.75;
f->suffocation_per_second = 0;
{
u16 r[9] = {
@ -232,7 +232,7 @@ void content_mapnode_special(bool repeat)
f->draw_type = CDT_ROOFLIKE;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_DIRT;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_roofcollide(f);
@ -248,7 +248,7 @@ void content_mapnode_special(bool repeat)
f->draw_type = CDT_ROOFLIKE;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_roofcollide(f);
@ -265,7 +265,7 @@ void content_mapnode_special(bool repeat)
f->draw_type = CDT_ROOFLIKE;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_DIRT;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_roofcollide(f);
@ -288,7 +288,7 @@ void content_mapnode_special(bool repeat)
f->draw_type = CDT_ROOFLIKE;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_DIRT;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_roofcollide(f);
@ -310,7 +310,7 @@ void content_mapnode_special(bool repeat)
f->draw_type = CDT_ROOFLIKE;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_GLASS;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_roofcollide(f);
@ -332,7 +332,7 @@ void content_mapnode_special(bool repeat)
f->draw_type = CDT_ROOFLIKE;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_GLASS;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_roofcollide(f);
@ -355,7 +355,7 @@ void content_mapnode_special(bool repeat)
f->draw_type = CDT_ROOFLIKE;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_GLASS;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_roofcollide(f);
@ -378,7 +378,7 @@ void content_mapnode_special(bool repeat)
f->draw_type = CDT_ROOFLIKE;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_GLASS;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_roofcollide(f);
@ -401,7 +401,7 @@ void content_mapnode_special(bool repeat)
f->draw_type = CDT_ROOFLIKE;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_GLASS;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_roofcollide(f);
@ -424,7 +424,7 @@ void content_mapnode_special(bool repeat)
f->draw_type = CDT_ROOFLIKE;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_GLASS;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_roofcollide(f);
@ -447,7 +447,7 @@ void content_mapnode_special(bool repeat)
f->draw_type = CDT_ROOFLIKE;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_GLASS;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_roofcollide(f);
@ -470,7 +470,7 @@ void content_mapnode_special(bool repeat)
f->draw_type = CDT_ROOFLIKE;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_GLASS;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_roofcollide(f);
@ -487,7 +487,7 @@ void content_mapnode_special(bool repeat)
f->draw_type = CDT_ROOFLIKE;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_DIRT;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
content_nodebox_roofcollide(f);
@ -515,7 +515,7 @@ void content_mapnode_special(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 30/16;
f->type = CMT_WOOD;
f->hardness = 0.5;
f->dig_time = 0.5;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
f->setNodeBox(core::aabbox3d<f32>(
@ -574,7 +574,7 @@ void content_mapnode_special(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 30/16;
f->type = CMT_WOOD;
f->hardness = 0.5;
f->dig_time = 0.5;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
f->setNodeBox(core::aabbox3d<f32>(
@ -608,7 +608,7 @@ void content_mapnode_special(bool repeat)
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
f->fuel_time = 30/16;
f->type = CMT_WOOD;
f->hardness = 0.5;
f->dig_time = 0.5;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
f->setNodeBox(core::aabbox3d<f32>(
@ -635,7 +635,7 @@ void content_mapnode_special(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new BorderStoneNodeMetadata();
f->type = CMT_STONE;
f->hardness = 2.0;
f->dig_time = 2.0;
f->pressure_type = CST_SOLID;
crafting::setFilledRoundRecipe(CONTENT_STONE,CONTENT_CRAFTITEM_MITHRIL_RAW,CONTENT_BORDERSTONE);
crafting::setFilledRoundRecipe(CONTENT_STONE,CONTENT_CRAFTITEM_MITHRIL_UNBOUND,CONTENT_BORDERSTONE);
@ -673,7 +673,7 @@ void content_mapnode_special(bool repeat)
f->setFaceText(0,FaceText(0.45,0.3,0.9875,0.7375));
f->setInventoryTextureNodeBox(i, "book_cover.png", "book_end.png^[transformFX", "book_side.png^[transformFY");
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
crafting::setCol1Recipe(CONTENT_CRAFTITEM_PAPER,i);
@ -703,7 +703,7 @@ void content_mapnode_special(bool repeat)
content_nodebox_book(f);
f->setInventoryTextureNodeBox(i, "book_cook_cover.png", "book_cook_end.png^[transformFX", "book_cook_side.png^[transformFY");
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
crafting::set1Any2Recipe(CONTENT_BOOK,CONTENT_CRAFTITEM_COAL,i);
@ -734,7 +734,7 @@ void content_mapnode_special(bool repeat)
content_nodebox_book(f);
f->setInventoryTextureNodeBox(i, "book_decraft_cover.png", "book_decraft_end.png^[transformFX", "book_decraft_side.png^[transformFY");
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
crafting::set1Any2Recipe(CONTENT_BOOK,CONTENT_CRAFTITEM_GUNPOWDER,i);
@ -765,7 +765,7 @@ void content_mapnode_special(bool repeat)
f->setFaceText(0,FaceText(0.45,0.3,0.9875,0.7375));
f->setInventoryTextureNodeBox(i, "book_diary_cover.png", "book_diary_end.png^[transformFX", "book_diary_side.png^[transformFY");
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
crafting::set1Any2Recipe(CONTENT_BOOK,CONTENT_CRAFTITEM_STEEL_INGOT,i);
@ -795,7 +795,7 @@ void content_mapnode_special(bool repeat)
content_nodebox_book(f);
f->setInventoryTextureNodeBox(i, "book_craft_cover.png", "book_craft_end.png^[transformFX", "book_craft_side.png^[transformFY");
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
crafting::set1Any2Recipe(CONTENT_BOOK,CONTENT_CRAFTITEM_MITHRIL_RAW,i);
@ -834,7 +834,7 @@ void content_mapnode_special(bool repeat)
content_nodebox_book(f);
f->setInventoryTextureNodeBox(i, "book_rcraft_cover.png", "book_rcraft_end.png^[transformFX", "book_rcraft_side.png^[transformFY");
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
{
@ -871,7 +871,7 @@ void content_mapnode_special(bool repeat)
f->setFaceText(0,FaceText(0.15,0.35,0.85,0.85,FTT_BOOKCONTENT));
f->setInventoryTextureNodeBox(i, "guide_top.png", "guide_end.png", "guide_side.png");
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
if (f->initial_metadata == NULL)
@ -898,7 +898,7 @@ void content_mapnode_special(bool repeat)
content_nodebox_guide(f);
f->setInventoryTextureNodeBox(i, "guide_cook_top.png", "guide_cook_end.png", "guide_cook_side.png");
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
if (f->initial_metadata == NULL)
@ -925,7 +925,7 @@ void content_mapnode_special(bool repeat)
content_nodebox_guide(f);
f->setInventoryTextureNodeBox(i, "guide_decraft_top.png", "guide_decraft_end.png", "guide_decraft_side.png");
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
if (f->initial_metadata == NULL)
@ -953,7 +953,7 @@ void content_mapnode_special(bool repeat)
f->setFaceText(0,FaceText(0.15,0.35,0.85,0.85,FTT_BOOKCONTENT));
f->setInventoryTextureNodeBox(i, "guide_diary_top.png", "guide_diary_end.png", "guide_diary_side.png");
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
if (f->initial_metadata == NULL)
@ -980,7 +980,7 @@ void content_mapnode_special(bool repeat)
content_nodebox_guide(f);
f->setInventoryTextureNodeBox(i, "guide_craft_top.png", "guide_craft_end.png", "guide_craft_side.png");
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
if (f->initial_metadata == NULL)
@ -1007,7 +1007,7 @@ void content_mapnode_special(bool repeat)
content_nodebox_guide(f);
f->setInventoryTextureNodeBox(i, "guide_rcraft_top.png", "guide_rcraft_end.png", "guide_rcraft_side.png");
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
if (f->initial_metadata == NULL)
@ -1071,7 +1071,7 @@ void content_mapnode_special(bool repeat)
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->light_source = LIGHT_MAX-1;
f->type = CMT_WOOD;
f->hardness = 0.0;
f->dig_time = 0.0;
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
crafting::set1over4Recipe(CONTENT_CRAFTITEM_COAL,CONTENT_CRAFTITEM_STICK,CONTENT_TORCH);
@ -1113,7 +1113,7 @@ void content_mapnode_special(bool repeat)
f->initial_metadata = new ChestNodeMetadata();
f->sound_access = "open-chest";
f->type = CMT_WOOD;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_SOLID;
crafting::setRoundRecipe(CONTENT_WOOD,CONTENT_CHEST);
content_list_add("craftguide",i,1,0);
@ -1152,7 +1152,7 @@ void content_mapnode_special(bool repeat)
f->initial_metadata = new ChestNodeMetadata();
f->sound_access = "open-chest";
f->type = CMT_WOOD;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_SOLID;
crafting::setRoundRecipe(CONTENT_WOOD_PINE,CONTENT_CHEST_PINE);
content_list_add("craftguide",i,1,0);
@ -1191,7 +1191,7 @@ void content_mapnode_special(bool repeat)
f->initial_metadata = new ChestNodeMetadata();
f->sound_access = "open-chest";
f->type = CMT_WOOD;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_SOLID;
crafting::setRoundRecipe(CONTENT_JUNGLEWOOD,CONTENT_CHEST_JUNGLE);
content_list_add("craftguide",i,1,0);
@ -1230,7 +1230,7 @@ void content_mapnode_special(bool repeat)
f->initial_metadata = new ChestNodeMetadata();
f->sound_access = "open-chest";
f->type = CMT_WOOD;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_SOLID;
crafting::setRoundRecipe(CONTENT_APPLEWOOD,CONTENT_CHEST_APPLE);
content_list_add("craftguide",i,1,0);
@ -1252,7 +1252,7 @@ void content_mapnode_special(bool repeat)
f->initial_metadata = new DeprecatedChestNodeMetadata();
f->sound_access = "open-chest";
f->type = CMT_WOOD;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_SOLID;
i = CONTENT_CREATIVE_CHEST;
@ -1271,7 +1271,7 @@ void content_mapnode_special(bool repeat)
f->initial_metadata = new CreativeChestNodeMetadata();
f->sound_access = "open-chest";
f->type = CMT_WOOD;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_SOLID;
content_list_add("player-creative",i,1,0);
content_list_add("creative",i,1,0);
@ -1293,7 +1293,7 @@ void content_mapnode_special(bool repeat)
f->initial_metadata = new LockingDeprecatedChestNodeMetadata();
f->sound_access = "open-chest";
f->type = CMT_WOOD;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_SOLID;
i = CONTENT_SAFE;
@ -1311,7 +1311,7 @@ void content_mapnode_special(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new SafeNodeMetadata();
f->type = CMT_WOOD;
f->hardness = 1.0;
f->dig_time = 1.0;
f->pressure_type = CST_SOLID;
f->destructive_mob_safe = true;
crafting::setFilledRoundRecipe(CONTENT_CRAFTITEM_STEEL_INGOT,CONTENT_CRAFTITEM_COPPER_INGOT,CONTENT_SAFE);
@ -1337,7 +1337,7 @@ void content_mapnode_special(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new FurnaceNodeMetadata();
f->type = CMT_STONE;
f->hardness = 3.0;
f->dig_time = 3.0;
f->pressure_type = CST_SOLID;
f->alternate_lockstate_node = CONTENT_LOCKABLE_FURNACE;
crafting::setRoundRecipe(CONTENT_ROUGHSTONE,CONTENT_FURNACE);
@ -1359,7 +1359,7 @@ void content_mapnode_special(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new FurnaceNodeMetadata();
f->type = CMT_STONE;
f->hardness = 3.0;
f->dig_time = 3.0;
f->pressure_type = CST_SOLID;
i = CONTENT_LOCKABLE_FURNACE;
@ -1381,7 +1381,7 @@ void content_mapnode_special(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new LockingFurnaceNodeMetadata();
f->type = CMT_STONE;
f->hardness = 3.0;
f->dig_time = 3.0;
f->pressure_type = CST_SOLID;
f->alternate_lockstate_node = CONTENT_FURNACE;
crafting::setFilledRoundRecipe(CONTENT_ROUGHSTONE,CONTENT_CRAFTITEM_STEEL_INGOT,CONTENT_LOCKABLE_FURNACE);
@ -1404,7 +1404,7 @@ void content_mapnode_special(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new LockingFurnaceNodeMetadata();
f->type = CMT_STONE;
f->hardness = 3.0;
f->dig_time = 3.0;
f->pressure_type = CST_SOLID;
i = CONTENT_INCINERATOR;
@ -1426,7 +1426,7 @@ void content_mapnode_special(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new IncineratorNodeMetadata();
f->type = CMT_STONE;
f->hardness = 0.4;
f->dig_time = 0.4;
f->pressure_type = CST_SOLID;
crafting::setFilledRoundRecipe(CONTENT_ROUGHSTONE,CONTENT_CRAFTITEM_MITHRIL_UNBOUND,CONTENT_INCINERATOR);
content_list_add("craftguide",i,1,0);
@ -1447,7 +1447,7 @@ void content_mapnode_special(bool repeat)
if (f->initial_metadata == NULL)
f->initial_metadata = new IncineratorNodeMetadata();
f->type = CMT_STONE;
f->hardness = 0.4;
f->dig_time = 0.4;
f->pressure_type = CST_SOLID;
@ -1479,7 +1479,7 @@ void content_mapnode_special(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new CampFireNodeMetadata();
f->type = CMT_WOOD;
f->hardness = 2.0;
f->dig_time = 2.0;
f->pressure_type = CST_CRUSHED;
{
u16 r[9] = {
@ -1505,7 +1505,7 @@ void content_mapnode_special(bool repeat)
f->setInventoryTextureCube("nc_side.png", "nc_front.png", "nc_side.png");
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_STONE;
f->hardness = 3.0;
f->dig_time = 3.0;
content_list_add("creative",i,1,0);
i = CONTENT_NC_RB;
@ -1516,7 +1516,7 @@ void content_mapnode_special(bool repeat)
f->setInventoryTextureCube("nc_rb.png", "nc_rb.png", "nc_rb.png");
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_STONE;
f->hardness = 3.0;
f->dig_time = 3.0;
content_list_add("creative",i,1,0);
i = CONTENT_FLOWER_POT_RAW;
@ -1532,7 +1532,7 @@ void content_mapnode_special(bool repeat)
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->cook_result = std::string("MaterialItem2 ")+itos(CONTENT_FLOWER_POT)+" 1";
f->type = CMT_STONE;
f->hardness = 0.75;
f->dig_time = 0.75;
f->pressure_type = CST_CRUSHABLE;
content_nodebox_flower_pot(f);
f->setInventoryTextureNodeBox(i,"flower_pot_raw_top.png","flower_pot_raw.png","flower_pot_raw.png");
@ -1552,7 +1552,7 @@ void content_mapnode_special(bool repeat)
f->sunlight_propagates = true;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_STONE;
f->hardness = 0.75;
f->dig_time = 0.75;
content_nodebox_flower_pot(f);
f->setInventoryTextureNodeBox(i,"flower_pot_top.png","flower_pot.png","flower_pot.png");
content_list_add("creative",i,1,0);
@ -1575,7 +1575,7 @@ void content_mapnode_special(bool repeat)
f->setInventoryTextureNodeBox(i,"cobble.png","cobble.png","cobble.png");
f->special_alternate_node = CONTENT_COBBLE;
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->suffocation_per_second = 0;
crafting::setWallRecipe(CONTENT_COBBLE,CONTENT_COBBLE_WALL);
content_list_add("craftguide",i,1,0);
@ -1598,7 +1598,7 @@ void content_mapnode_special(bool repeat)
f->setInventoryTextureNodeBox(i,"roughstone.png","roughstone.png","roughstone.png");
f->special_alternate_node = CONTENT_ROUGHSTONE;
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->suffocation_per_second = 0;
crafting::setWallRecipe(CONTENT_ROUGHSTONE,CONTENT_ROUGHSTONE_WALL);
content_list_add("craftguide",i,1,0);
@ -1621,7 +1621,7 @@ void content_mapnode_special(bool repeat)
f->setInventoryTextureNodeBox(i,"mossycobble.png","mossycobble.png","mossycobble.png");
f->special_alternate_node = CONTENT_MOSSYCOBBLE;
f->type = CMT_STONE;
f->hardness = 0.8;
f->dig_time = 0.8;
f->suffocation_per_second = 0;
crafting::setWallRecipe(CONTENT_MOSSYCOBBLE,CONTENT_MOSSYCOBBLE_WALL);
content_list_add("craftguide",i,1,0);
@ -1644,7 +1644,7 @@ void content_mapnode_special(bool repeat)
f->setInventoryTextureNodeBox(i,"stone.png","stone.png","stone.png");
f->special_alternate_node = CONTENT_STONE;
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->suffocation_per_second = 0;
crafting::setWallRecipe(CONTENT_STONE,CONTENT_STONE_WALL);
content_list_add("craftguide",i,1,0);
@ -1667,7 +1667,7 @@ void content_mapnode_special(bool repeat)
f->setInventoryTextureNodeBox(i,"sandstone.png","sandstone.png","sandstone.png");
f->special_alternate_node = CONTENT_SANDSTONE;
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->suffocation_per_second = 0;
crafting::setWallRecipe(CONTENT_SANDSTONE,CONTENT_SANDSTONE_WALL);
content_list_add("craftguide",i,1,0);
@ -1690,7 +1690,7 @@ void content_mapnode_special(bool repeat)
f->setInventoryTextureNodeBox(i,"limestone.png","limestone.png","limestone.png");
f->special_alternate_node = CONTENT_LIMESTONE;
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->suffocation_per_second = 0;
crafting::setWallRecipe(CONTENT_LIMESTONE,CONTENT_LIMESTONE_WALL);
content_list_add("craftguide",i,1,0);
@ -1713,7 +1713,7 @@ void content_mapnode_special(bool repeat)
f->setInventoryTextureNodeBox(i,"marble.png","marble.png","marble.png");
f->special_alternate_node = CONTENT_MARBLE;
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->suffocation_per_second = 0;
crafting::setWallRecipe(CONTENT_MARBLE,CONTENT_MARBLE_WALL);
content_list_add("craftguide",i,1,0);
@ -1733,7 +1733,7 @@ void content_mapnode_special(bool repeat)
if(f->initial_metadata == NULL)
f->initial_metadata = new TNTNodeMetadata();
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->suffocation_per_second = 0;
crafting::setSoftBlockRecipe(CONTENT_CRAFTITEM_TNT,CONTENT_TNT);
content_list_add("craftguide",i,1,0);
@ -1794,7 +1794,7 @@ void content_mapnode_special(bool repeat)
content_nodebox_flag(f);
f->home_node = PLAYERFLAG_WHITE;
f->type = CMT_WOOD;
f->hardness = 0.4;
f->dig_time = 0.4;
f->suffocation_per_second = 0;
{
content_t r[9] = {
@ -1839,7 +1839,7 @@ void content_mapnode_special(bool repeat)
content_nodebox_flag(f);
f->home_node = PLAYERFLAG_BLUE;
f->type = CMT_WOOD;
f->hardness = 0.4;
f->dig_time = 0.4;
f->suffocation_per_second = 0;
crafting::set1Any2Recipe(CONTENT_FLAG,CONTENT_CRAFTITEM_DYE_BLUE,CONTENT_FLAG_BLUE);
if(f->initial_metadata == NULL)
@ -1863,7 +1863,7 @@ void content_mapnode_special(bool repeat)
content_nodebox_flag(f);
f->home_node = PLAYERFLAG_GREEN;
f->type = CMT_WOOD;
f->hardness = 0.4;
f->dig_time = 0.4;
f->suffocation_per_second = 0;
crafting::set1Any2Recipe(CONTENT_FLAG,CONTENT_CRAFTITEM_DYE_GREEN,CONTENT_FLAG_GREEN);
if(f->initial_metadata == NULL)
@ -1887,7 +1887,7 @@ void content_mapnode_special(bool repeat)
content_nodebox_flag(f);
f->home_node = PLAYERFLAG_ORANGE;
f->type = CMT_WOOD;
f->hardness = 0.4;
f->dig_time = 0.4;
f->suffocation_per_second = 0;
crafting::set1Any2Recipe(CONTENT_FLAG,CONTENT_CRAFTITEM_DYE_ORANGE,CONTENT_FLAG_ORANGE);
if(f->initial_metadata == NULL)
@ -1911,7 +1911,7 @@ void content_mapnode_special(bool repeat)
content_nodebox_flag(f);
f->home_node = PLAYERFLAG_PURPLE;
f->type = CMT_WOOD;
f->hardness = 0.4;
f->dig_time = 0.4;
f->suffocation_per_second = 0;
crafting::set1Any2Recipe(CONTENT_FLAG,CONTENT_CRAFTITEM_DYE_PURPLE,CONTENT_FLAG_PURPLE);
if(f->initial_metadata == NULL)
@ -1935,7 +1935,7 @@ void content_mapnode_special(bool repeat)
content_nodebox_flag(f);
f->home_node = PLAYERFLAG_RED;
f->type = CMT_WOOD;
f->hardness = 0.4;
f->dig_time = 0.4;
f->suffocation_per_second = 0;
crafting::set1Any2Recipe(CONTENT_FLAG,CONTENT_CRAFTITEM_DYE_RED,CONTENT_FLAG_RED);
if(f->initial_metadata == NULL)
@ -1959,7 +1959,7 @@ void content_mapnode_special(bool repeat)
content_nodebox_flag(f);
f->home_node = PLAYERFLAG_YELLOW;
f->type = CMT_WOOD;
f->hardness = 0.4;
f->dig_time = 0.4;
f->suffocation_per_second = 0;
crafting::set1Any2Recipe(CONTENT_FLAG,CONTENT_CRAFTITEM_DYE_YELLOW,CONTENT_FLAG_YELLOW);
if(f->initial_metadata == NULL)
@ -1983,7 +1983,7 @@ void content_mapnode_special(bool repeat)
content_nodebox_flag(f);
f->home_node = PLAYERFLAG_BLACK;
f->type = CMT_WOOD;
f->hardness = 0.4;
f->dig_time = 0.4;
f->suffocation_per_second = 0;
crafting::set1Any2Recipe(CONTENT_FLAG,CONTENT_CRAFTITEM_DYE_BLACK,CONTENT_FLAG_BLACK);
if(f->initial_metadata == NULL)
@ -2002,7 +2002,7 @@ void content_mapnode_special(bool repeat)
f->is_ground_content = true;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->suffocation_per_second = 0;
{
content_t r[9] = {
@ -2035,7 +2035,7 @@ void content_mapnode_special(bool repeat)
content_nodebox_parcel(f);
f->setInventoryTextureNodeBox(i,"parcel_top.png", "parcel.png", "parcel.png");
f->type = CMT_DIRT;
f->hardness = 0.01;
f->dig_time = 0.01;
f->suffocation_per_second = 0;
if (f->initial_metadata == NULL)
f->initial_metadata = new ParcelNodeMetadata();
@ -2048,7 +2048,7 @@ void content_mapnode_special(bool repeat)
f->setMetaTexture(0,"water.png");
f->draw_type = CDT_NODEBOX_META;
f->type = CMT_STONE;
f->hardness = 3.0;
f->dig_time = 3.0;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
content_nodebox_cauldron(f);
f->setInventoryTextureNodeBox(i,"cauldron_outer.png", "cauldron_outer.png", "cauldron_outer.png");
@ -2068,7 +2068,7 @@ void content_mapnode_special(bool repeat)
f->setTexture(1,"forge_bottom.png");
f->draw_type = CDT_NODEBOX;
f->type = CMT_STONE;
f->hardness = 3.0;
f->dig_time = 3.0;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
content_nodebox_forge(f);
f->setInventoryTextureNodeBox(i,"forge_top.png", "forge_side.png", "forge_side.png");
@ -2117,7 +2117,7 @@ void content_mapnode_special(bool repeat)
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->flammable = 1;
f->fuel_time = 30/4;
f->hardness = 0.75;
f->dig_time = 0.75;
f->is_ground_content = true;
f->light_propagates = true;
f->param_type = CPT_LIGHT;

View File

@ -43,7 +43,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stair(f);
f->setInventoryTextureNodeBox(i,"roughstone.png", "roughstone.png", "roughstone.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->onpunch_replace_node = CONTENT_ROUGHSTONE_STAIR_CORNER;
f->onpunch_replace_respects_borderstone = true;
crafting::setStairRecipe(CONTENT_ROUGHSTONE,CONTENT_ROUGHSTONE_STAIR);
@ -61,7 +61,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stair(f);
f->setInventoryTextureNodeBox(i,"cobble.png", "cobble.png", "cobble.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->onpunch_replace_node = CONTENT_COBBLE_STAIR_CORNER;
f->onpunch_replace_respects_borderstone = true;
crafting::setStairRecipe(CONTENT_COBBLE,CONTENT_COBBLE_STAIR);
@ -79,7 +79,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stair(f);
f->setInventoryTextureNodeBox(i,"mossycobble.png", "mossycobble.png", "mossycobble.png");
f->type = CMT_STONE;
f->hardness = 0.8;
f->dig_time = 0.8;
f->onpunch_replace_node = CONTENT_MOSSYCOBBLE_STAIR_CORNER;
f->onpunch_replace_respects_borderstone = true;
crafting::setStairRecipe(CONTENT_MOSSYCOBBLE,CONTENT_MOSSYCOBBLE_STAIR);
@ -98,7 +98,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stair(f);
f->setInventoryTextureNodeBox(i,"stone.png", "stone.png", "stone.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_STONE_STAIR_CORNER;
f->onpunch_replace_respects_borderstone = true;
crafting::setStairRecipe(CONTENT_STONE,CONTENT_STONE_STAIR);
@ -118,7 +118,7 @@ void content_mapnode_stair(bool repeat)
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->hardness = 0.75;
f->dig_time = 0.75;
f->onpunch_replace_node = CONTENT_WOOD_STAIR_CORNER;
f->onpunch_replace_respects_borderstone = true;
crafting::setStairRecipe(CONTENT_WOOD,CONTENT_WOOD_STAIR);
@ -138,7 +138,7 @@ void content_mapnode_stair(bool repeat)
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->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_JUNGLE_STAIR_CORNER;
f->onpunch_replace_respects_borderstone = true;
crafting::setStairRecipe(CONTENT_JUNGLEWOOD,CONTENT_JUNGLE_STAIR);
@ -161,7 +161,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stair(f);
f->setInventoryTextureNodeBox(i,"brick_stair_top.png", "brick_stair_front.png", "brick_side.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_BRICK_STAIR_CORNER;
f->onpunch_replace_respects_borderstone = true;
crafting::setStairRecipe(CONTENT_BRICK,CONTENT_BRICK_STAIR);
@ -179,7 +179,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stair(f);
f->setInventoryTextureNodeBox(i,"sandstone.png", "sandstone.png", "sandstone.png");
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_SANDSTONE_STAIR_CORNER;
f->onpunch_replace_respects_borderstone = true;
crafting::setStairRecipe(CONTENT_SANDSTONE,CONTENT_SANDSTONE_STAIR);
@ -197,7 +197,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stair(f);
f->setInventoryTextureNodeBox(i,"limestone.png", "limestone.png", "limestone.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->onpunch_replace_node = CONTENT_LIMESTONE_STAIR_CORNER;
f->onpunch_replace_respects_borderstone = true;
crafting::setStairRecipe(CONTENT_LIMESTONE,CONTENT_LIMESTONE_STAIR);
@ -215,7 +215,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stairud(f);
f->setInventoryTextureNodeBox(i,"roughstone.png", "roughstone.png", "roughstone.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->onpunch_replace_node = CONTENT_ROUGHSTONE_STAIR_CORNER_UD;
f->onpunch_replace_respects_borderstone = true;
f->suffocation_per_second = 0;
@ -230,7 +230,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stairud(f);
f->setInventoryTextureNodeBox(i,"cobble.png", "cobble.png", "cobble.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->onpunch_replace_node = CONTENT_COBBLE_STAIR_CORNER_UD;
f->onpunch_replace_respects_borderstone = true;
f->suffocation_per_second = 0;
@ -245,7 +245,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stairud(f);
f->setInventoryTextureNodeBox(i,"mossycobble.png", "mossycobble.png", "mossycobble.png");
f->type = CMT_STONE;
f->hardness = 0.8;
f->dig_time = 0.8;
f->onpunch_replace_node = CONTENT_MOSSYCOBBLE_STAIR_CORNER_UD;
f->onpunch_replace_respects_borderstone = true;
f->suffocation_per_second = 0;
@ -260,7 +260,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stairud(f);
f->setInventoryTextureNodeBox(i,"stone.png", "stone.png", "stone.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_STONE_STAIR_CORNER_UD;
f->onpunch_replace_respects_borderstone = true;
f->suffocation_per_second = 0;
@ -277,7 +277,7 @@ void content_mapnode_stair(bool repeat)
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->hardness = 0.75;
f->dig_time = 0.75;
f->onpunch_replace_node = CONTENT_WOOD_STAIR_CORNER_UD;
f->onpunch_replace_respects_borderstone = true;
f->suffocation_per_second = 0;
@ -294,7 +294,7 @@ void content_mapnode_stair(bool repeat)
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->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_JUNGLE_STAIR_CORNER_UD;
f->onpunch_replace_respects_borderstone = true;
f->suffocation_per_second = 0;
@ -314,7 +314,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stairud(f);
f->setInventoryTextureNodeBox(i,"brick.png", "brick_front.png", "brick.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_BRICK_STAIR_CORNER_UD;
f->onpunch_replace_respects_borderstone = true;
f->suffocation_per_second = 0;
@ -329,7 +329,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stairud(f);
f->setInventoryTextureNodeBox(i,"sandstone.png", "sandstone.png", "sandstone.png");
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_SANDSTONE_STAIR_CORNER_UD;
f->onpunch_replace_respects_borderstone = true;
f->suffocation_per_second = 0;
@ -344,7 +344,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stairud(f);
f->setInventoryTextureNodeBox(i,"limestone.png", "limestone.png", "limestone.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->onpunch_replace_node = CONTENT_LIMESTONE_STAIR_CORNER_UD;
f->onpunch_replace_respects_borderstone = true;
f->suffocation_per_second = 0;
@ -361,7 +361,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stair_corner(f);
f->setInventoryTextureNodeBox(i,"roughstone.png","roughstone.png","roughstone.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->onpunch_replace_node = CONTENT_ROUGHSTONE_INNER_STAIR_CORNER;
f->onpunch_replace_respects_borderstone = true;
@ -376,7 +376,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stair_corner(f);
f->setInventoryTextureNodeBox(i,"cobble.png","cobble.png","cobble.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->onpunch_replace_node = CONTENT_COBBLE_INNER_STAIR_CORNER;
f->onpunch_replace_respects_borderstone = true;
@ -391,7 +391,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stair_corner(f);
f->setInventoryTextureNodeBox(i,"mossycobble.png","mossycobble.png","mossycobble.png");
f->type = CMT_STONE;
f->hardness = 0.8;
f->dig_time = 0.8;
f->onpunch_replace_node = CONTENT_MOSSYCOBBLE_INNER_STAIR_CORNER;
f->onpunch_replace_respects_borderstone = true;
@ -406,7 +406,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stair_corner(f);
f->setInventoryTextureNodeBox(i,"stone.png","stone.png","stone.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_STONE_INNER_STAIR_CORNER;
f->onpunch_replace_respects_borderstone = true;
@ -423,7 +423,7 @@ void content_mapnode_stair(bool repeat)
// it is set on fire
f->fuel_time = 30;
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->onpunch_replace_node = CONTENT_WOOD_INNER_STAIR_CORNER;
f->onpunch_replace_respects_borderstone = true;
@ -441,7 +441,7 @@ void content_mapnode_stair(bool repeat)
// it is set on fire
f->fuel_time = 30;
f->type = CMT_WOOD;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_JUNGLE_INNER_STAIR_CORNER;
f->onpunch_replace_respects_borderstone = true;
@ -458,7 +458,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stair_corner(f);
f->setInventoryTextureNodeBox(i,"brick.png","brick.png","brick.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_BRICK_INNER_STAIR_CORNER;
f->onpunch_replace_respects_borderstone = true;
@ -473,7 +473,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stair_corner(f);
f->setInventoryTextureNodeBox(i,"sandstone.png","sandstone.png","sandstone.png");
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_SANDSTONE_INNER_STAIR_CORNER;
f->onpunch_replace_respects_borderstone = true;
@ -488,7 +488,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stair_corner(f);
f->setInventoryTextureNodeBox(i,"limestone.png","limestone.png","limestone.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->onpunch_replace_node = CONTENT_LIMESTONE_INNER_STAIR_CORNER;
f->onpunch_replace_respects_borderstone = true;
@ -504,7 +504,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stair_cornerud(f);
f->setInventoryTextureNodeBox(i,"roughstone.png","roughstone.png","roughstone.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->onpunch_replace_node = CONTENT_ROUGHSTONE_INNER_STAIR_CORNER_UD;
f->onpunch_replace_respects_borderstone = true;
@ -519,7 +519,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stair_cornerud(f);
f->setInventoryTextureNodeBox(i,"cobble.png","cobble.png","cobble.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->onpunch_replace_node = CONTENT_COBBLE_INNER_STAIR_CORNER_UD;
f->onpunch_replace_respects_borderstone = true;
@ -533,7 +533,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stair_cornerud(f);
f->setInventoryTextureNodeBox(i,"mossycobble.png","mossycobble.png","mossycobble.png");
f->type = CMT_STONE;
f->hardness = 0.8;
f->dig_time = 0.8;
f->onpunch_replace_node = CONTENT_MOSSYCOBBLE_INNER_STAIR_CORNER_UD;
f->onpunch_replace_respects_borderstone = true;
@ -547,7 +547,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stair_cornerud(f);
f->setInventoryTextureNodeBox(i,"stone.png","stone.png","stone.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_STONE_INNER_STAIR_CORNER_UD;
f->onpunch_replace_respects_borderstone = true;
@ -564,7 +564,7 @@ void content_mapnode_stair(bool repeat)
// it is set on fire
f->fuel_time = 30;
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->onpunch_replace_node = CONTENT_WOOD_INNER_STAIR_CORNER_UD;
f->onpunch_replace_respects_borderstone = true;
@ -582,7 +582,7 @@ void content_mapnode_stair(bool repeat)
// it is set on fire
f->fuel_time = 30;
f->type = CMT_WOOD;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_JUNGLE_INNER_STAIR_CORNER_UD;
f->onpunch_replace_respects_borderstone = true;
@ -598,7 +598,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stair_cornerud(f);
f->setInventoryTextureNodeBox(i,"brick.png","brick.png","brick.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_BRICK_INNER_STAIR_CORNER_UD;
f->onpunch_replace_respects_borderstone = true;
@ -612,7 +612,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stair_cornerud(f);
f->setInventoryTextureNodeBox(i,"sandstone.png","sandstone.png","sandstone.png");
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_SANDSTONE_INNER_STAIR_CORNER_UD;
f->onpunch_replace_respects_borderstone = true;
@ -626,7 +626,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_stair_cornerud(f);
f->setInventoryTextureNodeBox(i,"limestone.png","limestone.png","limestone.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->onpunch_replace_node = CONTENT_LIMESTONE_INNER_STAIR_CORNER_UD;
f->onpunch_replace_respects_borderstone = true;
@ -642,7 +642,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_inner_stair_corner(f);
f->setInventoryTextureNodeBox(i,"roughstone.png","roughstone.png","roughstone.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->onpunch_replace_node = CONTENT_ROUGHSTONE_STAIR;
f->onpunch_replace_respects_borderstone = true;
@ -656,7 +656,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_inner_stair_corner(f);
f->setInventoryTextureNodeBox(i,"cobble.png","cobble.png","cobble.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->onpunch_replace_node = CONTENT_COBBLE_STAIR;
f->onpunch_replace_respects_borderstone = true;
@ -671,7 +671,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_inner_stair_corner(f);
f->setInventoryTextureNodeBox(i,"mossycobble.png","mossycobble.png","mossycobble.png");
f->type = CMT_STONE;
f->hardness = 0.8;
f->dig_time = 0.8;
f->onpunch_replace_node = CONTENT_MOSSYCOBBLE_STAIR;
f->onpunch_replace_respects_borderstone = true;
@ -685,7 +685,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_inner_stair_corner(f);
f->setInventoryTextureNodeBox(i,"stone.png","stone.png","stone.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_STONE_STAIR;
f->onpunch_replace_respects_borderstone = true;
@ -702,7 +702,7 @@ void content_mapnode_stair(bool repeat)
// it is set on fire
f->fuel_time = 30;
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->onpunch_replace_node = CONTENT_WOOD_STAIR;
f->onpunch_replace_respects_borderstone = true;
@ -719,7 +719,7 @@ void content_mapnode_stair(bool repeat)
// it is set on fire
f->fuel_time = 30;
f->type = CMT_WOOD;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_JUNGLE_STAIR;
f->onpunch_replace_respects_borderstone = true;
@ -737,7 +737,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_inner_stair_corner(f);
f->setInventoryTextureNodeBox(i,"brick.png","brick.png","brick.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_BRICK_STAIR;
f->onpunch_replace_respects_borderstone = true;
@ -752,7 +752,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_inner_stair_corner(f);
f->setInventoryTextureNodeBox(i,"sandstone.png","sandstone.png","sandstone.png");
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_SANDSTONE_STAIR;
f->onpunch_replace_respects_borderstone = true;
@ -766,7 +766,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_inner_stair_corner(f);
f->setInventoryTextureNodeBox(i,"limestone.png","limestone.png","limestone.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->onpunch_replace_node = CONTENT_LIMESTONE_STAIR;
f->onpunch_replace_respects_borderstone = true;
@ -782,7 +782,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_inner_stair_cornerud(f);
f->setInventoryTextureNodeBox(i,"roughstone.png","roughstone.png","roughstone.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->onpunch_replace_node = CONTENT_ROUGHSTONE_STAIR_UD;
f->onpunch_replace_respects_borderstone = true;
@ -797,7 +797,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_inner_stair_cornerud(f);
f->setInventoryTextureNodeBox(i,"cobble.png","cobble.png","cobble.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->onpunch_replace_node = CONTENT_COBBLE_STAIR_UD;
f->onpunch_replace_respects_borderstone = true;
@ -812,7 +812,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_inner_stair_cornerud(f);
f->setInventoryTextureNodeBox(i,"mossycobble.png","mossycobble.png","mossycobble.png");
f->type = CMT_STONE;
f->hardness = 0.8;
f->dig_time = 0.8;
f->onpunch_replace_node = CONTENT_MOSSYCOBBLE_STAIR_UD;
f->onpunch_replace_respects_borderstone = true;
@ -827,7 +827,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_inner_stair_cornerud(f);
f->setInventoryTextureNodeBox(i,"stone.png","stone.png","stone.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_STONE_STAIR_UD;
f->onpunch_replace_respects_borderstone = true;
@ -844,7 +844,7 @@ void content_mapnode_stair(bool repeat)
// it is set on fire
f->fuel_time = 30;
f->type = CMT_WOOD;
f->hardness = 0.75;
f->dig_time = 0.75;
f->onpunch_replace_node = CONTENT_WOOD_STAIR_UD;
f->onpunch_replace_respects_borderstone = true;
@ -862,7 +862,7 @@ void content_mapnode_stair(bool repeat)
// it is set on fire
f->fuel_time = 30;
f->type = CMT_WOOD;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_JUNGLE_STAIR_UD;
f->onpunch_replace_respects_borderstone = true;
@ -878,7 +878,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_inner_stair_cornerud(f);
f->setInventoryTextureNodeBox(i,"brick.png","brick.png","brick.png");
f->type = CMT_STONE;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_BRICK_STAIR_UD;
f->onpunch_replace_respects_borderstone = true;
@ -893,7 +893,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_inner_stair_cornerud(f);
f->setInventoryTextureNodeBox(i,"sandstone.png","sandstone.png","sandstone.png");
f->type = CMT_DIRT;
f->hardness = 1.0;
f->dig_time = 1.0;
f->onpunch_replace_node = CONTENT_SANDSTONE_STAIR_UD;
f->onpunch_replace_respects_borderstone = true;
@ -908,7 +908,7 @@ void content_mapnode_stair(bool repeat)
content_nodebox_inner_stair_cornerud(f);
f->setInventoryTextureNodeBox(i,"limestone.png","limestone.png","limestone.png");
f->type = CMT_STONE;
f->hardness = 0.9;
f->dig_time = 0.9;
f->onpunch_replace_node = CONTENT_LIMESTONE_STAIR_UD;
f->onpunch_replace_respects_borderstone = true;
}

View File

@ -30,7 +30,7 @@ void content_nodedef_knob(content_t nodeid, content_t source_node, ContentMateri
features->light_propagates = true;
features->dug_item = std::string("MaterialItem2 ")+itos(nodeid)+" 1";
features->type = CMT_STONE;
features->hardness = 0.8;
features->dig_time = 0.8;
features->climbable = true;
features->suffocation_per_second = 0;
if (material_type == CMT_WOOD) {

View File

@ -188,6 +188,8 @@ int get_tool_use(tooluse_t *info, content_t target, uint16_t data, content_t too
}else{
info->data = 4.0;
}
info->data *= c_features->dig_time;
}
if (type_match && data != 0 && info->diggable) {

View File

@ -503,8 +503,8 @@ struct ContentFeatures
// the material type (stone, wood, etc)
ContentMaterialType type;
// the hardness of the node
f32 hardness;
// the dig time of the node
f32 dig_time;
// for pistons
ContentPressureType pressure_type;
@ -619,7 +619,7 @@ struct ContentFeatures
liquid_viscosity = 0;
light_source = 0;
type = CMT_AIR;
hardness = 1.0;
dig_time = 1.0;
pressure_type = CST_MOVABLE;
damage_per_second = 0;
suffocation_per_second = 20;