technic/technic_cnc/cnc_materials.lua

416 lines
13 KiB
Lua
Raw Normal View History

2013-07-17 21:34:35 +02:00
-- REGISTER MATERIALS AND PROPERTIES FOR NONCUBIC ELEMENTS:
-----------------------------------------------------------
local S = technic_cnc.getter
2013-07-17 21:34:35 +02:00
-- DIRT
-------
technic_cnc.register_all("default:dirt",
2013-07-17 21:34:35 +02:00
{snappy=2,choppy=2,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
{"default_dirt.png"},
S("Dirt"))
-- (DIRT WITH) GRASS
--------------------
technic_cnc.register_all("default:dirt_with_grass",
{snappy=2,choppy=2,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
{"default_grass.png"},
S("Grassy dirt"))
2013-07-17 21:34:35 +02:00
-- WOOD
-------
technic_cnc.register_all("default:wood",
2013-07-17 21:34:35 +02:00
{snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1},
{"default_wood.png"},
S("Wooden"))
2018-11-26 09:09:20 +01:00
technic_cnc.register_all("default:junglewood",
{snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1},
{"default_junglewood.png"},
S("Junglewood"))
technic_cnc.register_all("default:pine_wood",
{snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1},
{"default_pine_wood.png"},
S("Pine"))
technic_cnc.register_all("default:acacia_wood",
{snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1},
{"default_acacia_wood.png"},
S("Acacia"))
technic_cnc.register_all("default:aspen_wood",
{snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1},
{"default_aspen_wood.png"},
S("Aspen"))
2013-07-17 21:34:35 +02:00
-- STONE
--------
technic_cnc.register_all("default:stone",
2018-11-26 09:09:20 +01:00
{cracky=3, stone=1, not_in_creative_inventory=1},
2013-07-17 21:34:35 +02:00
{"default_stone.png"},
S("Stone"))
2018-11-26 09:09:20 +01:00
technic_cnc.register_all("default:stonebrick",
{crumbly=2, cracky=3, stone=1, not_in_creative_inventory=1},
{"default_stone_brick.png"},
S("Stone Brick"))
technic_cnc.register_all("default:stone_block",
{crumbly=2, cracky=3, stone=1, not_in_creative_inventory=1},
{"default_stone_block.png"},
S("Stone Block"))
technic_cnc.register_all("default:desert_stone",
{cracky=3, stone=1, not_in_creative_inventory=1},
{"default_desert_stone.png"},
S("Desert Stone"))
technic_cnc.register_all("default:desert_stonebrick",
{crumbly=2, cracky=3, stone=1, not_in_creative_inventory=1},
{"default_desert_stone_brick.png"},
S("Desert Stone Brick"))
technic_cnc.register_all("default:desert_stone_block",
{crumbly=2, cracky=3, stone=1, not_in_creative_inventory=1},
{"default_desert_stone_block.png"},
S("Desert Stone Block"))
2013-07-17 21:34:35 +02:00
-- COBBLE
---------
technic_cnc.register_all("default:cobble",
2018-11-26 09:09:20 +01:00
{cracky=3, stone=1, not_in_creative_inventory=1},
2013-07-17 21:34:35 +02:00
{"default_cobble.png"},
S("Cobble"))
2018-11-26 09:09:20 +01:00
2018-11-26 09:13:45 +01:00
technic_cnc.register_all("default:mossycobble",
2018-11-26 09:09:20 +01:00
{cracky=3, stone=1, not_in_creative_inventory=1},
{"default_mossycobble.png"},
S("Mossy Cobblestone"))
2018-11-26 09:13:45 +01:00
technic_cnc.register_all("default:desert_cobble",
2018-11-26 09:09:20 +01:00
{cracky=3, stone=1, not_in_creative_inventory=1},
{"default_desert_cobble.png"},
S("Desert Cobble"))
2013-07-17 21:34:35 +02:00
-- BRICK
--------
technic_cnc.register_all("default:brick",
2013-07-17 21:34:35 +02:00
{cracky=3, not_in_creative_inventory=1},
{"default_brick.png"},
S("Brick"))
2013-07-17 21:34:35 +02:00
-- SANDSTONE
------------
technic_cnc.register_all("default:sandstone",
{crumbly=2, cracky=3, not_in_creative_inventory=1},
2013-07-17 21:34:35 +02:00
{"default_sandstone.png"},
S("Sandstone"))
2013-07-17 21:34:35 +02:00
2018-11-26 09:09:20 +01:00
technic_cnc.register_all("default:sandstonebrick",
{crumbly=2, cracky=3, not_in_creative_inventory=1},
{"default_sandstone_brick.png"},
S("Sandstone Brick"))
technic_cnc.register_all("default:sandstone_block",
{crumbly=2, cracky=3, not_in_creative_inventory=1},
{"default_sandstone_block.png"},
S("Sandstone Block"))
technic_cnc.register_all("default:desert_sandstone",
{crumbly=2, cracky=3, not_in_creative_inventory=1},
{"default_desert_sandstone.png"},
S("Desert Sandstone"))
technic_cnc.register_all("default:desert_sandstone_brick",
{crumbly=2, cracky=3, not_in_creative_inventory=1},
{"default_desert_sandstone_brick.png"},
S("Desert Sandstone Brick"))
technic_cnc.register_all("default:desert_sandstone_block",
{crumbly=2, cracky=3, not_in_creative_inventory=1},
{"default_desert_sandstone_block.png"},
S("Desert Sandstone Block"))
technic_cnc.register_all("default:silver_sandstone",
{crumbly=2, cracky=3, not_in_creative_inventory=1},
{"default_silver_sandstone.png"},
S("Silver Sandstone"))
technic_cnc.register_all("default:silver_sandstone_brick",
{crumbly=2, cracky=3, not_in_creative_inventory=1},
{"default_silver_sandstone_brick.png"},
S("Silver Sandstone Brick"))
technic_cnc.register_all("default:silver_sandstone_block",
{crumbly=2, cracky=3, not_in_creative_inventory=1},
{"default_silver_sandstone_block.png"},
S("Silver Sandstone Block"))
2013-07-17 21:34:35 +02:00
-- LEAVES
---------
technic_cnc.register_all("default:leaves",
2013-07-17 21:34:35 +02:00
{snappy=2, choppy=2, oddly_breakable_by_hand=3, not_in_creative_inventory=1},
{"default_leaves.png"},
S("Leaves"))
2018-11-26 09:09:20 +01:00
2013-07-17 21:34:35 +02:00
-- TREE
-------
technic_cnc.register_all("default:tree",
2013-07-17 21:34:35 +02:00
{snappy=1, choppy=2, oddly_breakable_by_hand=2, flammable=3, wood=1, not_in_creative_inventory=1},
{"default_tree.png"},
S("Tree"))
2018-11-26 09:09:20 +01:00
-- ICE
-------
technic_cnc.register_all("default:ice",
{cracky=3, puts_out_fire=1, cools_lava=1, not_in_creative_inventory=1},
{"default_ice.png"},
S("Ice"))
-- OBSIDIAN
-----------
technic_cnc.register_all("default:obsidian_block",
{cracky=1, level=2, not_in_creative_inventory=1},
{"default_obsidian_block.png"},
S("Obsidian"))
-- WROUGHT IRON
---------------
technic_cnc.register_all("default:steelblock",
{cracky=1, level=2, not_in_creative_inventory=1},
{"technic_wrought_iron_block.png"},
S("Wrought Iron"))
-- Bronze
--------
technic_cnc.register_all("default:bronzeblock",
{cracky=1, level=2, not_in_creative_inventory=1},
{"default_bronze_block.png"},
S("Bronze"))
2018-11-26 09:09:20 +01:00
-- Zinc
--------
technic_cnc.register_all("technic:zinc_block",
{cracky=1, level=2, not_in_creative_inventory=1},
{"technic_zinc_block.png"},
S("Zinc"))
local steeltex = "default_steel_block.png"
local steelname = "Steel"
2018-11-26 09:09:20 +01:00
-- Cast Iron
------------
technic_cnc.register_all("technic:cast_iron_block",
{cracky=1, level=2, not_in_creative_inventory=1},
{"technic_cast_iron_block.png"},
S("Cast Iron"))
if technic_cnc.technic_modpath then
steeltex = "technic_wrought_iron_block.png"
steelname = "Wrought Iron"
-- Stainless Steel
--------
technic_cnc.register_all("technic:stainless_steel_block",
{cracky=1, level=2, not_in_creative_inventory=1},
{"technic_stainless_steel_block.png"},
S("Stainless Steel"))
-- Marble
------------
technic_cnc.register_all("technic:marble",
{cracky=3, not_in_creative_inventory=1},
{"technic_marble.png"},
S("Marble"))
-- Granite
------------
technic_cnc.register_all("technic:granite",
{cracky=1, not_in_creative_inventory=1},
{"technic_granite.png"},
S("Granite"))
-- Blast-resistant concrete
---------------------------
technic_cnc.register_all("technic:blast_resistant_concrete",
{cracky=2, level=2, not_in_creative_inventory=1},
{"technic_blast_resistant_concrete_block.png"},
S("Blast-resistant concrete"))
end
technic_cnc.register_all("default:steelblock",
{cracky=1, level=2, not_in_creative_inventory=1},
{steeltex},
S(steelname))
-- CONCRETE AND CEMENT
----------------------
technic_cnc.register_all("basic_materials:concrete_block",
{cracky=2, level=2, not_in_creative_inventory=1},
{"basic_materials_concrete_block.png"},
S("Concrete"))
technic_cnc.register_all("basic_materials:cement_block",
{cracky=2, level=2, not_in_creative_inventory=1},
{"basic_materials_cement_block.png"},
S("Cement"))
technic_cnc.register_all("basic_materials:brass_block",
{cracky=1, level=2, not_in_creative_inventory=1},
{"basic_materials_brass_block.png"},
S("Brass block"))
2018-11-26 09:09:20 +01:00
-- Brass
--------
technic_cnc.register_all("technic:brass_block",
{cracky=1, level=2, not_in_creative_inventory=1},
{"basic_materials_brass_block.png"},
2018-11-26 09:09:20 +01:00
S("Brass"))
-- Copper
---------
technic_cnc.register_all("default:copperblock",
{cracky=1, level=2, not_in_creative_inventory=1},
{"default_copper_block.png"},
S("Copper"))
-- Tin
------
technic_cnc.register_all("default:tinblock",
{cracky=1, level=2, not_in_creative_inventory=1},
{"default_tin_block.png"},
S("Tin"))
-- Gold
-------
technic_cnc.register_all("default:goldblock",
{cracky=1, level=2, not_in_creative_inventory=1},
{"default_gold_block.png"},
S("Gold"))
if minetest.get_modpath("ethereal") then
-- Glostone
------------
technic_cnc.register_all("ethereal:glostone",
{cracky=1, not_in_creative_inventory=1, light_source=13},
{"glostone.png"},
S("Glo Stone"))
-- Crystal block
----------------
technic_cnc.register_all("ethereal:crystal_block",
{snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1},
{"crystal_block.png"},
S("Crystal"))
2020-06-18 11:42:23 +02:00
2018-11-26 09:09:20 +01:00
-- Misc. Wood types
-------------------
technic_cnc.register_all("ethereal:banana_wood",
{snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1},
{"banana_wood.png"},
S("Banana Wood"))
2020-06-18 11:42:23 +02:00
2018-11-26 09:09:20 +01:00
technic_cnc.register_all("ethereal:birch_wood",
{snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1},
{"moretrees_birch_wood.png"},
S("Birch Wood"))
2020-06-18 11:42:23 +02:00
2018-11-26 09:09:20 +01:00
technic_cnc.register_all("ethereal:frost_wood",
{snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1},
{"frost_wood.png"},
S("Frost Wood"))
2020-06-18 11:42:23 +02:00
2018-11-26 09:09:20 +01:00
technic_cnc.register_all("ethereal:palm_wood",
{snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1},
{"moretrees_palm_wood.png"},
S("Palm Wood"))
2020-06-18 11:42:23 +02:00
2018-11-26 09:09:20 +01:00
technic_cnc.register_all("ethereal:willow_wood",
{snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1},
{"willow_wood.png"},
S("Willow Wood"))
2020-06-18 11:42:23 +02:00
2018-11-26 09:09:20 +01:00
technic_cnc.register_all("ethereal:yellow_wood",
{snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1},
{"yellow_wood.png"},
S("Healing Tree Wood"))
2020-06-18 11:42:23 +02:00
2018-11-26 09:09:20 +01:00
technic_cnc.register_all("ethereal:redwood_wood",
{snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1},
{"redwood_wood.png"},
S("Redwood"))
end
if minetest.get_modpath("moreblocks") then
-- Tiles
------------
technic_cnc.register_all("moreblocks:stone_tile",
{stone=1, cracky=3, not_in_creative_inventory=1},
{"moreblocks_stone_tile.png"},
S("Stone Tile"))
2020-06-18 11:42:23 +02:00
2018-11-26 09:09:20 +01:00
technic_cnc.register_all("moreblocks:split_stone_tile",
{stone=1, cracky=3, not_in_creative_inventory=1},
{"moreblocks_split_stone_tile.png"},
S("Split Stone Tile"))
2020-06-18 11:42:23 +02:00
2018-11-26 09:09:20 +01:00
technic_cnc.register_all("moreblocks:checker_stone_tile",
{stone=1, cracky=3, not_in_creative_inventory=1},
{"moreblocks_checker_stone_tile.png"},
S("Checker Stone Tile"))
2020-06-18 11:42:23 +02:00
2018-11-26 09:09:20 +01:00
technic_cnc.register_all("moreblocks:cactus_checker",
{stone=1, cracky=3, not_in_creative_inventory=1},
{"moreblocks_cactus_checker.png"},
S("Cactus Checker"))
2020-06-18 11:42:23 +02:00
2018-11-26 09:09:20 +01:00
-- Bricks
------------
technic_cnc.register_all("moreblocks:cactus_brick",
{cracky=3, not_in_creative_inventory=1},
{"moreblocks_cactus_brick.png"},
S("Cactus Brick"))
2020-06-18 11:42:23 +02:00
2018-11-26 09:09:20 +01:00
technic_cnc.register_all("moreblocks:grey_bricks",
{cracky=3, not_in_creative_inventory=1},
{"moreblocks_grey_bricks.png"},
S("Grey Bricks"))
2020-06-18 11:42:23 +02:00
2018-11-26 09:09:20 +01:00
-- Metals
------------
technic_cnc.register_all("moreblocks:copperpatina",
{cracky=1, level=2, not_in_creative_inventory=1},
{"moreblocks_copperpatina.png"},
S("Copper Patina"))
2020-06-18 11:42:23 +02:00
2018-11-26 09:09:20 +01:00
-- Clay
------------
technic_cnc.register_all("bakedclay:red",
{cracky=3, not_in_creative_inventory=1},
{"baked_clay_red.png"},
S("Red Clay"))
2020-06-18 11:42:23 +02:00
2018-11-26 09:09:20 +01:00
technic_cnc.register_all("bakedclay:orange",
{cracky=3, not_in_creative_inventory=1},
{"baked_clay_orange.png"},
S("Orange Clay"))
2020-06-18 11:42:23 +02:00
2018-11-26 09:09:20 +01:00
technic_cnc.register_all("bakedclay:grey",
{cracky=3, not_in_creative_inventory=1},
{"baked_clay_grey.png"},
S("Grey Clay"))
2020-06-18 11:42:23 +02:00
2018-11-26 09:09:20 +01:00
end