voxelands/src/content_mapnode_plants.cpp

1180 lines
40 KiB
C++
Raw Normal View History

2014-09-19 09:36:05 -07:00
/************************************************************************
* Minetest-c55
* Copyright (C) 2010 celeron55, Perttu Ahola <celeron55@gmail.com>
*
* content_mapnode_special.cpp
* Copyright (C) Lisa 'darkrose' Milne 2014 <lisa@ltmnet.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>
************************************************************************/
// For g_settings
#include "main.h"
#include "content_mapnode.h"
#include "content_nodebox.h"
#include "content_list.h"
#include "content_craft.h"
#include "content_nodemeta.h"
2015-04-09 11:09:36 -07:00
#include "intl.h"
2017-07-04 08:47:20 -07:00
#include "content_burntimes.h"
2014-09-19 09:36:05 -07:00
void content_mapnode_plants(bool repeat)
{
content_t i;
ContentFeatures *f = NULL;
i = CONTENT_TREE;
f = &content_features(i);
f->description = gettext("Tree");
2014-09-19 09:36:05 -07:00
f->setAllTextures("tree.png");
f->setTexture(0, "tree_top.png");
f->setTexture(1, "tree_top.png");
2017-06-26 01:03:14 -07:00
f->param_type = CPT_BLOCKDATA;
2014-09-19 09:36:05 -07:00
f->setInventoryTextureCube("tree_top.png", "tree.png", "tree.png");
2015-05-03 11:23:13 -07:00
f->draw_type = CDT_TRUNKLIKE;
2014-09-19 09:36:05 -07:00
f->is_ground_content = true;
f->flammable = 2; // can be set on fire
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
2017-06-22 10:01:58 -07:00
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_CHARCOAL)+" 1";
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_TREE;
2015-10-08 02:55:56 -07:00
f->type = CMT_TREE;
2017-06-25 00:28:11 -07:00
f->dig_time = 1.0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
content_list_add("cooking",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_APPLE_TREE;
f = &content_features(i);
f->description = gettext("Apple Tree");
2014-09-19 09:36:05 -07:00
f->setAllTextures("apple_tree.png");
f->setTexture(0, "apple_tree_top.png");
f->setTexture(1, "apple_tree_top.png");
2017-06-26 01:03:14 -07:00
f->param_type = CPT_BLOCKDATA;
2014-09-19 09:36:05 -07:00
f->setInventoryTextureCube("apple_tree_top.png", "apple_tree.png", "apple_tree.png");
2015-05-03 11:23:13 -07:00
f->draw_type = CDT_TRUNKLIKE;
2014-09-19 09:36:05 -07:00
f->is_ground_content = true;
f->flammable = 2; // can be set on fire
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
2017-06-22 10:01:58 -07:00
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_CHARCOAL)+" 1";
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_TREE;
2015-10-08 02:55:56 -07:00
f->type = CMT_TREE;
2017-06-25 00:28:11 -07:00
f->dig_time = 1.0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
content_list_add("cooking",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_JUNGLETREE;
f = &content_features(i);
f->description = gettext("Jungle Tree");
2014-09-19 09:36:05 -07:00
f->setAllTextures("jungletree.png");
f->setTexture(0, "jungletree_top.png");
f->setTexture(1, "jungletree_top.png");
2017-06-26 01:03:14 -07:00
f->param_type = CPT_BLOCKDATA;
2014-09-19 09:36:05 -07:00
f->setInventoryTextureCube("jungletree_top.png", "jungletree.png", "jungletree.png");
2015-05-03 11:23:13 -07:00
f->draw_type = CDT_TRUNKLIKE;
2014-09-19 09:36:05 -07:00
//f->is_ground_content = true;
f->flammable = 2; // can be set on fire
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
2017-06-22 10:01:58 -07:00
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_CHARCOAL)+" 1";
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_TREE;
2015-10-08 02:55:56 -07:00
f->type = CMT_TREE;
2017-06-25 00:28:11 -07:00
f->dig_time = 1.0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_CONIFER_TREE;
f = &content_features(i);
f->description = gettext("Conifer Tree");
2014-09-19 09:36:05 -07:00
f->setAllTextures("conifer_tree.png");
f->setTexture(0, "conifer_tree_top.png");
f->setTexture(1, "conifer_tree_top.png");
2017-06-26 01:03:14 -07:00
f->param_type = CPT_BLOCKDATA;
2014-11-14 08:05:53 -08:00
f->setInventoryTextureCube("conifer_tree_top.png", "conifer_tree.png", "conifer_tree.png");
2015-05-03 11:23:13 -07:00
f->draw_type = CDT_TRUNKLIKE;
2014-09-19 09:36:05 -07:00
f->is_ground_content = true;
f->flammable = 2; // can be set on fire
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
2017-06-22 10:01:58 -07:00
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_CHARCOAL)+" 1";
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_TREE;
2015-10-08 02:55:56 -07:00
f->type = CMT_TREE;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.8;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
content_list_add("cooking",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_YOUNG_TREE;
f = &content_features(i);
f->description = gettext("Young Tree");
2014-09-19 09:36:05 -07:00
f->setAllTextures("tree.png");
f->setTexture(0, "tree_top.png");
f->setTexture(1, "tree_top.png");
f->draw_type = CDT_NODEBOX;
f->param_type = CPT_LIGHT;
f->light_propagates = true;
2014-09-19 09:36:05 -07:00
content_nodebox_youngtree(f);
f->setInventoryTextureNodeBox(i,"tree_top.png", "tree.png", "tree.png");
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->special_alternate_node = CONTENT_LEAVES;
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_YOUNG_TREE;
2015-10-08 02:55:56 -07:00
f->type = CMT_TREE;
2017-06-25 00:28:11 -07:00
f->dig_time = 1.0;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_YOUNG_JUNGLETREE;
f = &content_features(i);
f->description = gettext("Young Jungle Tree");
2014-09-19 09:36:05 -07:00
f->setAllTextures("jungletree.png");
f->setTexture(0, "jungletree_top.png");
f->setTexture(1, "jungletree_top.png");
f->draw_type = CDT_NODEBOX;
f->param_type = CPT_LIGHT;
f->light_propagates = true;
2014-09-19 09:36:05 -07:00
content_nodebox_youngtree(f);
f->setInventoryTextureNodeBox(i,"jungletree_top.png", "jungletree.png", "jungletree.png");
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->special_alternate_node = CONTENT_JUNGLELEAVES;
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_YOUNG_TREE;
2015-10-08 02:55:56 -07:00
f->type = CMT_TREE;
2017-06-25 00:28:11 -07:00
f->dig_time = 1.0;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_YOUNG_APPLE_TREE;
f = &content_features(i);
f->description = gettext("Young Apple Tree");
2014-09-19 09:36:05 -07:00
f->setAllTextures("apple_tree.png");
f->setTexture(0, "apple_tree_top.png");
f->setTexture(1, "apple_tree_top.png");
f->draw_type = CDT_NODEBOX;
f->param_type = CPT_LIGHT;
f->light_propagates = true;
2014-09-19 09:36:05 -07:00
content_nodebox_youngtree(f);
f->setInventoryTextureNodeBox(i,"apple_tree_top.png", "apple_tree.png", "apple_tree.png");
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->special_alternate_node = CONTENT_APPLE_LEAVES;
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_YOUNG_TREE;
2015-10-08 02:55:56 -07:00
f->type = CMT_TREE;
2017-06-25 00:28:11 -07:00
f->dig_time = 1.0;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_YOUNG_CONIFER_TREE;
f = &content_features(i);
f->description = gettext("Young Conifer Tree");
2014-09-19 09:36:05 -07:00
f->setAllTextures("conifer_tree.png");
f->setTexture(0, "conifer_tree_top.png");
f->setTexture(1, "conifer_tree_top.png");
f->draw_type = CDT_NODEBOX;
f->param_type = CPT_LIGHT;
f->light_propagates = true;
2014-09-19 09:36:05 -07:00
content_nodebox_youngtree(f);
f->setInventoryTextureNodeBox(i,"conifer_tree_top.png", "conifer_tree.png", "conifer_tree.png");
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->special_alternate_node = CONTENT_CONIFER_LEAVES;
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_YOUNG_TREE;
2015-10-08 02:55:56 -07:00
f->type = CMT_TREE;
2017-06-25 00:28:11 -07:00
f->dig_time = 1.0;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_JUNGLEGRASS;
f = &content_features(i);
f->description = gettext("Jungle Grass");
2014-09-19 09:36:05 -07:00
f->setInventoryTexture("junglegrass.png");
f->setAllTextures("junglegrass.png");
2016-01-06 09:40:08 -08:00
f->setTexture(1,"junglegrass_leaf.png");
2014-09-19 09:36:05 -07:00
f->setAllTextureFlags(0);
f->light_propagates = true;
f->param_type = CPT_LIGHT;
2016-01-06 21:50:38 -08:00
f->draw_type = CDT_PLANTLIKE_FERN;
f->air_equivalent = true;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
2017-08-11 02:57:09 -07:00
f->ondig_special_drop = CONTENT_CRAFTITEM_STRAW;
f->ondig_special_drop_count = 2;
f->ondig_special_tool = TT_KNIFE;
2016-01-06 21:50:38 -08:00
f->walkable = false;
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_BUSH;
2016-01-06 21:50:38 -08:00
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.20;
2016-01-06 21:50:38 -08:00
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2016-01-06 21:50:38 -08:00
i = CONTENT_JUNGLEFERN;
f = &content_features(i);
f->description = gettext("Jungle Fern");
2016-01-06 21:50:38 -08:00
f->setInventoryTexture("junglegrass.png");
f->setAllTextures("junglegrass.png");
f->setTexture(1,"leaf_big.png");
f->setAllTextureFlags(0);
f->light_propagates = true;
f->param_type = CPT_LIGHT;
f->draw_type = CDT_PLANTLIKE_FERN;
f->air_equivalent = true;
2014-09-19 09:36:05 -07:00
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->walkable = false;
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_BUSH;
2015-03-18 13:04:23 -07:00
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.20;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_LEAVES;
f = &content_features(i);
f->description = gettext("Leaves");
2014-09-19 09:36:05 -07:00
f->light_propagates = true;
f->air_equivalent = true;
2015-01-17 14:34:05 -08:00
f->walkable = false;
f->climbable = true;
2014-09-19 09:36:05 -07:00
f->param_type = CPT_LIGHT;
2016-01-07 06:56:44 -08:00
f->draw_type = CDT_LEAFLIKE;
f->setAllTextures("leaves.png");
2014-09-19 09:36:05 -07:00
#ifndef SERVER
2016-01-07 06:56:44 -08:00
f->setAllTextureTypes(MATERIAL_ALPHA_SIMPLE);
f->setAllTextureFlags(0);
2014-09-19 09:36:05 -07:00
#endif
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_LEAF;
2017-06-22 10:01:58 -07:00
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_RESIN)+" 1";
2014-09-19 09:36:05 -07:00
f->extra_dug_item = std::string("MaterialItem2 ")+itos(CONTENT_SAPLING)+" 1";
f->extra_dug_item_rarity = 20;
2017-08-20 23:51:27 -07:00
f->dug_item = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_STICK)+" 2";
2015-06-21 02:35:39 -07:00
f->ondig_special_drop = CONTENT_TRIMMED_LEAVES;
f->ondig_special_drop_count = 1;
f->ondig_special_tool = TT_SHEAR;
f->place_on_drop = CONTENT_SAPLING;
f->place_on_drop_alternate = CONTENT_WILDGRASS_SHORT;
2014-09-19 09:36:05 -07:00
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.15;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("decrafting",i,1,0);
content_list_add("cooking",i,1,0);
2014-09-19 09:36:05 -07:00
2015-08-27 04:29:58 -07:00
i = CONTENT_LEAVES_AUTUMN;
f = &content_features(i);
f->description = gettext("Leaves");
2015-08-27 04:29:58 -07:00
f->light_propagates = true;
f->air_equivalent = true;
f->walkable = false;
f->climbable = true;
f->param_type = CPT_LIGHT;
2016-01-07 06:56:44 -08:00
f->draw_type = CDT_LEAFLIKE;
f->setAllTextures("leaves_autumn.png");
2015-08-27 04:29:58 -07:00
#ifndef SERVER
2016-01-07 06:56:44 -08:00
f->setAllTextureTypes(MATERIAL_ALPHA_SIMPLE);
f->setAllTextureFlags(0);
2015-08-27 04:29:58 -07:00
#endif
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_LEAF;
2017-06-22 10:01:58 -07:00
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_RESIN)+" 1";
2015-08-27 04:29:58 -07:00
f->extra_dug_item = std::string("MaterialItem2 ")+itos(CONTENT_SAPLING)+" 1";
f->extra_dug_item_rarity = 20;
2017-08-20 23:51:27 -07:00
f->dug_item = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_STICK)+" 2";
2015-08-27 04:29:58 -07:00
f->ondig_special_drop = CONTENT_TRIMMED_LEAVES_AUTUMN;
f->ondig_special_drop_count = 1;
f->ondig_special_tool = TT_SHEAR;
f->place_on_drop = CONTENT_SAPLING;
f->place_on_drop_alternate = CONTENT_WILDGRASS_SHORT;
2015-08-27 04:29:58 -07:00
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.15;
2015-08-27 04:29:58 -07:00
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("decrafting",i,1,0);
content_list_add("cooking",i,1,0);
2015-08-27 04:29:58 -07:00
i = CONTENT_LEAVES_WINTER;
f = &content_features(i);
f->description = gettext("Leaves");
2015-08-27 04:29:58 -07:00
f->light_propagates = true;
f->air_equivalent = true;
f->walkable = false;
f->climbable = true;
f->param_type = CPT_LIGHT;
2016-01-07 06:56:44 -08:00
f->draw_type = CDT_LEAFLIKE;
f->setAllTextures("leaves_winter.png");
2015-08-27 04:29:58 -07:00
#ifndef SERVER
2016-01-07 06:56:44 -08:00
f->setAllTextureTypes(MATERIAL_ALPHA_SIMPLE);
f->setAllTextureFlags(0);
2015-08-27 04:29:58 -07:00
#endif
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_LEAF;
2015-08-27 04:29:58 -07:00
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_ASH)+" 1";
f->extra_dug_item = std::string("MaterialItem2 ")+itos(CONTENT_SAPLING)+" 1";
f->extra_dug_item_rarity = 20;
2017-08-20 23:51:27 -07:00
f->dug_item = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_STICK)+" 2";
2015-08-27 04:29:58 -07:00
f->ondig_special_drop = CONTENT_TRIMMED_LEAVES_WINTER;
f->ondig_special_drop_count = 1;
f->ondig_special_tool = TT_SHEAR;
f->place_on_drop = CONTENT_SAPLING;
f->place_on_drop_alternate = CONTENT_WILDGRASS_SHORT;
2015-08-27 04:29:58 -07:00
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.15;
2015-08-27 04:29:58 -07:00
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("decrafting",i,1,0);
content_list_add("cooking",i,1,0);
2015-08-27 04:29:58 -07:00
i = CONTENT_LEAVES_SNOWY;
f = &content_features(i);
f->description = gettext("Leaves");
2015-08-27 04:29:58 -07:00
f->light_propagates = true;
f->air_equivalent = true;
f->walkable = false;
f->climbable = true;
f->param_type = CPT_LIGHT;
2016-01-07 06:56:44 -08:00
f->draw_type = CDT_LEAFLIKE;
f->setAllTextures("leaves_snowy.png");
2015-08-27 04:29:58 -07:00
#ifndef SERVER
2016-01-07 06:56:44 -08:00
f->setAllTextureTypes(MATERIAL_ALPHA_SIMPLE);
f->setAllTextureFlags(0);
2015-08-27 04:29:58 -07:00
#endif
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_LEAF;
2015-08-27 04:29:58 -07:00
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_ASH)+" 1";
f->extra_dug_item = std::string("MaterialItem2 ")+itos(CONTENT_SAPLING)+" 1";
f->extra_dug_item_rarity = 20;
2017-08-20 23:51:27 -07:00
f->dug_item = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_STICK)+" 2";
2015-08-27 04:29:58 -07:00
f->ondig_special_drop = CONTENT_TRIMMED_LEAVES_WINTER;
f->ondig_special_drop_count = 1;
f->ondig_special_tool = TT_SHEAR;
f->place_on_drop = CONTENT_SAPLING;
f->place_on_drop_alternate = CONTENT_WILDGRASS_SHORT;
2015-08-27 04:29:58 -07:00
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.15;
2015-08-27 04:29:58 -07:00
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("decrafting",i,1,0);
content_list_add("cooking",i,1,0);
2015-08-27 04:29:58 -07:00
2014-09-19 09:36:05 -07:00
i = CONTENT_APPLE_LEAVES;
f = &content_features(i);
f->description = gettext("Apple Tree Leaves");
2014-09-19 09:36:05 -07:00
f->light_propagates = true;
f->air_equivalent = true;
2015-01-17 14:34:05 -08:00
f->walkable = false;
f->climbable = true;
2014-09-19 09:36:05 -07:00
f->param_type = CPT_LIGHT;
2015-05-03 05:06:35 -07:00
f->special_alternate_node = CONTENT_APPLE_BLOSSOM;
2016-01-07 06:56:44 -08:00
f->draw_type = CDT_LEAFLIKE;
f->setAllTextures("apple_leaves.png");
2014-09-19 09:36:05 -07:00
#ifndef SERVER
2016-01-07 06:56:44 -08:00
f->setAllTextureTypes(MATERIAL_ALPHA_SIMPLE);
f->setAllTextureFlags(0);
2014-09-19 09:36:05 -07:00
#endif
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_LEAF;
2017-06-22 10:01:58 -07:00
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_RESIN)+" 1";
2014-09-19 09:36:05 -07:00
f->extra_dug_item = std::string("MaterialItem2 ")+itos(CONTENT_APPLE_SAPLING)+" 1";
f->extra_dug_item_rarity = 20;
2017-08-20 23:51:27 -07:00
f->dug_item = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_STICK)+" 2";
2015-06-21 02:35:39 -07:00
f->ondig_special_drop = CONTENT_TRIMMED_APPLE_LEAVES;
f->ondig_special_drop_count = 1;
f->ondig_special_tool = TT_SHEAR;
f->place_on_drop = CONTENT_APPLE_SAPLING;
f->place_on_drop_alternate = CONTENT_WILDGRASS_SHORT;
2014-09-19 09:36:05 -07:00
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.15;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("decrafting",i,1,0);
content_list_add("cooking",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_JUNGLELEAVES;
f = &content_features(i);
f->description = gettext("Jungle Leaves");
2014-09-19 09:36:05 -07:00
f->light_propagates = true;
f->air_equivalent = true;
2015-01-17 14:34:05 -08:00
f->walkable = false;
f->climbable = true;
2014-09-19 09:36:05 -07:00
f->param_type = CPT_LIGHT;
2016-01-07 06:56:44 -08:00
f->draw_type = CDT_LEAFLIKE;
f->setAllTextures("jungleleaves.png");
2014-09-19 09:36:05 -07:00
#ifndef SERVER
2016-01-07 06:56:44 -08:00
f->setAllTextureTypes(MATERIAL_ALPHA_SIMPLE);
f->setAllTextureFlags(0);
2014-09-19 09:36:05 -07:00
#endif
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_LEAF;
2017-06-22 10:01:58 -07:00
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_RESIN)+" 1";
2014-09-19 09:36:05 -07:00
f->extra_dug_item = std::string("MaterialItem2 ")+itos(CONTENT_JUNGLESAPLING)+" 1";
f->extra_dug_item_rarity = 20;
2017-08-20 23:51:27 -07:00
f->dug_item = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_STICK)+" 2";
2015-06-21 02:35:39 -07:00
f->ondig_special_drop = CONTENT_TRIMMED_JUNGLE_LEAVES;
f->ondig_special_drop_count = 1;
f->ondig_special_tool = TT_SHEAR;
f->place_on_drop = CONTENT_JUNGLESAPLING;
f->place_on_drop_alternate = CONTENT_WILDGRASS_SHORT;
2014-09-19 09:36:05 -07:00
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.15;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("decrafting",i,1,0);
content_list_add("cooking",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_CONIFER_LEAVES;
f = &content_features(i);
f->description = gettext("Conifer Leaves");
2014-09-19 09:36:05 -07:00
f->light_propagates = true;
f->air_equivalent = true;
2015-01-17 14:34:05 -08:00
f->walkable = false;
f->climbable = true;
2014-09-19 09:36:05 -07:00
f->param_type = CPT_LIGHT;
2016-01-07 06:56:44 -08:00
f->draw_type = CDT_LEAFLIKE;
f->setAllTextures("conifer_leaves.png");
2014-09-19 09:36:05 -07:00
#ifndef SERVER
2016-01-07 06:56:44 -08:00
f->setAllTextureTypes(MATERIAL_ALPHA_SIMPLE);
f->setAllTextureFlags(0);
2014-09-19 09:36:05 -07:00
#endif
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_LEAF;
2017-06-22 10:01:58 -07:00
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_RESIN)+" 1";
2014-09-19 09:36:05 -07:00
f->extra_dug_item = std::string("MaterialItem2 ")+itos(CONTENT_CONIFER_SAPLING)+" 1";
f->extra_dug_item_rarity = 20;
2017-08-20 23:51:27 -07:00
f->dug_item = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_STICK)+" 2";
2015-06-21 02:35:39 -07:00
f->ondig_special_drop = CONTENT_TRIMMED_CONIFER_LEAVES;
f->ondig_special_drop_count = 1;
f->ondig_special_tool = TT_SHEAR;
f->place_on_drop = CONTENT_CONIFER_SAPLING;
f->place_on_drop_alternate = CONTENT_WILDGRASS_SHORT;
2014-09-19 09:36:05 -07:00
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.15;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("decrafting",i,1,0);
content_list_add("cooking",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_TRIMMED_LEAVES;
f = &content_features(i);
f->description = gettext("Trimmed Leaves");
2014-09-19 09:36:05 -07:00
f->light_propagates = true;
f->air_equivalent = true;
2015-01-17 14:34:05 -08:00
f->walkable = false;
f->climbable = true;
2014-09-19 09:36:05 -07:00
f->param_type = CPT_LIGHT;
2016-01-07 06:56:44 -08:00
f->draw_type = CDT_GLASSLIKE;
f->setAllTextures("leaves.png");
2014-09-19 09:36:05 -07:00
#ifndef SERVER
2016-01-07 06:56:44 -08:00
f->setAllTextureTypes(MATERIAL_ALPHA_SIMPLE);
2014-09-19 09:36:05 -07:00
#endif
2016-01-07 06:56:44 -08:00
f->setInventoryTextureCube("leaves.png", "leaves.png", "leaves.png");
2014-09-19 09:36:05 -07:00
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_LEAF;
2017-06-22 10:01:58 -07:00
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_RESIN)+" 1";
2014-09-19 09:36:05 -07:00
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.15;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
content_list_add("cooking",i,1,0);
2014-09-19 09:36:05 -07:00
2015-08-27 04:29:58 -07:00
i = CONTENT_TRIMMED_LEAVES_AUTUMN;
f = &content_features(i);
f->description = gettext("Trimmed Leaves");
2015-08-27 04:29:58 -07:00
f->light_propagates = true;
f->air_equivalent = true;
f->walkable = false;
f->climbable = true;
f->param_type = CPT_LIGHT;
2016-01-07 06:56:44 -08:00
f->draw_type = CDT_GLASSLIKE;
f->setAllTextures("leaves_autumn.png");
2015-08-27 04:29:58 -07:00
#ifndef SERVER
2016-01-07 06:56:44 -08:00
f->setAllTextureTypes(MATERIAL_ALPHA_SIMPLE);
2015-08-27 04:29:58 -07:00
#endif
2016-01-07 06:56:44 -08:00
f->setInventoryTextureCube("leaves_autumn.png", "leaves_autumn.png", "leaves_autumn.png");
2015-08-27 04:29:58 -07:00
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_LEAF;
2017-06-22 10:01:58 -07:00
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_RESIN)+" 1";
2015-08-27 04:29:58 -07:00
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.15;
2015-08-27 04:29:58 -07:00
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
content_list_add("cooking",i,1,0);
2015-08-27 04:29:58 -07:00
i = CONTENT_TRIMMED_LEAVES_WINTER;
f = &content_features(i);
f->description = gettext("Trimmed Leaves");
2015-08-27 04:29:58 -07:00
f->light_propagates = true;
f->air_equivalent = true;
f->walkable = false;
f->climbable = true;
f->param_type = CPT_LIGHT;
2016-01-07 06:56:44 -08:00
f->draw_type = CDT_GLASSLIKE;
f->setAllTextures("leaves_winter.png");
2015-08-27 04:29:58 -07:00
#ifndef SERVER
2016-01-07 06:56:44 -08:00
f->setAllTextureTypes(MATERIAL_ALPHA_SIMPLE);
2015-08-27 04:29:58 -07:00
#endif
2016-01-07 06:56:44 -08:00
f->setInventoryTextureCube("leaves_winter.png", "leaves_winter.png", "leaves_winter.png");
2015-08-27 04:29:58 -07:00
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_LEAF;
2015-08-27 04:29:58 -07:00
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_ASH)+" 1";
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.15;
2015-08-27 04:29:58 -07:00
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
content_list_add("cooking",i,1,0);
2015-08-27 04:29:58 -07:00
2014-09-19 09:36:05 -07:00
i = CONTENT_TRIMMED_APPLE_LEAVES;
f = &content_features(i);
f->description = gettext("Trimmed Apple Tree Leaves");
2014-09-19 09:36:05 -07:00
f->light_propagates = true;
f->air_equivalent = true;
2015-01-17 14:34:05 -08:00
f->walkable = false;
f->climbable = true;
2014-09-19 09:36:05 -07:00
f->param_type = CPT_LIGHT;
2016-01-07 06:56:44 -08:00
f->draw_type = CDT_GLASSLIKE;
f->setAllTextures("apple_leaves.png");
2014-09-19 09:36:05 -07:00
#ifndef SERVER
2016-01-07 06:56:44 -08:00
f->setAllTextureTypes(MATERIAL_ALPHA_SIMPLE);
2014-09-19 09:36:05 -07:00
#endif
2016-01-07 06:56:44 -08:00
f->setInventoryTextureCube("apple_leaves.png", "apple_leaves.png", "apple_leaves.png");
2014-09-19 09:36:05 -07:00
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_LEAF;
2017-06-22 10:01:58 -07:00
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_RESIN)+" 1";
2014-09-19 09:36:05 -07:00
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.15;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
content_list_add("cooking",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_TRIMMED_JUNGLE_LEAVES;
f = &content_features(i);
f->description = gettext("Trimmed Jungle Leaves");
2014-09-19 09:36:05 -07:00
f->light_propagates = true;
f->air_equivalent = true;
2015-01-17 14:34:05 -08:00
f->walkable = false;
f->climbable = true;
2014-09-19 09:36:05 -07:00
f->param_type = CPT_LIGHT;
2016-01-07 06:56:44 -08:00
f->draw_type = CDT_GLASSLIKE;
f->setAllTextures("jungleleaves.png");
2014-09-19 09:36:05 -07:00
#ifndef SERVER
2016-01-07 06:56:44 -08:00
f->setAllTextureTypes(MATERIAL_ALPHA_SIMPLE);
2014-09-19 09:36:05 -07:00
#endif
2016-01-07 06:56:44 -08:00
f->setInventoryTextureCube("jungleleaves.png", "jungleleaves.png", "jungleleaves.png");
2014-09-19 09:36:05 -07:00
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_LEAF;
2017-06-22 10:01:58 -07:00
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_RESIN)+" 1";
2014-09-19 09:36:05 -07:00
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.15;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
content_list_add("cooking",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_TRIMMED_CONIFER_LEAVES;
f = &content_features(i);
f->description = gettext("Trimmed Conifer Leaves");
2014-09-19 09:36:05 -07:00
f->light_propagates = true;
f->air_equivalent = true;
2015-01-17 14:34:05 -08:00
f->walkable = false;
f->climbable = true;
2014-09-19 09:36:05 -07:00
f->param_type = CPT_LIGHT;
2016-01-07 06:56:44 -08:00
f->draw_type = CDT_GLASSLIKE;
f->setAllTextures("conifer_leaves.png");
2014-09-19 09:36:05 -07:00
#ifndef SERVER
2016-01-07 06:56:44 -08:00
f->setAllTextureTypes(MATERIAL_ALPHA_SIMPLE);
2014-09-19 09:36:05 -07:00
#endif
2016-01-07 06:56:44 -08:00
f->setInventoryTextureCube("conifer_leaves.png", "conifer_leaves.png", "conifer_leaves.png");
2014-09-19 09:36:05 -07:00
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_LEAF;
2017-06-22 10:01:58 -07:00
f->cook_result = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_RESIN)+" 1";
2014-09-19 09:36:05 -07:00
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.15;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
content_list_add("cooking",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_APPLE_BLOSSOM;
f = &content_features(i);
f->description = gettext("Apple Tree Blossom");
2014-09-19 09:36:05 -07:00
f->light_propagates = true;
f->air_equivalent = true;
2015-01-17 14:34:05 -08:00
f->walkable = false;
f->climbable = true;
2014-09-19 09:36:05 -07:00
f->param_type = CPT_LIGHT;
2015-05-03 05:06:35 -07:00
f->special_alternate_node = CONTENT_APPLE_LEAVES;
2016-01-07 06:56:44 -08:00
f->draw_type = CDT_LEAFLIKE;
f->setAllTextures("apple_leaves.png^apple_blossom.png");
2014-09-19 09:36:05 -07:00
#ifndef SERVER
2016-01-07 06:56:44 -08:00
f->setAllTextureTypes(MATERIAL_ALPHA_SIMPLE);
f->setAllTextureFlags(0);
2014-09-19 09:36:05 -07:00
#endif
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-06-22 10:01:58 -07:00
f->extra_dug_item = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_APPLE_BLOSSOM)+" 1";
2014-09-19 09:36:05 -07:00
f->extra_dug_item_rarity = 1;
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_APPLE_LEAVES)+" 1";
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.15;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("decrafting",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_TRIMMED_APPLE_BLOSSOM;
f = &content_features(i);
f->description = gettext("Trimmed Apple Tree Blossom");
2014-09-19 09:36:05 -07:00
f->light_propagates = true;
f->air_equivalent = true;
2015-01-17 14:34:05 -08:00
f->walkable = false;
f->climbable = true;
2014-09-19 09:36:05 -07:00
f->param_type = CPT_LIGHT;
2016-01-07 06:56:44 -08:00
f->draw_type = CDT_GLASSLIKE;
f->setAllTextures("apple_leaves.png^apple_blossom.png");
2014-09-19 09:36:05 -07:00
#ifndef SERVER
2016-01-07 06:56:44 -08:00
f->setAllTextureTypes(MATERIAL_ALPHA_SIMPLE);
2014-09-19 09:36:05 -07:00
#endif
2016-01-07 06:56:44 -08:00
f->setInventoryTextureCube("apple_leaves.png^apple_blossom.png", "apple_leaves.png^apple_blossom.png", "apple_leaves.png^apple_blossom.png");
2014-09-19 09:36:05 -07:00
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;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.15;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_CACTUS_BLOSSOM;
f = &content_features(i);
f->description = gettext("Cactus Blossom");
2014-09-19 09:36:05 -07:00
f->setInventoryTexture("cactus_blossom.png");
f->setAllTextures("cactus_blossom.png");
f->setAllTextureFlags(0);
f->light_propagates = true;
f->param_type = CPT_LIGHT;
f->draw_type = CDT_PLANTLIKE;
f->air_equivalent = false; // grass grows underneath
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->walkable = false;
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_FLOWER;
2015-03-18 13:04:23 -07:00
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.20;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_CACTUS_FLOWER;
f = &content_features(i);
f->description = gettext("Cactus Flower");
2014-09-19 09:36:05 -07:00
f->setInventoryTexture("cactus_flower.png");
f->setAllTextures("cactus_flower.png");
f->setAllTextureFlags(0);
f->light_propagates = true;
f->param_type = CPT_LIGHT;
f->draw_type = CDT_PLANTLIKE;
2015-01-31 23:02:33 -08:00
f->air_equivalent = true;
2014-09-19 09:36:05 -07:00
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_CACTUS_BLOSSOM)+" 1";
f->walkable = false;
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_FLOWER;
2015-03-18 13:04:23 -07:00
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.20;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
content_list_add("decrafting",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_CACTUS_FRUIT;
f = &content_features(i);
f->description = gettext("Cactus Berry");
2014-09-19 09:36:05 -07:00
f->setInventoryTexture("cactus_fruit.png");
f->setAllTextures("cactus_fruit.png");
f->setAllTextureFlags(0);
f->light_propagates = true;
f->param_type = CPT_LIGHT;
f->draw_type = CDT_PLANTLIKE;
2015-01-31 23:02:33 -08:00
f->air_equivalent = true;
2017-06-22 10:01:58 -07:00
f->dug_item = std::string("CraftItem2 ")+itos(CONTENT_CRAFTITEM_CACTUS_FRUIT)+" 1";
2014-09-19 09:36:05 -07:00
f->walkable = false;
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_FRUIT;
2015-03-18 13:04:23 -07:00
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.20;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_CACTUS;
f = &content_features(i);
f->description = gettext("Cactus");
2014-09-19 09:36:05 -07:00
f->setAllTextures("cactus_side.png");
f->setTexture(0, "cactus_top.png");
f->setTexture(1, "cactus_top.png");
f->draw_type = CDT_NODEBOX;
f->param_type = CPT_LIGHT;
f->light_propagates = true;
f->sunlight_propagates = true;
f->damage_per_second = 10;
2014-09-19 09:36:05 -07:00
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_CACTUS;
2014-09-19 09:36:05 -07:00
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
2015-02-01 23:16:31 -08:00
f->extra_dug_item = std::string("CraftItem2 ") + itos (CONTENT_CRAFTITEM_MUSH) + " 1";
f->extra_dug_item_rarity = 10;
2017-07-08 04:45:10 -07:00
content_nodebox_cactus(f);
2014-09-19 09:36:05 -07:00
f->setInventoryTextureCube("cactus_top.png", "cactus_side.png", "cactus_side.png");
f->type = CMT_WOOD;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.75;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_PAPYRUS;
f = &content_features(i);
f->description = gettext("Papyrus");
2014-09-19 09:36:05 -07:00
f->setInventoryTexture("papyrus.png");
f->setAllTextures("papyrus.png");
f->setAllTextureFlags(0);
f->light_propagates = true;
f->param_type = CPT_LIGHT;
2015-06-01 12:22:27 -07:00
f->param2_type = CPT_PLANTGROWTH;
2014-09-19 09:36:05 -07:00
f->draw_type = CDT_PLANTLIKE;
2016-01-07 05:37:57 -08:00
f->plantlike_tiled = true;
2015-06-01 12:22:27 -07:00
f->plantgrowth_large_dug_node = CONTENT_PAPYRUS;
f->plantgrowth_large_count = 1;
f->plantgrowth_max_height = 5;
2014-09-19 09:36:05 -07:00
f->walkable = false;
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_BUSH;
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.25;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_SAPLING;
f = &content_features(i);
f->description = gettext("Sapling");
2014-09-19 09:36:05 -07:00
f->param_type = CPT_LIGHT;
f->draw_type = CDT_PLANTLIKE;
f->setAllTextures("sapling.png");
f->setInventoryTexture("sapling.png");
f->setAllTextureFlags(0);
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->light_propagates = true;
f->air_equivalent = false;
f->walkable = false;
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_SAPLING;
2014-09-19 09:36:05 -07:00
f->type = CMT_WOOD;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.1;
2014-10-24 07:35:58 -07:00
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
2015-02-01 23:16:31 -08:00
f->fertilizer_affects = true;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_APPLE_SAPLING;
f = &content_features(i);
f->description = gettext("Apple Tree Sapling");
2014-09-19 09:36:05 -07:00
f->param_type = CPT_LIGHT;
f->draw_type = CDT_PLANTLIKE;
f->setAllTextures("apple_sapling.png");
f->setInventoryTexture("apple_sapling.png");
f->setAllTextureFlags(0);
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->light_propagates = true;
f->air_equivalent = false;
f->walkable = false;
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_SAPLING;
2014-09-19 09:36:05 -07:00
f->type = CMT_WOOD;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.1;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2015-02-01 23:16:31 -08:00
f->fertilizer_affects = true;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_JUNGLESAPLING;
f = &content_features(i);
f->description = gettext("Jungle Sapling");
2014-09-19 09:36:05 -07:00
f->param_type = CPT_LIGHT;
f->draw_type = CDT_PLANTLIKE;
f->setAllTextures("junglesapling.png");
f->setInventoryTexture("junglesapling.png");
f->setAllTextureFlags(0);
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->light_propagates = true;
f->air_equivalent = false;
f->walkable = false;
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_SAPLING;
2014-09-19 09:36:05 -07:00
f->type = CMT_WOOD;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.1;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2015-02-01 23:16:31 -08:00
f->fertilizer_affects = true;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_CONIFER_SAPLING;
f = &content_features(i);
f->description = gettext("Conifer Sapling");
2014-09-19 09:36:05 -07:00
f->param_type = CPT_LIGHT;
f->draw_type = CDT_PLANTLIKE;
f->setAllTextures("conifer_sapling.png");
f->setInventoryTexture("conifer_sapling.png");
f->setAllTextureFlags(0);
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->light_propagates = true;
f->air_equivalent = false;
f->walkable = false;
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_SAPLING;
2014-09-19 09:36:05 -07:00
f->type = CMT_WOOD;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.1;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2015-02-01 23:16:31 -08:00
f->fertilizer_affects = true;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_APPLE;
f = &content_features(i);
f->description = gettext("Apple");
2014-09-19 09:36:05 -07:00
f->setInventoryTexture("apple.png");
f->setAllTextures("apple.png");
f->setAllTextureFlags(0);
f->param_type = CPT_LIGHT;
2016-01-06 09:40:08 -08:00
f->draw_type = CDT_PLANTLIKE;
2014-09-19 09:36:05 -07:00
f->light_propagates = true;
f->sunlight_propagates = true;
f->walkable = false;
f->air_equivalent = true;
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_FRUIT;
f->dug_item = std::string("CraftItem2 ") +itos(CONTENT_CRAFTITEM_APPLE)+" 1";
f->ondig_replace_node = CONTENT_APPLE_LEAVES;
f->ondig_replace_node_requires = CONTENT_APPLE_TREE;
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.0;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2014-09-19 09:36:05 -07:00
// plants
i = CONTENT_WILDGRASS_SHORT;
f = &content_features(i);
f->description = gettext("Wild Grass");
2014-09-19 09:36:05 -07:00
f->setInventoryTexture("wildgrass_short.png");
f->setAllTextures("wildgrass_short.png");
f->setAllTextureFlags(0);
f->light_propagates = true;
f->sunlight_propagates = true;
f->param_type = CPT_LIGHT;
f->draw_type = CDT_PLANTLIKE;
2015-01-31 23:02:33 -08:00
f->air_equivalent = true;
2017-08-11 02:57:09 -07:00
f->ondig_special_drop = CONTENT_CRAFTITEM_STRAW;
f->ondig_special_tool = TT_KNIFE;
2014-09-19 09:36:05 -07:00
f->walkable = false;
f->material_pointable = false;
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_GRASS;
2014-09-19 09:36:05 -07:00
//f->pointable = false;
f->buildable_to = true;
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.10;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2014-09-19 09:36:05 -07:00
i = CONTENT_WILDGRASS_LONG;
f = &content_features(i);
f->description = gettext("Wild Grass");
2014-09-19 09:36:05 -07:00
f->setInventoryTexture("wildgrass_long.png");
f->setAllTextures("wildgrass_long.png");
f->setAllTextureFlags(0);
f->light_propagates = true;
f->sunlight_propagates = true;
f->param_type = CPT_LIGHT;
f->draw_type = CDT_PLANTLIKE;
f->air_equivalent = true;
2017-08-11 02:57:09 -07:00
f->ondig_special_drop = CONTENT_CRAFTITEM_STRAW;
f->ondig_special_tool = TT_KNIFE;
2014-09-19 09:36:05 -07:00
f->walkable = false;
f->material_pointable = false;
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_GRASS;
2014-09-19 09:36:05 -07:00
f->buildable_to = true;
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.15;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2014-09-19 09:36:05 -07:00
i = CONTENT_DEADGRASS;
f = &content_features(i);
f->description = gettext("Dead Grass");
2014-09-19 09:36:05 -07:00
f->setInventoryTexture("deadgrass.png");
f->setAllTextures("deadgrass.png");
f->setAllTextureFlags(0);
f->light_propagates = true;
f->sunlight_propagates = true;
f->air_equivalent = true;
2014-09-19 09:36:05 -07:00
f->param_type = CPT_LIGHT;
f->draw_type = CDT_PLANTLIKE;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->walkable = false;
f->material_pointable = false;
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_GRASS;
2014-09-19 09:36:05 -07:00
f->buildable_to = true;
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.10;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2014-09-19 09:36:05 -07:00
i = CONTENT_FLOWER_STEM;
f = &content_features(i);
f->description = gettext("Flower Stem");
2014-09-19 09:36:05 -07:00
f->setInventoryTexture("flower_stem.png");
f->setAllTextures("flower_stem.png");
f->setAllTextureFlags(0);
f->light_propagates = true;
f->sunlight_propagates = true;
f->air_equivalent = true;
2014-09-19 09:36:05 -07:00
f->param_type = CPT_LIGHT;
f->draw_type = CDT_PLANTLIKE;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->walkable = false;
f->material_pointable = false;
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_GRASS;
2014-09-19 09:36:05 -07:00
f->buildable_to = true;
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.10;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2014-09-19 09:36:05 -07:00
i = CONTENT_FLOWER_ROSE;
f = &content_features(i);
f->description = gettext("Rose");
2014-09-19 09:36:05 -07:00
f->setInventoryTexture("flower_rose.png");
f->setAllTextures("flower_rose.png");
f->setAllTextureFlags(0);
f->light_propagates = true;
f->sunlight_propagates = true;
f->air_equivalent = true;
2014-09-19 09:36:05 -07:00
f->param_type = CPT_LIGHT;
f->draw_type = CDT_PLANTLIKE;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->walkable = false;
f->material_pointable = false;
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_GRASS;
2014-09-19 09:36:05 -07:00
f->buildable_to = true;
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.10;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_FLOWER_DAFFODIL;
f = &content_features(i);
f->description = gettext("Daffodil");
2014-09-19 09:36:05 -07:00
f->setInventoryTexture("flower_daffodil.png");
f->setAllTextures("flower_daffodil.png");
f->setAllTextureFlags(0);
f->light_propagates = true;
f->sunlight_propagates = true;
f->air_equivalent = true;
2014-09-19 09:36:05 -07:00
f->param_type = CPT_LIGHT;
f->draw_type = CDT_PLANTLIKE;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->walkable = false;
f->material_pointable = false;
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_GRASS;
2014-09-19 09:36:05 -07:00
f->buildable_to = true;
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.10;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2014-09-19 09:36:05 -07:00
i = CONTENT_FLOWER_TULIP;
f = &content_features(i);
f->description = gettext("Tulip");
2014-09-19 09:36:05 -07:00
f->setInventoryTexture("flower_tulip.png");
f->setAllTextures("flower_tulip.png");
f->setAllTextureFlags(0);
f->light_propagates = true;
f->sunlight_propagates = true;
f->air_equivalent = true;
2014-09-19 09:36:05 -07:00
f->param_type = CPT_LIGHT;
f->draw_type = CDT_PLANTLIKE;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->walkable = false;
f->material_pointable = false;
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_GRASS;
2014-09-19 09:36:05 -07:00
f->buildable_to = true;
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.10;
2014-09-19 09:36:05 -07:00
f->pressure_type = CST_CRUSHABLE;
2014-10-24 07:35:58 -07:00
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2015-06-05 06:07:42 -07:00
i = CONTENT_SEEDS_TEA;
f = &content_features(i);
f->description = gettext("Tea Seeds");
2015-06-05 06:07:42 -07:00
f->setAllTextures("farm_seeds_tea.png");
f->draw_type = CDT_PLANTLIKE;
f->param_type = CPT_LIGHT;
f->setAllTextureFlags(0);
f->walkable = false;
f->light_propagates = true;
f->sunlight_propagates = true;
f->air_equivalent = true;
f->special_alternate_node = CONTENT_TEA;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.4;
2015-06-05 06:07:42 -07:00
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2015-06-05 06:07:42 -07:00
i = CONTENT_TEA;
f = &content_features(i);
f->description = gettext("Tea Plant");
2015-06-05 06:07:42 -07:00
f->setInventoryTexture("plant_tea.png");
f->setAllTextures("plant_tea.png");
f->setAllTextureFlags(0);
f->light_propagates = true;
f->param_type = CPT_LIGHT;
f->param2_type = CPT_PLANTGROWTH;
f->draw_type = CDT_PLANTLIKE;
f->plantgrowth_small_dug_node = CONTENT_SEEDS_TEA;
f->plantgrowth_large_dug_node = CONTENT_CRAFTITEM_TEA_LEAVES;
f->plantgrowth_large_gives_small = true;
f->walkable = false;
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_BUSH;
2015-06-05 06:07:42 -07:00
f->buildable_to = true;
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.15;
2015-06-05 06:07:42 -07:00
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2015-06-05 06:07:42 -07:00
i = CONTENT_BEANS_COFFEE;
f = &content_features(i);
f->description = gettext("Coffee Beans");
2015-06-05 06:07:42 -07:00
f->setAllTextures("farm_seeds_coffee.png");
f->draw_type = CDT_PLANTLIKE;
f->param_type = CPT_LIGHT;
f->setAllTextureFlags(0);
f->walkable = false;
f->light_propagates = true;
f->sunlight_propagates = true;
f->air_equivalent = true;
f->special_alternate_node = CONTENT_COFFEE;
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;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.4;
2015-06-05 06:07:42 -07:00
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2015-06-05 06:07:42 -07:00
i = CONTENT_COFFEE;
f = &content_features(i);
f->description = gettext("Coffee Plant");
2015-06-05 06:07:42 -07:00
f->setInventoryTexture("plant_coffe.png");
f->setAllTextures("plant_coffee.png");
f->setAllTextureFlags(0);
f->light_propagates = true;
f->param_type = CPT_LIGHT;
f->param2_type = CPT_PLANTGROWTH;
f->draw_type = CDT_PLANTLIKE;
f->plantgrowth_small_dug_node = CONTENT_BEANS_COFFEE;
f->plantgrowth_large_dug_node = CONTENT_BEANS_COFFEE;
f->walkable = false;
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_BUSH;
2015-06-05 06:07:42 -07:00
f->buildable_to = true;
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.15;
2015-06-05 06:07:42 -07:00
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2017-02-08 11:13:42 -08:00
i = CONTENT_BUSH_BLUEBERRY;
f = &content_features(i);
f->description = gettext("Blueberry Bush");
2017-02-08 11:13:42 -08:00
f->light_propagates = true;
f->air_equivalent = true;
f->param_type = CPT_LIGHT;
f->param2_type = CPT_PLANTGROWTH;
f->draw_type = CDT_BUSHLIKE;
f->ondig_gives_inventory = true;
f->setAllTextures("bush_blueberry.png");
f->setAllMetaTextures("bush_blueberry_berry.png");
#ifndef SERVER
f->setAllTextureTypes(MATERIAL_ALPHA_SIMPLE);
f->setAllTextureFlags(0);
f->setAllMetaTextureTypes(MATERIAL_ALPHA_SIMPLE);
f->setAllMetaTextureFlags(0);
#endif
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_BUSH;
2017-02-08 11:13:42 -08:00
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.15;
2017-02-08 11:13:42 -08:00
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
f->onpunch_gives_inventory = true;
f->special_alternate_node = CONTENT_CRAFTITEM_BLUEBERRY;
if(f->initial_metadata == NULL)
f->initial_metadata = new BushNodeMetadata();
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2017-02-08 11:13:42 -08:00
i = CONTENT_BUSH_RASPBERRY;
f = &content_features(i);
f->description = gettext("Raspberry Bush");
2017-02-08 11:13:42 -08:00
f->light_propagates = true;
f->air_equivalent = true;
f->param_type = CPT_LIGHT;
f->param2_type = CPT_PLANTGROWTH;
f->draw_type = CDT_BUSHLIKE;
f->ondig_gives_inventory = true;
f->setAllTextures("bush_raspberry.png");
f->setAllMetaTextures("bush_raspberry_berry.png");
#ifndef SERVER
f->setAllTextureTypes(MATERIAL_ALPHA_SIMPLE);
f->setAllTextureFlags(0);
f->setAllMetaTextureTypes(MATERIAL_ALPHA_SIMPLE);
f->setAllMetaTextureFlags(0);
#endif
f->flammable = 1; // can be replaced by fire if the node under it is set on fire
2017-07-04 08:47:20 -07:00
f->fuel_time = BT_BUSH;
2017-02-08 11:13:42 -08:00
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->type = CMT_PLANT;
2017-06-25 00:28:11 -07:00
f->dig_time = 0.15;
2017-02-08 11:13:42 -08:00
f->pressure_type = CST_CRUSHABLE;
f->suffocation_per_second = 0;
f->onpunch_gives_inventory = true;
f->special_alternate_node = CONTENT_CRAFTITEM_RASPBERRY;
if(f->initial_metadata == NULL)
f->initial_metadata = new BushNodeMetadata();
2017-04-05 09:44:59 -07:00
content_list_add("creative",i,1,0);
2014-09-19 09:36:05 -07:00
}