2014-04-16 19:10:00 +02:00
|
|
|
|
|
|
|
local S = technic.worldgen.gettext
|
|
|
|
|
2013-03-30 11:36:45 +01:00
|
|
|
minetest.register_node( ":technic:mineral_uranium", {
|
2014-04-16 19:10:00 +02:00
|
|
|
description = S("Uranium Ore"),
|
2013-03-30 11:36:45 +01:00
|
|
|
tiles = { "default_stone.png^technic_mineral_uranium.png" },
|
|
|
|
is_ground_content = true,
|
2016-03-21 08:14:08 +01:00
|
|
|
groups = {cracky=3, radioactive=1},
|
2013-03-30 11:36:45 +01:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2015-02-22 12:42:46 +01:00
|
|
|
drop = "technic:uranium_lump",
|
2019-01-26 14:15:40 +01:00
|
|
|
})
|
2013-03-30 11:36:45 +01:00
|
|
|
|
|
|
|
minetest.register_node( ":technic:mineral_chromium", {
|
2014-04-16 19:10:00 +02:00
|
|
|
description = S("Chromium Ore"),
|
2013-03-30 11:36:45 +01:00
|
|
|
tiles = { "default_stone.png^technic_mineral_chromium.png" },
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {cracky=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2015-02-22 12:42:46 +01:00
|
|
|
drop = "technic:chromium_lump",
|
2019-01-26 14:15:40 +01:00
|
|
|
})
|
2013-03-30 11:36:45 +01:00
|
|
|
|
|
|
|
minetest.register_node( ":technic:mineral_zinc", {
|
2014-04-16 19:10:00 +02:00
|
|
|
description = S("Zinc Ore"),
|
2015-10-23 20:15:48 +02:00
|
|
|
tiles = { "default_stone.png^technic_mineral_zinc.png" },
|
2013-03-30 11:36:45 +01:00
|
|
|
is_ground_content = true,
|
|
|
|
groups = {cracky=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2015-02-22 12:42:46 +01:00
|
|
|
drop = "technic:zinc_lump",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node( ":technic:mineral_lead", {
|
|
|
|
description = S("Lead Ore"),
|
2015-10-23 20:15:48 +02:00
|
|
|
tiles = { "default_stone.png^technic_mineral_lead.png" },
|
2015-02-22 12:42:46 +01:00
|
|
|
is_ground_content = true,
|
|
|
|
groups = {cracky=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
drop = "technic:lead_lump",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node( ":technic:mineral_sulfur", {
|
|
|
|
description = S("Sulfur Ore"),
|
2015-10-23 20:15:48 +02:00
|
|
|
tiles = { "default_stone.png^technic_mineral_sulfur.png" },
|
2015-02-22 12:42:46 +01:00
|
|
|
is_ground_content = true,
|
|
|
|
groups = {cracky=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
drop = "technic:sulfur_lump",
|
2013-03-30 11:36:45 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node( ":technic:granite", {
|
2014-04-16 19:10:00 +02:00
|
|
|
description = S("Granite"),
|
2013-03-30 11:36:45 +01:00
|
|
|
tiles = { "technic_granite.png" },
|
|
|
|
is_ground_content = true,
|
2014-07-30 21:25:35 +02:00
|
|
|
groups = {cracky=1},
|
2013-03-30 11:36:45 +01:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2019-01-26 14:15:40 +01:00
|
|
|
})
|
2013-03-30 11:36:45 +01:00
|
|
|
|
|
|
|
minetest.register_node( ":technic:marble", {
|
2014-04-16 19:10:00 +02:00
|
|
|
description = S("Marble"),
|
2013-03-30 11:36:45 +01:00
|
|
|
tiles = { "technic_marble.png" },
|
|
|
|
is_ground_content = true,
|
2015-04-18 23:11:52 +02:00
|
|
|
groups = {cracky=3, marble=1},
|
2013-03-30 11:36:45 +01:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2019-01-26 14:15:40 +01:00
|
|
|
})
|
2013-03-30 11:36:45 +01:00
|
|
|
|
|
|
|
minetest.register_node( ":technic:marble_bricks", {
|
2014-04-16 19:10:00 +02:00
|
|
|
description = S("Marble Bricks"),
|
2013-03-30 11:36:45 +01:00
|
|
|
tiles = { "technic_marble_bricks.png" },
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {cracky=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2019-01-26 14:15:40 +01:00
|
|
|
})
|
2013-03-30 11:36:45 +01:00
|
|
|
|
2013-06-27 04:13:44 +02:00
|
|
|
minetest.register_node(":technic:uranium_block", {
|
2014-04-16 19:10:00 +02:00
|
|
|
description = S("Uranium Block"),
|
2013-06-27 04:13:44 +02:00
|
|
|
tiles = { "technic_uranium_block.png" },
|
|
|
|
is_ground_content = true,
|
2016-03-21 08:14:08 +01:00
|
|
|
groups = {uranium_block=1, cracky=1, level=2, radioactive=2},
|
2013-06-27 04:13:44 +02:00
|
|
|
sounds = default.node_sound_stone_defaults()
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":technic:chromium_block", {
|
2014-04-16 19:10:00 +02:00
|
|
|
description = S("Chromium Block"),
|
2013-06-27 04:13:44 +02:00
|
|
|
tiles = { "technic_chromium_block.png" },
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {cracky=1, level=2},
|
|
|
|
sounds = default.node_sound_stone_defaults()
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":technic:zinc_block", {
|
2014-04-16 19:10:00 +02:00
|
|
|
description = S("Zinc Block"),
|
2013-06-27 04:13:44 +02:00
|
|
|
tiles = { "technic_zinc_block.png" },
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {cracky=1, level=2},
|
|
|
|
sounds = default.node_sound_stone_defaults()
|
|
|
|
})
|
|
|
|
|
2015-02-22 12:42:46 +01:00
|
|
|
minetest.register_node(":technic:lead_block", {
|
|
|
|
description = S("Lead Block"),
|
|
|
|
tiles = { "technic_lead_block.png" },
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {cracky=1, level=2},
|
|
|
|
sounds = default.node_sound_stone_defaults()
|
|
|
|
})
|
|
|
|
|
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
|
|
|
minetest.register_alias("technic:wrought_iron_block", "default:steelblock")
|
|
|
|
|
|
|
|
minetest.override_item("default:steelblock", {
|
|
|
|
description = S("Wrought Iron Block"),
|
|
|
|
tiles = { "technic_wrought_iron_block.png" },
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":technic:cast_iron_block", {
|
|
|
|
description = S("Cast Iron Block"),
|
|
|
|
tiles = { "technic_cast_iron_block.png" },
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {cracky=1, level=2},
|
|
|
|
sounds = default.node_sound_stone_defaults()
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":technic:carbon_steel_block", {
|
|
|
|
description = S("Carbon Steel Block"),
|
|
|
|
tiles = { "technic_carbon_steel_block.png" },
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {cracky=1, level=2},
|
|
|
|
sounds = default.node_sound_stone_defaults()
|
|
|
|
})
|
|
|
|
|
2013-06-27 04:13:44 +02:00
|
|
|
minetest.register_node(":technic:stainless_steel_block", {
|
2014-04-16 19:10:00 +02:00
|
|
|
description = S("Stainless Steel Block"),
|
2013-06-27 04:13:44 +02:00
|
|
|
tiles = { "technic_stainless_steel_block.png" },
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {cracky=1, level=2},
|
|
|
|
sounds = default.node_sound_stone_defaults()
|
|
|
|
})
|
|
|
|
|
2020-04-12 11:14:14 +02:00
|
|
|
minetest.register_node(":technic:sulfur_block", {
|
|
|
|
description = S("Sulfur Block"),
|
|
|
|
tiles = { "technic_sulfur_block.png" },
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {cracky = 3},
|
|
|
|
sounds = default.node_sound_stone_defaults()
|
|
|
|
})
|
|
|
|
|
2013-03-30 11:36:45 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
output = 'technic:marble_bricks 4',
|
|
|
|
recipe = {
|
|
|
|
{'technic:marble','technic:marble'},
|
|
|
|
{'technic:marble','technic:marble'}
|
|
|
|
}
|
|
|
|
})
|
2013-04-15 04:24:55 +02:00
|
|
|
|
|
|
|
minetest.register_alias("technic:diamond_block", "default:diamondblock")
|
2014-04-21 21:24:01 +02:00
|
|
|
minetest.register_alias("technic:diamond", "default:diamond")
|
|
|
|
minetest.register_alias("technic:mineral_diamond", "default:stone_with_diamond")
|
2014-04-16 19:10:00 +02:00
|
|
|
|
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
|
|
|
local function for_each_registered_node(action)
|
|
|
|
local really_register_node = minetest.register_node
|
|
|
|
minetest.register_node = function(name, def)
|
|
|
|
really_register_node(name, def)
|
2014-11-13 18:57:26 +01:00
|
|
|
action(name:gsub("^:", ""), def)
|
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
|
|
|
end
|
2014-11-13 18:57:26 +01:00
|
|
|
for name, def in pairs(minetest.registered_nodes) do
|
|
|
|
action(name, def)
|
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
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2014-11-13 18:57:26 +01:00
|
|
|
for_each_registered_node(function(node_name, node_def)
|
|
|
|
if node_name ~= "default:steelblock" and
|
|
|
|
node_name:find("steelblock", 1, true) and
|
|
|
|
node_def.description:find("Steel", 1, true) then
|
|
|
|
minetest.override_item(node_name, {
|
|
|
|
description = node_def.description:gsub("Steel", S("Wrought Iron")),
|
|
|
|
})
|
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
|
|
|
end
|
2014-11-13 18:57:26 +01:00
|
|
|
local tiles = node_def.tiles or node_def.tile_images
|
|
|
|
if tiles then
|
|
|
|
local new_tiles = {}
|
|
|
|
local do_override = false
|
|
|
|
if type(tiles) == "string" then
|
|
|
|
tiles = {tiles}
|
|
|
|
end
|
|
|
|
for i, t in ipairs(tiles) do
|
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
|
|
|
if type(t) == "string" and t == "default_steel_block.png" then
|
2014-11-13 18:57:26 +01:00
|
|
|
do_override = true
|
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
|
|
|
t = "technic_wrought_iron_block.png"
|
|
|
|
end
|
2014-11-13 18:57:26 +01:00
|
|
|
table.insert(new_tiles, t)
|
|
|
|
end
|
|
|
|
if do_override then
|
|
|
|
minetest.override_item(node_name, {
|
|
|
|
tiles = new_tiles
|
|
|
|
})
|
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
|
|
|
end
|
|
|
|
end
|
|
|
|
end)
|
2014-11-13 18:57:26 +01:00
|
|
|
|