diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-02-28 19:45:23 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-10 11:28:12 +0200 |
commit | 562ac3bce9fae076562bd2e92e7d330c296ac1b0 (patch) | |
tree | 4b9421f1fd0a22a69cfa6320cc30f41f0f68af8a /src/test.cpp | |
parent | f21291211caaaa22ee5673adf46615dd46a36285 (diff) | |
download | minetest-562ac3bce9fae076562bd2e92e7d330c296ac1b0.tar.gz minetest-562ac3bce9fae076562bd2e92e7d330c296ac1b0.tar.bz2 minetest-562ac3bce9fae076562bd2e92e7d330c296ac1b0.zip |
Digging time groups WIP
Diffstat (limited to 'src/test.cpp')
-rw-r--r-- | src/test.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/test.cpp b/src/test.cpp index 4226df544..45851a7e3 100644 --- a/src/test.cpp +++ b/src/test.cpp @@ -68,6 +68,7 @@ void define_some_nodes(IWritableItemDefManager *idef, IWritableNodeDefManager *n itemdef.type = ITEM_NODE; itemdef.name = "default:stone"; itemdef.description = "Stone"; + itemdef.groups["cracky"] = 3; itemdef.inventory_image = "[inventorycube" "{default_stone.png" "{default_stone.png" @@ -77,11 +78,6 @@ void define_some_nodes(IWritableItemDefManager *idef, IWritableNodeDefManager *n for(int i = 0; i < 6; i++) f.tname_tiles[i] = "default_stone.png"; f.is_ground_content = true; - f.material.diggability = DIGGABLE_NORMAL; - f.material.weight = 5.0; - f.material.crackiness = 1.0; - f.material.crumbliness = -0.1; - f.material.cuttability = -0.2; idef->registerItem(itemdef); ndef->set(i, f); @@ -93,6 +89,7 @@ void define_some_nodes(IWritableItemDefManager *idef, IWritableNodeDefManager *n itemdef.type = ITEM_NODE; itemdef.name = "default:dirt_with_grass"; itemdef.description = "Dirt with grass"; + itemdef.groups["crumbly"] = 3; itemdef.inventory_image = "[inventorycube" "{default_grass.png" "{default_dirt.png&default_grass_side.png" @@ -104,11 +101,6 @@ void define_some_nodes(IWritableItemDefManager *idef, IWritableNodeDefManager *n for(int i = 2; i < 6; i++) f.tname_tiles[i] = "default_dirt.png^default_grass_side.png"; f.is_ground_content = true; - f.material.diggability = DIGGABLE_NORMAL; - f.material.weight = 1.2; - f.material.crackiness = 0.0; - f.material.crumbliness = 1.2; - f.material.cuttability = -0.4; idef->registerItem(itemdef); ndef->set(i, f); } |