2013-07-17 21:34:35 +02:00
|
|
|
-- REGISTER MATERIALS AND PROPERTIES FOR NONCUBIC ELEMENTS:
|
|
|
|
-----------------------------------------------------------
|
2013-10-30 18:45:32 +01:00
|
|
|
|
2020-02-09 00:59:23 +01:00
|
|
|
local S = minetest.get_translator("technic_cnc")
|
2013-10-30 18:45:32 +01:00
|
|
|
|
2013-07-17 21:34:35 +02:00
|
|
|
-- DIRT
|
|
|
|
-------
|
2018-11-25 14:13:56 +01:00
|
|
|
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},
|
2018-11-25 14:33:04 +01:00
|
|
|
{"default_dirt.png"},
|
2013-10-30 18:45:32 +01:00
|
|
|
S("Dirt"))
|
2018-11-25 14:33:04 +01:00
|
|
|
-- (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
|
|
|
|
-------
|
2018-11-25 14:13:56 +01:00
|
|
|
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"},
|
2013-10-30 18:45:32 +01:00
|
|
|
S("Wooden"))
|
2013-07-17 21:34:35 +02:00
|
|
|
-- STONE
|
|
|
|
--------
|
2018-11-25 14:13:56 +01:00
|
|
|
technic_cnc.register_all("default:stone",
|
2013-07-17 21:34:35 +02:00
|
|
|
{cracky=3, not_in_creative_inventory=1},
|
|
|
|
{"default_stone.png"},
|
2013-10-30 18:45:32 +01:00
|
|
|
S("Stone"))
|
2013-07-17 21:34:35 +02:00
|
|
|
-- COBBLE
|
|
|
|
---------
|
2018-11-25 14:13:56 +01:00
|
|
|
technic_cnc.register_all("default:cobble",
|
2013-07-17 21:34:35 +02:00
|
|
|
{cracky=3, not_in_creative_inventory=1},
|
|
|
|
{"default_cobble.png"},
|
2013-10-30 18:45:32 +01:00
|
|
|
S("Cobble"))
|
2013-07-17 21:34:35 +02:00
|
|
|
-- BRICK
|
|
|
|
--------
|
2018-11-25 14:13:56 +01:00
|
|
|
technic_cnc.register_all("default:brick",
|
2013-07-17 21:34:35 +02:00
|
|
|
{cracky=3, not_in_creative_inventory=1},
|
|
|
|
{"default_brick.png"},
|
2013-10-30 18:45:32 +01:00
|
|
|
S("Brick"))
|
2013-07-17 21:34:35 +02:00
|
|
|
|
|
|
|
-- SANDSTONE
|
|
|
|
------------
|
2018-11-25 14:13:56 +01:00
|
|
|
technic_cnc.register_all("default:sandstone",
|
2014-07-30 21:28:30 +02:00
|
|
|
{crumbly=2, cracky=3, not_in_creative_inventory=1},
|
2013-07-17 21:34:35 +02:00
|
|
|
{"default_sandstone.png"},
|
2013-10-30 18:45:32 +01:00
|
|
|
S("Sandstone"))
|
2013-07-17 21:34:35 +02:00
|
|
|
|
|
|
|
-- LEAVES
|
|
|
|
---------
|
2018-11-25 14:13:56 +01:00
|
|
|
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"},
|
2013-10-30 18:45:32 +01:00
|
|
|
S("Leaves"))
|
2013-07-17 21:34:35 +02:00
|
|
|
-- TREE
|
|
|
|
-------
|
2018-11-25 14:13:56 +01:00
|
|
|
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"},
|
2013-10-30 18:45:32 +01:00
|
|
|
S("Tree"))
|
split default iron/steel into three metals
Override the default mod's iron/steel substance, replacing it with three
metals: wrought iron (pure iron), carbon steel (iron alloyed with a little
carbon), and cast iron (iron alloyed with lots of carbon). Wrought iron
is easiest to refine, then cast iron, and carbon steel the most difficult,
matching the historical progression. Recipes that used default steel are
changed to use one of the three, the choice of alloy for each application
being both somewhat realistic and also matching up with game progression.
The default:steel{_ingot,block} items are identified specifically with
wrought iron. This makes the default refining recipes work appropriately.
Iron-using recipes defined outside technic are thus necessarily
reinterpreted to use wrought iron, which is mostly appropriate.
Some objects are renamed accordingly.
Rather than use the default steel textures for wrought iron, with technic
providing textures for the other two, technic now provides textures for
all three metals. This avoids problems that would occur with texture
packs that provide default_steel_{ingot,block} textures that are not
intended to support this wrought-iron/carbon-steel/cast-iron distinction.
A texture pack can provide a distinct set of three textures specifically
for the situation where this distinction is required.
Incidentally make grinding and alloy cooking recipes work correctly when
ingredients are specified by alias.
2014-05-16 23:02:49 +02:00
|
|
|
|
2014-03-29 09:59:41 +01:00
|
|
|
-- Bronze
|
|
|
|
--------
|
2018-11-25 14:13:56 +01:00
|
|
|
technic_cnc.register_all("default:bronzeblock",
|
2014-03-29 09:59:41 +01:00
|
|
|
{cracky=1, level=2, not_in_creative_inventory=1},
|
|
|
|
{"default_bronze_block.png"},
|
|
|
|
S("Bronze"))
|
|
|
|
|
|
|
|
|
2018-11-25 14:13:56 +01:00
|
|
|
local steeltex = "default_steel_block.png"
|
|
|
|
local steelname = "Steel"
|
2014-03-29 09:59:41 +01:00
|
|
|
|
2018-11-25 14:13:56 +01:00
|
|
|
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"))
|
2014-03-29 09:59:41 +01:00
|
|
|
|
2018-11-25 14:13:56 +01:00
|
|
|
-- 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"))
|
2018-11-25 15:18:37 +01:00
|
|
|
|
|
|
|
-- 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"))
|
2018-11-25 14:13:56 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
-- STEEL
|
|
|
|
---------------
|
|
|
|
technic_cnc.register_all("default:steelblock",
|
|
|
|
{cracky=1, level=2, not_in_creative_inventory=1},
|
|
|
|
{steeltex},
|
|
|
|
S(steelname))
|
2018-11-25 15:18:37 +01:00
|
|
|
|
|
|
|
-- 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"))
|