Added Mineclone2 support apart from special machines own recipes within the machines

This commit is contained in:
James David Clarke 2023-12-20 08:20:56 +00:00
parent b221d69717
commit cfe2ee2133
No known key found for this signature in database
GPG Key ID: 9F5ECFD0E20F1C4C
68 changed files with 902 additions and 495 deletions

View File

@ -4,6 +4,21 @@
local technic = rawget(_G, "technic") or {} local technic = rawget(_G, "technic") or {}
technic.concrete_posts = {} technic.concrete_posts = {}
-- Mineclone2 Support
local stone_ingrediant = nil
if minetest.get_modpath("mcl_core") then
stone_ingrediant = "mcl_core:stone"
else
stone_ingrediant = "default:stone"
end
local stone_sounds = nil
if minetest.get_modpath("mcl_sounds") then
stone_sounds = mcl_sounds.node_sound_stone_defaults()
else
stone_sounds = default.node_sound_stone_defaults()
end
-- Boilerplate to support localized strings if intllib mod is installed. -- Boilerplate to support localized strings if intllib mod is installed.
local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end
@ -26,9 +41,9 @@ minetest.register_craft({
minetest.register_craft({ minetest.register_craft({
output = 'technic:concrete_post 12', output = 'technic:concrete_post 12',
recipe = { recipe = {
{'default:stone','basic_materials:steel_bar','default:stone'}, {stone_ingrediant,'basic_materials:steel_bar',stone_ingrediant},
{'default:stone','basic_materials:steel_bar','default:stone'}, {stone_ingrediant,'basic_materials:steel_bar',stone_ingrediant},
{'default:stone','basic_materials:steel_bar','default:stone'}, {stone_ingrediant,'basic_materials:steel_bar',stone_ingrediant},
} }
}) })
@ -45,7 +60,7 @@ minetest.register_node(":technic:blast_resistant_concrete", {
description = S("Blast-resistant Concrete Block"), description = S("Blast-resistant Concrete Block"),
tiles = {"technic_blast_resistant_concrete_block.png",}, tiles = {"technic_blast_resistant_concrete_block.png",},
groups = {cracky=1, level=3, concrete=1}, groups = {cracky=1, level=3, concrete=1},
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
on_blast = function(pos, intensity) on_blast = function(pos, intensity)
if intensity > 9 then if intensity > 9 then
minetest.remove_node(pos) minetest.remove_node(pos)
@ -80,7 +95,7 @@ minetest.register_node(":technic:concrete_post_platform", {
description = S("Concrete Post Platform"), description = S("Concrete Post Platform"),
tiles = {"basic_materials_concrete_block.png",}, tiles = {"basic_materials_concrete_block.png",},
groups={cracky=1, level=2}, groups={cracky=1, level=2},
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
paramtype = "light", paramtype = "light",
drawtype = "nodebox", drawtype = "nodebox",
node_box = { node_box = {
@ -112,7 +127,7 @@ for platform = 0, 1 do
description = S("Concrete Post"), description = S("Concrete Post"),
tiles = {"basic_materials_concrete_block.png"}, tiles = {"basic_materials_concrete_block.png"},
groups = {cracky=1, level=2, concrete_post=1, not_in_creative_inventory=platform}, groups = {cracky=1, level=2, concrete_post=1, not_in_creative_inventory=platform},
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
drop = (platform == 1 and "technic:concrete_post_platform" or drop = (platform == 1 and "technic:concrete_post_platform" or
"technic:concrete_post"), "technic:concrete_post"),
paramtype = "light", paramtype = "light",

View File

@ -1,3 +1,3 @@
name = concrete name = concrete
depends = default optional_depends = basic_materials, intllib, moreblocks, default
optional_depends = basic_materials, intllib, moreblocks supported_games = minetest_game,mineclone2

View File

@ -1,8 +1,25 @@
-- Minetest 0.4.6 mod: extranodes -- Minetest 0.4.6 mod: extranodes
-- namespace: technic -- namespace: technic
-- Boilerplate to support localized strings if intllib mod is installed. -- Boilerplate to support localized strings if intllib mod is installed.
local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end
-- MineClone2 support
local stone_sounds = nil
if minetest.get_modpath("mcl_sounds") then
stone_sounds = mcl_sounds.node_sound_stone_defaults()
else
stone_sounds = default.node_sound_stone_defaults()
end
wood_fence_ingrediant = nil
if minetest.get_modpath("mcl_core") then
wood_fence_ingrediant = "group:fence_wood"
else
wood_fence_ingrediant = "default:fence_wood"
end
if minetest.get_modpath("moreblocks") then if minetest.get_modpath("moreblocks") then
-- register stairsplus/circular_saw nodes -- register stairsplus/circular_saw nodes
@ -20,7 +37,7 @@ if minetest.get_modpath("moreblocks") then
groups={cracky=3, not_in_creative_inventory=1}, groups={cracky=3, not_in_creative_inventory=1},
tiles={"technic_marble_bricks.png"}, tiles={"technic_marble_bricks.png"},
}) })
if not minetest.get_modpath("mcl_core") then
stairsplus:register_all("technic", "granite", "technic:granite", { stairsplus:register_all("technic", "granite", "technic:granite", {
description=S("Granite"), description=S("Granite"),
groups={cracky=1, not_in_creative_inventory=1}, groups={cracky=1, not_in_creative_inventory=1},
@ -32,7 +49,7 @@ if minetest.get_modpath("moreblocks") then
groups={cracky=1, not_in_creative_inventory=1}, groups={cracky=1, not_in_creative_inventory=1},
tiles={"technic_granite_bricks.png"}, tiles={"technic_granite_bricks.png"},
}) })
end
stairsplus:register_all("technic", "concrete", "technic:concrete", { stairsplus:register_all("technic", "concrete", "technic:concrete", {
description=S("Concrete"), description=S("Concrete"),
groups={cracky=3, not_in_creative_inventory=1}, groups={cracky=3, not_in_creative_inventory=1},
@ -108,7 +125,9 @@ if minetest.get_modpath("moreblocks") then
register_technic_stairs_alias("stairsplus", "concrete", "technic", "concrete") register_technic_stairs_alias("stairsplus", "concrete", "technic", "concrete")
register_technic_stairs_alias("stairsplus", "marble", "technic", "marble") register_technic_stairs_alias("stairsplus", "marble", "technic", "marble")
if not minetest.get_modpath("mcl_core") then
register_technic_stairs_alias("stairsplus", "granite", "technic", "granite") register_technic_stairs_alias("stairsplus", "granite", "technic", "granite")
end
register_technic_stairs_alias("stairsplus", "marble_bricks", "technic", "marble_bricks") register_technic_stairs_alias("stairsplus", "marble_bricks", "technic", "marble_bricks")
end end
@ -120,7 +139,7 @@ local iclip_def = {
tiles = {"technic_insulator_clip.png"}, tiles = {"technic_insulator_clip.png"},
is_ground_content = false, is_ground_content = false,
groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1 }, groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1 },
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
} }
local iclipfence_def = { local iclipfence_def = {
@ -154,7 +173,7 @@ local iclipfence_def = {
}, },
connects_to = {"group:fence", "group:wood", "group:tree"}, connects_to = {"group:fence", "group:wood", "group:tree"},
groups = {fence=1, choppy=1, snappy=1, oddly_breakable_by_hand=1 }, groups = {fence=1, choppy=1, snappy=1, oddly_breakable_by_hand=1 },
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
} }
local sclip_tex = { local sclip_tex = {
@ -182,7 +201,7 @@ local sclip_def = {
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
is_ground_content = false, is_ground_content = false,
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
groups = { choppy=1, cracky=1 }, groups = { choppy=1, cracky=1 },
backface_culling = false backface_culling = false
} }
@ -214,21 +233,36 @@ end
minetest.register_node(":technic:insulator_clip", iclip_def) minetest.register_node(":technic:insulator_clip", iclip_def)
minetest.register_node(":technic:insulator_clip_fencepost", iclipfence_def) minetest.register_node(":technic:insulator_clip_fencepost", iclipfence_def)
-- MineClone2 support
local stone_ingrediant = nil
local white_dye_ingrediant = nil
local fence_ingrediant = nil
if minetest.get_modpath("mcl_core") then
stone_ingrediant = "mcl_core:stone"
white_dye_ingrediant = "mcl_dye:white"
fence_ingrediant = "group:fence"
else
stone_ingrediant = "default:stone"
white_dye_ingrediant = "dye:white"
fence_ingrediant = "default:fence_wood"
end
minetest.register_craft({ minetest.register_craft({
output = "technic:insulator_clip", output = "technic:insulator_clip",
recipe = { recipe = {
{ "", "dye:white", ""}, { "", white_dye_ingrediant, ""},
{ "", "technic:raw_latex", ""}, { "", "technic:raw_latex", ""},
{ "technic:raw_latex", "default:stone", "technic:raw_latex"}, { "technic:raw_latex", stone_ingrediant, "technic:raw_latex"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = "technic:insulator_clip_fencepost 2", output = "technic:insulator_clip_fencepost 2",
recipe = { recipe = {
{ "", "dye:white", ""}, { "", white_dye_ingrediant, ""},
{ "", "technic:raw_latex", ""}, { "", "technic:raw_latex", ""},
{ "technic:raw_latex", "default:fence_wood", "technic:raw_latex"}, { "technic:raw_latex", wood_fence_ingrediant, "technic:raw_latex"},
} }
}) })

View File

@ -1,3 +1,4 @@
name = extranodes name = extranodes
depends = default, technic_worldgen, basic_materials, concrete depends = technic_worldgen, basic_materials, concrete
optional_depends = unifieddyes, intllib, moreblocks, steel, streetsmod optional_depends = unifieddyes, intllib, moreblocks, steel, streetsmod, default, mcl_core, mcl_sounds
supported_games = minetest_game,mineclone2

View File

@ -38,9 +38,9 @@ if pipeworks.enable_teleport_tube then
minetest.register_craft({ minetest.register_craft({
output = 'pipeworks:teleport_tube_1', output = 'pipeworks:teleport_tube_1',
recipe = { recipe = {
{'default:mese_crystal', 'technic:copper_coil', 'default:mese_crystal'}, {mese_crystal_ingrediant, 'technic:copper_coil', mese_crystal_ingrediant},
{'pipeworks:tube_1', 'technic:control_logic_unit', 'pipeworks:tube_1'}, {'pipeworks:tube_1', 'technic:control_logic_unit', 'pipeworks:tube_1'},
{'default:mese_crystal', 'technic:copper_coil', 'default:mese_crystal'}, {mese_crystal_ingrediant, 'technic:copper_coil', mese_crystal_ingrediant},
} }
}) })
end end
@ -62,36 +62,36 @@ minetest.register_craft( {
minetest.register_craft({ minetest.register_craft({
output = 'technic:diamond_drill_head', output = 'technic:diamond_drill_head',
recipe = { recipe = {
{'technic:stainless_steel_ingot', 'default:diamond', 'technic:stainless_steel_ingot'}, {'technic:stainless_steel_ingot', diamond_ingrediant, 'technic:stainless_steel_ingot'},
{'default:diamond', '', 'default:diamond'}, {diamond_ingrediant, '', diamond_ingrediant},
{'technic:stainless_steel_ingot', 'default:diamond', 'technic:stainless_steel_ingot'}, {'technic:stainless_steel_ingot', diamond_ingrediant, 'technic:stainless_steel_ingot'},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'technic:green_energy_crystal', output = 'technic:green_energy_crystal',
recipe = { recipe = {
{'default:gold_ingot', 'technic:battery', 'dye:green'}, {gold_ingot_ingrediant, 'technic:battery', green_dye_ingrediant},
{'technic:battery', 'technic:red_energy_crystal', 'technic:battery'}, {'technic:battery', 'technic:red_energy_crystal', 'technic:battery'},
{'dye:green', 'technic:battery', 'default:gold_ingot'}, {green_dye_ingrediant, 'technic:battery', gold_ingot_ingrediant},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'technic:blue_energy_crystal', output = 'technic:blue_energy_crystal',
recipe = { recipe = {
{'moreores:mithril_ingot', 'technic:battery', 'dye:blue'}, {'moreores:mithril_ingot', 'technic:battery', blue_dye_ingrediant},
{'technic:battery', 'technic:green_energy_crystal', 'technic:battery'}, {'technic:battery', 'technic:green_energy_crystal', 'technic:battery'},
{'dye:blue', 'technic:battery', 'moreores:mithril_ingot'}, {blue_dye_ingrediant, 'technic:battery', 'moreores:mithril_ingot'},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'technic:red_energy_crystal', output = 'technic:red_energy_crystal',
recipe = { recipe = {
{'moreores:silver_ingot', 'technic:battery', 'dye:red'}, {'moreores:silver_ingot', 'technic:battery', red_dye_ingrediant},
{'technic:battery', 'basic_materials:energy_crystal_simple', 'technic:battery'}, {'technic:battery', 'basic_materials:energy_crystal_simple', 'technic:battery'},
{'dye:red', 'technic:battery', 'moreores:silver_ingot'}, {red_dye_ingrediant, 'technic:battery', 'moreores:silver_ingot'},
} }
}) })
@ -143,7 +143,7 @@ minetest.register_craft({
output = 'technic:control_logic_unit', output = 'technic:control_logic_unit',
recipe = { recipe = {
{'', 'basic_materials:gold_wire', ''}, {'', 'basic_materials:gold_wire', ''},
{'default:copper_ingot', 'technic:silicon_wafer', 'default:copper_ingot'}, {copper_ingrediant, 'technic:silicon_wafer', copper_ingrediant},
{'', 'technic:chromium_ingot', ''}, {'', 'technic:chromium_ingot', ''},
}, },
replacements = { {"basic_materials:gold_wire", "basic_materials:empty_spool"}, }, replacements = { {"basic_materials:gold_wire", "basic_materials:empty_spool"}, },
@ -153,8 +153,8 @@ minetest.register_craft({
output = 'technic:mixed_metal_ingot 9', output = 'technic:mixed_metal_ingot 9',
recipe = { recipe = {
{'technic:stainless_steel_ingot', 'technic:stainless_steel_ingot', 'technic:stainless_steel_ingot'}, {'technic:stainless_steel_ingot', 'technic:stainless_steel_ingot', 'technic:stainless_steel_ingot'},
{'default:bronze_ingot', 'default:bronze_ingot', 'default:bronze_ingot'}, {bronze_ingrediant, bronze_ingrediant, bronze_ingrediant},
{'default:tin_ingot', 'default:tin_ingot', 'default:tin_ingot'}, {tin_ingrediant, tin_ingrediant, tin_ingrediant},
} }
}) })
@ -175,7 +175,7 @@ minetest.register_craft({
}) })
minetest.register_craft({ minetest.register_craft({
output = "default:dirt 2", output = dirt_ingrediant.." 2",
type = "shapeless", type = "shapeless",
replacements = {{"bucket:bucket_water","bucket:bucket_empty"}}, replacements = {{"bucket:bucket_water","bucket:bucket_empty"}},
recipe = { recipe = {
@ -191,14 +191,14 @@ minetest.register_craft({
type = "shapeless", type = "shapeless",
recipe = { recipe = {
"technic:raw_latex", "technic:raw_latex",
"default:coal_lump", coal_ingrediant,
"default:coal_lump", coal_ingrediant,
"default:coal_lump", coal_ingrediant,
"default:coal_lump", coal_ingrediant,
"default:coal_lump", coal_ingrediant,
"default:coal_lump", coal_ingrediant,
"default:coal_lump", coal_ingrediant,
"default:coal_lump", coal_ingrediant,
}, },
}) })

View File

@ -1,11 +1,280 @@
-- namespace: technic -- namespace: technic
-- (c) 2012-2013 by RealBadAngel <mk@realbadangel.pl> -- (c) 2012-2013 by RealBadAngel <mk@realbadangel.pl>
-- Mineclone2 Support
stone_sounds = nil
if minetest.get_modpath("mcl_sounds") then
stone_sounds = mcl_sounds.node_sound_stone_defaults()
else
stone_sounds = default.node_sound_stone_defaults()
end
mt_light_max = nil
if minetest.get_modpath("mcl_core") then
mt_light_max = mcl_core.LIGHT_MAX
else
mt_light_max = default.LIGHT_MAX
end
copper_ingrediant = nil
if minetest.get_modpath("mcl_core") then
copper_ingrediant = "mcl_copper:copper_ingot"
else
copper_ingrediant = 'default:copper_ingot'
end
iron_ingrediant = nil
if minetest.get_modpath("mcl_core") then
iron_ingrediant = "mcl_core:iron_ingot"
else
iron_ingrediant = 'default:steel_ingot'
end
mese_crystal_ingrediant = nil
if minetest.get_modpath("mcl_core") then
mese_crystal_ingrediant = "mesecons:wire_00000000_off"
else
mese_crystal_ingrediant = 'default:mese_crystal'
end
diamond_ingrediant = nil
if minetest.get_modpath("mcl_core") then
diamond_ingrediant = "mcl_core:diamond"
else
diamond_ingrediant = 'default:diamond'
end
glass_ingrediant = nil
if minetest.get_modpath("mcl_core") then
glass_ingrediant = "mcl_core:glass"
else
glass_ingrediant = 'default:glass'
end
brick_block_ingrediant = nil
if minetest.get_modpath("mcl_core") then
brick_block_ingrediant = "mcl_core:brick_block"
else
brick_block_ingrediant = 'default:brick'
end
mese_block_ingrediant = nil
if minetest.get_modpath("mcl_core") then
mese_block_ingrediant = "mesecons_torch:redstoneblock"
else
mese_block_ingrediant = "default:mese"
end
paper_ingrediant = nil
if minetest.get_modpath("mcl_core") then
paper_ingrediant = "mcl_core:paper"
else
paper_ingrediant = 'default:paper'
end
obsidian_glass_ingrediant = nil
if minetest.get_modpath("mcl_core") then
obsidian_glass_ingrediant = "mcl_core:obsidian"
else
obsidian_glass_ingrediant = 'default:obsidian_glass'
end
obsidian_ingrediant = nil
if minetest.get_modpath("mcl_core") then
obsidian_ingrediant = "mcl_core:obsidian"
else
obsidian_ingrediant = 'default:obsidian'
end
green_dye_ingrediant = nil
if minetest.get_modpath("mcl_core") then
green_dye_ingrediant = "mcl_dye:green"
else
green_dye_ingrediant = 'dye:green'
end
blue_dye_ingrediant = nil
if minetest.get_modpath("mcl_core") then
blue_dye_ingrediant = "mcl_dye:blue"
else
blue_dye_ingrediant = 'dye:blue'
end
red_dye_ingrediant = nil
if minetest.get_modpath("mcl_core") then
red_dye_ingrediant = "mcl_dye:red"
else
red_dye_ingrediant = 'dye:red'
end
white_dye_ingrediant = nil
if minetest.get_modpath("mcl_core") then
white_dye_ingrediant = "mcl_dye:white"
else
white_dye_ingrediant = 'dye:white'
end
gold_ingot_ingrediant = nil
if minetest.get_modpath("mcl_core") then
gold_ingot_ingrediant = "mcl_core:gold_ingot"
else
gold_ingot_ingrediant = 'default:gold_ingot'
end
chest_ingrediant = nil
if minetest.get_modpath("mcl_core") then
chest_ingrediant = "mcl_chests:chest"
else
chest_ingrediant = "default:chest"
end
stone_ingrediant = nil
if minetest.get_modpath("mcl_core") then
stone_ingrediant = "mcl_core:stone"
else
stone_ingrediant = "default:stone"
end
wood_fence_ingrediant = nil
if minetest.get_modpath("mcl_core") then
wood_fence_ingrediant = "group:fence_wood"
else
wood_fence_ingrediant = "default:fence_wood"
end
diamond_ingrediant = nil
if minetest.get_modpath("mcl_core") then
diamond_ingrediant = "mcl_core:diamond"
else
diamond_ingrediant = "default:diamond"
end
bronze_ingrediant = nil
if minetest.get_modpath("mcl_core") then
bronze_ingrediant = "mcl_copper:copper_ingot"
else
bronze_ingrediant = 'default:bronze_ingot'
end
tin_ingrediant = nil
if minetest.get_modpath("mcl_core") then
tin_ingrediant = "moreores:tin_ingot"
else
tin_ingrediant = 'default:tin_ingot'
end
sandstone_ingrediant = nil
if minetest.get_modpath("mcl_core") then
sandstone_ingrediant = "mcl_core:sandstone"
else
sandstone_ingrediant = 'default:desert_stone'
end
sand_ingrediant = nil
if minetest.get_modpath("mcl_core") then
sand_ingrediant = "mcl_core:sand"
else
sand_ingrediant = 'default:sand'
end
desert_stone_ingrediant = nil
if minetest.get_modpath("mcl_core") then
desert_stone_ingrediant = "mcl_core:redsandstone"
else
desert_stone_ingrediant = 'default:desert_stone'
end
desert_sand_ingrediant = nil
if minetest.get_modpath("mcl_core") then
desert_sand_ingrediant = "mcl_core:redsand"
else
desert_sand_ingrediant = 'default:desert_sand'
end
furnace_ingrediant = nil
if minetest.get_modpath("mcl_core") then
furnace_ingrediant = "mcl_furnaces:furnace"
else
furnace_ingrediant = 'default:furnace'
end
mossy_cobble_ingrediant = nil
if minetest.get_modpath("mcl_core") then
mossy_cobble_ingrediant = "mcl_core:mossycobble"
else
mossy_cobble_ingrediant = 'default:mossycobble'
end
snow_block_ingrediant = nil
if minetest.get_modpath("mcl_core") then
snow_block_ingrediant = "mcl_core:snowblock"
else
snow_block_ingrediant = 'default:snowblock'
end
ice_block_ingrediant = nil
if minetest.get_modpath("mcl_core") then
ice_block_ingrediant = "mcl_core:ice"
else
ice_block_ingrediant = 'default:ice'
end
granite_ingrediant = nil
if minetest.get_modpath("mcl_core") then
granite_ingrediant = "mcl_core:granite"
else
granite_ingrediant = 'technic:granite'
end
granite_bricks_ingrediant = nil
if minetest.get_modpath("mcl_core") then
granite_bricks_ingrediant = "mcl_core:granite_smooth"
else
granite_bricks_ingrediant = 'technic:granite_bricks'
end
coal_ingrediant = nil
if minetest.get_modpath("mcl_core") then
coal_ingrediant = "group:coal"
else
coal_ingrediant = "default:coal_lump"
end
dirt_ingrediant = nil
if minetest.get_modpath("mcl_core") then
dirt_ingrediant = "mcl_core:dirt"
else
dirt_ingrediant = "default:dirt"
end
mesecons_fiber_ingrediant = nil
if minetest.get_modpath("mcl_core") then
mesecons_fiber_ingrediant = "mesecons:wire_00000000_off"
else
mesecons_fiber_ingrediant = "mesecons_materials:fiber"
end
stick_ingrediant = nil
if minetest.get_modpath("mcl_core") then
stick_ingrediant = "mcl_core:stick"
else
stick_ingrediant = "default:stick"
end
if not minetest.get_translator then if not minetest.get_translator then
error("[technic] Your Minetest version is no longer supported." error("[technic] Your Minetest version is no longer supported."
.. " (version < 5.0.0)") .. " (version < 5.0.0)")
end end
local load_start = os.clock() local load_start = os.clock()
technic = rawget(_G, "technic") or {} technic = rawget(_G, "technic") or {}

View File

@ -131,7 +131,7 @@ minetest.register_node("technic:machine_casing", {
paramtype = "light", paramtype = "light",
drawtype = "allfaces", drawtype = "allfaces",
tiles = {"technic_machine_casing.png"}, tiles = {"technic_machine_casing.png"},
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
}) })
minetest.register_craftitem("technic:rubber_goo", { minetest.register_craftitem("technic:rubber_goo", {
@ -188,7 +188,7 @@ for p = 0, 35 do
is_ground_content = true, is_ground_content = true,
groups = {uranium_block=1, not_in_creative_inventory=nici, groups = {uranium_block=1, not_in_creative_inventory=nici,
cracky=1, level=2, radioactive=radioactivity}, cracky=1, level=2, radioactive=radioactivity},
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
}); });
if not ov then if not ov then
minetest.register_craft({ minetest.register_craft({

View File

@ -17,9 +17,9 @@ local cable_entry = "^technic_cable_connection_overlay.png"
minetest.register_craft({ minetest.register_craft({
output = "technic:forcefield_emitter_off", output = "technic:forcefield_emitter_off",
recipe = { recipe = {
{"default:mese", "basic_materials:motor", "default:mese" }, {mese_block_ingrediant, "basic_materials:motor", mese_block_ingrediant },
{"technic:deployer_off", "technic:machine_casing", "technic:deployer_off"}, {"technic:deployer_off", "technic:machine_casing", "technic:deployer_off"},
{"default:mese", "technic:hv_cable", "default:mese" }, {mese_block_ingrediant, "technic:hv_cable", mese_block_ingrediant },
} }
}) })
@ -354,7 +354,7 @@ minetest.register_node("technic:forcefield", {
drawtype = "glasslike", drawtype = "glasslike",
groups = {not_in_creative_inventory=1}, groups = {not_in_creative_inventory=1},
paramtype = "light", paramtype = "light",
light_source = default.LIGHT_MAX, light_source = mt_light_max,
diggable = false, diggable = false,
drop = '', drop = '',
tiles = {{ tiles = {{

View File

@ -24,7 +24,7 @@ local cable_entry = "^technic_cable_connection_overlay.png"
minetest.register_craft({ minetest.register_craft({
output = 'technic:hv_nuclear_reactor_core', output = 'technic:hv_nuclear_reactor_core',
recipe = { recipe = {
{'technic:carbon_plate', 'default:obsidian_glass', 'technic:carbon_plate'}, {'technic:carbon_plate', obsidian_glass_ingrediant, 'technic:carbon_plate'},
{'technic:composite_plate', 'technic:machine_casing', 'technic:composite_plate'}, {'technic:composite_plate', 'technic:machine_casing', 'technic:composite_plate'},
{'technic:stainless_steel_ingot', 'technic:hv_cable', 'technic:stainless_steel_ingot'}, {'technic:stainless_steel_ingot', 'technic:hv_cable', 'technic:stainless_steel_ingot'},
} }
@ -414,7 +414,7 @@ minetest.register_node("technic:hv_nuclear_reactor_core", {
mesh = "technic_reactor.obj", mesh = "technic_reactor.obj",
groups = {cracky = 1, technic_machine = 1, technic_hv = 1, digiline_remote_receive = 1}, groups = {cracky = 1, technic_machine = 1, technic_hv = 1, digiline_remote_receive = 1},
legacy_facedir_simple = true, legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
stack_max = 1, stack_max = 1,
@ -449,7 +449,7 @@ minetest.register_node("technic:hv_nuclear_reactor_core_active", {
groups = {cracky = 1, technic_machine = 1, technic_hv = 1, radioactive = 4, groups = {cracky = 1, technic_machine = 1, technic_hv = 1, radioactive = 4,
not_in_creative_inventory = 1, digiline_remote_receive = 1}, not_in_creative_inventory = 1, digiline_remote_receive = 1},
legacy_facedir_simple = true, legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
drop = "technic:hv_nuclear_reactor_core", drop = "technic:hv_nuclear_reactor_core",
light_source = 14, light_source = 14,
paramtype = "light", paramtype = "light",

View File

@ -229,6 +229,13 @@ local function send_move_error(player)
return 0 return 0
end end
local quarry_pick = nill
if minetest.get_modpath("mcl_core") then
quarry_pick = "default_tool_diamondpick.png"
else
quarry_pick = "default_tool_mesepick.png"
end
minetest.register_node("technic:quarry", { minetest.register_node("technic:quarry", {
description = S("%s Quarry"):format("HV"), description = S("%s Quarry"):format("HV"),
tiles = { tiles = {
@ -236,7 +243,7 @@ minetest.register_node("technic:quarry", {
"technic_carbon_steel_block.png"..cable_entry, "technic_carbon_steel_block.png"..cable_entry,
"technic_carbon_steel_block.png"..cable_entry, "technic_carbon_steel_block.png"..cable_entry,
"technic_carbon_steel_block.png"..cable_entry, "technic_carbon_steel_block.png"..cable_entry,
"technic_carbon_steel_block.png^default_tool_mesepick.png", "technic_carbon_steel_block.png^"..quarry_pick,
"technic_carbon_steel_block.png"..cable_entry "technic_carbon_steel_block.png"..cable_entry
}, },
paramtype2 = "facedir", paramtype2 = "facedir",

View File

@ -4,9 +4,9 @@
minetest.register_craft({ minetest.register_craft({
output = 'technic:lv_alloy_furnace', output = 'technic:lv_alloy_furnace',
recipe = { recipe = {
{'default:brick', 'default:brick', 'default:brick'}, {brick_block_ingrediant, brick_block_ingrediant, brick_block_ingrediant},
{'default:brick', 'technic:machine_casing', 'default:brick'}, {brick_block_ingrediant, 'technic:machine_casing', brick_block_ingrediant},
{'default:brick', 'technic:lv_cable', 'default:brick'}, {brick_block_ingrediant, 'technic:lv_cable', brick_block_ingrediant},
} }
}) })

View File

@ -4,9 +4,9 @@ minetest.register_alias("lv_cable", "technic:lv_cable")
minetest.register_craft({ minetest.register_craft({
output = 'technic:lv_cable 6', output = 'technic:lv_cable 6',
recipe = { recipe = {
{'default:paper', 'default:paper', 'default:paper'}, {paper_ingrediant, paper_ingrediant, paper_ingrediant},
{'default:copper_ingot', 'default:copper_ingot', 'default:copper_ingot'}, {copper_ingrediant, copper_ingrediant, copper_ingrediant},
{'default:paper', 'default:paper', 'default:paper'}, {paper_ingrediant, paper_ingrediant, paper_ingrediant},
} }
}) })

View File

@ -4,7 +4,7 @@ minetest.register_alias("compressor", "technic:lv_compressor")
minetest.register_craft({ minetest.register_craft({
output = 'technic:lv_compressor', output = 'technic:lv_compressor',
recipe = { recipe = {
{'default:stone', 'basic_materials:motor', 'default:stone'}, {stone_ingrediant, 'basic_materials:motor', stone_ingrediant},
{'mesecons:piston', 'technic:machine_casing', 'mesecons:piston'}, {'mesecons:piston', 'technic:machine_casing', 'mesecons:piston'},
{'basic_materials:silver_wire', 'technic:lv_cable', 'basic_materials:silver_wire'}, {'basic_materials:silver_wire', 'technic:lv_cable', 'basic_materials:silver_wire'},
}, },

View File

@ -8,9 +8,9 @@ minetest.register_alias("lv_generator", "technic:lv_generator")
minetest.register_craft({ minetest.register_craft({
output = 'technic:lv_generator', output = 'technic:lv_generator',
recipe = { recipe = {
{'default:stone', 'default:furnace', 'default:stone'}, {stone_ingrediant, furnace_ingrediant, stone_ingrediant},
{'default:stone', 'technic:machine_casing', 'default:stone'}, {stone_ingrediant, 'technic:machine_casing', stone_ingrediant},
{'default:stone', 'technic:lv_cable', 'default:stone'}, {stone_ingrediant, 'technic:lv_cable', stone_ingrediant},
} }
}) })

View File

@ -10,9 +10,9 @@ local S = technic.getter
minetest.register_craft({ minetest.register_craft({
output = 'technic:geothermal', output = 'technic:geothermal',
recipe = { recipe = {
{'technic:granite', 'default:diamond', 'technic:granite'}, {granite_ingrediant, diamond_ingrediant, granite_ingrediant},
{'basic_materials:copper_wire', 'technic:machine_casing', 'basic_materials:copper_wire'}, {'basic_materials:copper_wire', 'technic:machine_casing', 'basic_materials:copper_wire'},
{'technic:granite', 'technic:lv_cable', 'technic:granite'}, {granite_ingrediant, 'technic:lv_cable', granite_ingrediant},
}, },
replacements = { replacements = {
{"basic_materials:copper_wire", "basic_materials:empty_spool"}, {"basic_materials:copper_wire", "basic_materials:empty_spool"},
@ -90,7 +90,7 @@ minetest.register_node("technic:geothermal", {
technic_machine=1, technic_lv=1}, technic_machine=1, technic_lv=1},
paramtype2 = "facedir", paramtype2 = "facedir",
legacy_facedir_simple = true, legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
on_construct = function(pos) on_construct = function(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
meta:set_string("infotext", S("Geothermal %s Generator"):format("LV")) meta:set_string("infotext", S("Geothermal %s Generator"):format("LV"))
@ -107,7 +107,7 @@ minetest.register_node("technic:geothermal_active", {
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
technic_machine=1, technic_lv=1, not_in_creative_inventory=1}, technic_machine=1, technic_lv=1, not_in_creative_inventory=1},
legacy_facedir_simple = true, legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
drop = "technic:geothermal", drop = "technic:geothermal",
technic_run = run, technic_run = run,
}) })

View File

@ -3,9 +3,9 @@ minetest.register_alias("grinder", "technic:lv_grinder")
minetest.register_craft({ minetest.register_craft({
output = 'technic:lv_grinder', output = 'technic:lv_grinder',
recipe = { recipe = {
{'default:desert_stone', 'default:diamond', 'default:desert_stone'}, {desert_stone_ingrediant, diamond_ingrediant, desert_stone_ingrediant},
{'default:desert_stone', 'technic:machine_casing', 'default:desert_stone'}, {desert_stone_ingrediant, 'technic:machine_casing', desert_stone_ingrediant},
{'technic:granite', 'technic:lv_cable', 'technic:granite'}, {granite_ingrediant, 'technic:lv_cable', granite_ingrediant},
} }
}) })

View File

@ -149,7 +149,7 @@ technic.register_machine("LV", "technic:lv_lamp_active", technic.receiver)
minetest.register_craft({ minetest.register_craft({
output = "technic:lv_lamp", output = "technic:lv_lamp",
recipe = { recipe = {
{"default:glass", "default:glass", "default:glass"}, {glass_ingrediant, glass_ingrediant, glass_ingrediant},
{"technic:lv_led", "technic:lv_led", "technic:lv_led"}, {"technic:lv_led", "technic:lv_led", "technic:lv_led"},
{"mesecons_materials:glue", "technic:lv_cable", "mesecons_materials:glue"}, {"mesecons_materials:glue", "technic:lv_cable", "mesecons_materials:glue"},
} }

View File

@ -7,9 +7,9 @@ minetest.register_alias("music_player", "technic:music_player")
minetest.register_craft({ minetest.register_craft({
output = 'technic:music_player', output = 'technic:music_player',
recipe = { recipe = {
{'technic:chromium_ingot', 'default:diamond', 'technic:chromium_ingot'}, {'technic:chromium_ingot', diamond_ingrediant, 'technic:chromium_ingot'},
{'default:diamond', 'technic:machine_casing', 'default:diamond'}, {diamond_ingrediant, 'technic:machine_casing', diamond_ingrediant},
{'default:mossycobble', 'technic:lv_cable', 'default:mossycobble'}, {mossy_cobble_ingrediant, 'technic:lv_cable', mossy_cobble_ingrediant},
} }
}) })
@ -96,7 +96,7 @@ minetest.register_node("technic:music_player", {
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
technic_machine=1, technic_lv=1}, technic_machine=1, technic_lv=1},
connect_sides = {"bottom"}, connect_sides = {"bottom"},
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
on_construct = function(pos) on_construct = function(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
meta:set_string("infotext", S("%s Music Player"):format("LV")) meta:set_string("infotext", S("%s Music Player"):format("LV"))

View File

@ -50,7 +50,7 @@ minetest.register_node("technic:solar_panel", {
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
technic_machine=1, technic_lv=1}, technic_machine=1, technic_lv=1},
connect_sides = {"bottom"}, connect_sides = {"bottom"},
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
description = S("Small Solar %s Generator"):format("LV"), description = S("Small Solar %s Generator"):format("LV"),
active = false, active = false,
drawtype = "nodebox", drawtype = "nodebox",

View File

@ -11,7 +11,7 @@ minetest.register_alias("water_mill", "technic:water_mill")
minetest.register_craft({ minetest.register_craft({
output = 'technic:water_mill', output = 'technic:water_mill',
recipe = { recipe = {
{'technic:marble', 'default:diamond', 'technic:marble'}, {'technic:marble', diamond_ingrediant, 'technic:marble'},
{'group:wood', 'technic:machine_casing', 'group:wood'}, {'group:wood', 'technic:machine_casing', 'group:wood'},
{'technic:marble', 'technic:lv_cable', 'technic:marble'}, {'technic:marble', 'technic:lv_cable', 'technic:marble'},
} }
@ -80,7 +80,7 @@ minetest.register_node("technic:water_mill", {
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
technic_machine=1, technic_lv=1}, technic_machine=1, technic_lv=1},
legacy_facedir_simple = true, legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
on_construct = function(pos) on_construct = function(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
meta:set_string("infotext", S("Hydro %s Generator"):format("LV")) meta:set_string("infotext", S("Hydro %s Generator"):format("LV"))
@ -98,7 +98,7 @@ minetest.register_node("technic:water_mill_active", {
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
technic_machine=1, technic_lv=1, not_in_creative_inventory=1}, technic_machine=1, technic_lv=1, not_in_creative_inventory=1},
legacy_facedir_simple = true, legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
drop = "technic:water_mill", drop = "technic:water_mill",
technic_run = run, technic_run = run,
technic_disabled_machine_name = "technic:water_mill", technic_disabled_machine_name = "technic:water_mill",

View File

@ -77,7 +77,7 @@ minetest.register_node("technic:hydro_turbine", {
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
technic_machine=1, technic_mv=1}, technic_machine=1, technic_mv=1},
legacy_facedir_simple = true, legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
on_construct = function(pos) on_construct = function(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
meta:set_string("infotext", S("Hydro %s Generator"):format("MV")) meta:set_string("infotext", S("Hydro %s Generator"):format("MV"))
@ -95,7 +95,7 @@ minetest.register_node("technic:hydro_turbine_active", {
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
technic_machine=1, technic_mv=1, not_in_creative_inventory=1}, technic_machine=1, technic_mv=1, not_in_creative_inventory=1},
legacy_facedir_simple = true, legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
drop = "technic:hydro_turbine", drop = "technic:hydro_turbine",
technic_run = run, technic_run = run,
technic_disabled_machine_name = "technic:hydro_turbine", technic_disabled_machine_name = "technic:hydro_turbine",

View File

@ -105,7 +105,7 @@ minetest.register_node('technic:homedecor_glowlight_half_yellow', {
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
walkable = true, walkable = true,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
groups = { snappy = 3 }, groups = { snappy = 3 },
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
@ -145,7 +145,7 @@ minetest.register_node('technic:homedecor_glowlight_half_yellow_active', {
paramtype2 = "facedir", paramtype2 = "facedir",
walkable = true, walkable = true,
light_source = minetest.LIGHT_MAX, light_source = minetest.LIGHT_MAX,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
groups = { snappy = 3, not_in_creative_inventory=1}, groups = { snappy = 3, not_in_creative_inventory=1},
drop="technic:homedecor_glowlight_half_yellow", drop="technic:homedecor_glowlight_half_yellow",
@ -186,7 +186,7 @@ minetest.register_node('technic:homedecor_glowlight_quarter_yellow', {
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
walkable = true, walkable = true,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
groups = { snappy = 3 }, groups = { snappy = 3 },
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
@ -226,7 +226,7 @@ minetest.register_node('technic:homedecor_glowlight_quarter_yellow_active', {
paramtype2 = "facedir", paramtype2 = "facedir",
walkable = true, walkable = true,
light_source = minetest.LIGHT_MAX-1, light_source = minetest.LIGHT_MAX-1,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
groups = { snappy = 3, not_in_creative_inventory=1}, groups = { snappy = 3, not_in_creative_inventory=1},
drop="technic:homedecor_glowlight_quarter_yellow", drop="technic:homedecor_glowlight_quarter_yellow",
@ -268,7 +268,7 @@ minetest.register_node('technic:homedecor_glowlight_half_white', {
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
walkable = true, walkable = true,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
groups = { snappy = 3 }, groups = { snappy = 3 },
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
@ -308,7 +308,7 @@ minetest.register_node('technic:homedecor_glowlight_half_white_active', {
paramtype2 = "facedir", paramtype2 = "facedir",
walkable = true, walkable = true,
light_source = minetest.LIGHT_MAX, light_source = minetest.LIGHT_MAX,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
groups = { snappy = 3, not_in_creative_inventory=1}, groups = { snappy = 3, not_in_creative_inventory=1},
drop="technic:homedecor_glowlight_half_white", drop="technic:homedecor_glowlight_half_white",
@ -349,7 +349,7 @@ minetest.register_node('technic:homedecor_glowlight_quarter_white', {
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
walkable = true, walkable = true,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
groups = { snappy = 3 }, groups = { snappy = 3 },
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
@ -389,7 +389,7 @@ minetest.register_node('technic:homedecor_glowlight_quarter_white_active', {
paramtype2 = "facedir", paramtype2 = "facedir",
walkable = true, walkable = true,
light_source = minetest.LIGHT_MAX-1, light_source = minetest.LIGHT_MAX-1,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
groups = { snappy = 3, not_in_creative_inventory=1}, groups = { snappy = 3, not_in_creative_inventory=1},
drop="technic:homedecor_glowlight_quarter_white", drop="technic:homedecor_glowlight_quarter_white",
@ -430,7 +430,7 @@ minetest.register_node('technic:homedecor_glowlight_small_cube_yellow', {
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
walkable = true, walkable = true,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
groups = { snappy = 3 }, groups = { snappy = 3 },
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
@ -470,7 +470,7 @@ minetest.register_node('technic:homedecor_glowlight_small_cube_yellow_active', {
paramtype2 = "facedir", paramtype2 = "facedir",
walkable = true, walkable = true,
light_source = minetest.LIGHT_MAX-1, light_source = minetest.LIGHT_MAX-1,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
groups = { snappy = 3, not_in_creative_inventory=1}, groups = { snappy = 3, not_in_creative_inventory=1},
drop="technic:homedecor_glowlight_small_cube_yellow", drop="technic:homedecor_glowlight_small_cube_yellow",
@ -511,7 +511,7 @@ minetest.register_node('technic:homedecor_glowlight_small_cube_white', {
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
walkable = true, walkable = true,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
groups = { snappy = 3 }, groups = { snappy = 3 },
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
@ -551,7 +551,7 @@ minetest.register_node('technic:homedecor_glowlight_small_cube_white_active', {
paramtype2 = "facedir", paramtype2 = "facedir",
walkable = true, walkable = true,
light_source = minetest.LIGHT_MAX-1, light_source = minetest.LIGHT_MAX-1,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
groups = { snappy = 3, not_in_creative_inventory=1}, groups = { snappy = 3, not_in_creative_inventory=1},
drop="technic:homedecor_glowlight_small_cube_white", drop="technic:homedecor_glowlight_small_cube_white",

View File

@ -123,7 +123,7 @@ minetest.register_node("technic:power_radiator", {
tiles = {"technic_lv_cable.png", "technic_lv_cable.png", "technic_lv_cable.png", tiles = {"technic_lv_cable.png", "technic_lv_cable.png", "technic_lv_cable.png",
"technic_lv_cable.png", "technic_lv_cable.png", "technic_lv_cable.png"}, "technic_lv_cable.png", "technic_lv_cable.png", "technic_lv_cable.png"},
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2}, groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2},
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
drawtype = "nodebox", drawtype = "nodebox",
paramtype = "light", paramtype = "light",
is_ground_content = true, is_ground_content = true,

View File

@ -10,9 +10,9 @@ local tube_entry = "^pipeworks_tube_connection_wooden.png"
minetest.register_craft({ minetest.register_craft({
output = 'technic:tool_workshop', output = 'technic:tool_workshop',
recipe = { recipe = {
{'group:wood', 'default:diamond', 'group:wood'}, {'group:wood', diamond_ingrediant, 'group:wood'},
{'mesecons_pistons:piston_sticky_off', 'technic:machine_casing', 'technic:carbon_cloth'}, {'mesecons_pistons:piston_sticky_off', 'technic:machine_casing', 'technic:carbon_cloth'},
{'default:obsidian', 'technic:mv_cable', 'default:obsidian'}, {obsidian_ingrediant, 'technic:mv_cable', obsidian_ingrediant},
} }
}) })
@ -95,7 +95,7 @@ minetest.register_node("technic:tool_workshop", {
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
technic_machine=1, technic_mv=1, tubedevice=1, tubedevice_receiver=1}, technic_machine=1, technic_mv=1, tubedevice=1, tubedevice_receiver=1},
connect_sides = {"bottom", "back", "left", "right"}, connect_sides = {"bottom", "back", "left", "right"},
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
on_construct = function(pos) on_construct = function(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
meta:set_string("infotext", S("%s Tool Workshop"):format("MV")) meta:set_string("infotext", S("%s Tool Workshop"):format("MV"))

View File

@ -25,7 +25,7 @@ minetest.register_node("technic:wind_mill_frame", {
tiles = {"technic_carbon_steel_block.png", "default_glass.png"}, tiles = {"technic_carbon_steel_block.png", "default_glass.png"},
sunlight_propagates = true, sunlight_propagates = true,
groups = {cracky=3}, groups = {cracky=3},
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
paramtype = "light", paramtype = "light",
}) })
@ -72,7 +72,7 @@ minetest.register_node("technic:wind_mill", {
paramtype2 = "facedir", paramtype2 = "facedir",
groups = {cracky=1, technic_machine=1, technic_mv=1}, groups = {cracky=1, technic_machine=1, technic_mv=1},
connect_sides = {"top", "bottom", "back", "left", "right"}, connect_sides = {"top", "bottom", "back", "left", "right"},
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
drawtype = "nodebox", drawtype = "nodebox",
paramtype = "light", paramtype = "light",
node_box = { node_box = {

View File

@ -73,7 +73,7 @@ minetest.register_node("technic:admin_anchor", {
tiles = {"technic_admin_anchor.png"}, tiles = {"technic_admin_anchor.png"},
is_ground_content = true, is_ground_content = true,
groups = {cracky=3, not_in_creative_inventory=1}, groups = {cracky=3, not_in_creative_inventory=1},
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
after_place_node = function (pos, placer) after_place_node = function (pos, placer)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
if placer and placer:is_player() then if placer and placer:is_player() then

View File

@ -6,9 +6,9 @@ local S = technic.getter
minetest.register_craft({ minetest.register_craft({
output = 'technic:coal_alloy_furnace', output = 'technic:coal_alloy_furnace',
recipe = { recipe = {
{'default:brick', 'default:brick', 'default:brick'}, {brick_block_ingrediant, brick_block_ingrediant, brick_block_ingrediant},
{'default:brick', '', 'default:brick'}, {brick_block_ingrediant, '', brick_block_ingrediant},
{'default:brick', 'default:brick', 'default:brick'}, {brick_block_ingrediant, brick_block_ingrediant, brick_block_ingrediant},
} }
}) })
@ -36,7 +36,7 @@ minetest.register_node("technic:coal_alloy_furnace", {
paramtype2 = "facedir", paramtype2 = "facedir",
groups = {cracky=2}, groups = {cracky=2},
legacy_facedir_simple = true, legacy_facedir_simple = true,
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
on_construct = function(pos) on_construct = function(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
meta:set_string("formspec", formspec) meta:set_string("formspec", formspec)
@ -62,7 +62,7 @@ minetest.register_node("technic:coal_alloy_furnace_active", {
drop = "technic:coal_alloy_furnace", drop = "technic:coal_alloy_furnace",
groups = {cracky=2, not_in_creative_inventory=1}, groups = {cracky=2, not_in_creative_inventory=1},
legacy_facedir_simple = true, legacy_facedir_simple = true,
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
can_dig = technic.machine_can_dig, can_dig = technic.machine_can_dig,
allow_metadata_inventory_put = technic.machine_inventory_put, allow_metadata_inventory_put = technic.machine_inventory_put,
allow_metadata_inventory_take = technic.machine_inventory_take, allow_metadata_inventory_take = technic.machine_inventory_take,

View File

@ -1,5 +1,10 @@
local S = technic.getter local S = technic.getter
if minetest.get_modpath("mcl_core") then
minetest.registered_nodes["mcl_furnaces:furnace"].description = S("Fuel-Fired Furnace")
minetest.override_item("mcl_furnaces:furnace", { description = S("Fuel-Fired Furnace") })
else
if minetest.registered_nodes["default:furnace"].description == "Furnace" then if minetest.registered_nodes["default:furnace"].description == "Furnace" then
minetest.override_item("default:furnace", { description = S("Fuel-Fired Furnace") }) minetest.override_item("default:furnace", { description = S("Fuel-Fired Furnace") })
end end
end

View File

@ -142,7 +142,7 @@ local function make_constructor(mark, length)
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
mesecon = 2, technic_constructor = 1}, mesecon = 2, technic_constructor = 1},
mesecons = {effector = {action_on = make_on(mark, length)}}, mesecons = {effector = {action_on = make_on(mark, length)}},
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
on_construct = function(pos) on_construct = function(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
local formspec = "size[8,9;]".. local formspec = "size[8,9;]"..
@ -194,7 +194,7 @@ local function make_constructor(mark, length)
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
mesecon=2, not_in_creative_inventory=1, technic_constructor=1}, mesecon=2, not_in_creative_inventory=1, technic_constructor=1},
mesecons= {effector = {action_off = make_off(mark)}}, mesecons= {effector = {action_off = make_off(mark)}},
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
allow_metadata_inventory_put = allow_inventory_put, allow_metadata_inventory_put = allow_inventory_put,
allow_metadata_inventory_take = technic.machine_inventory_take, allow_metadata_inventory_take = technic.machine_inventory_take,
allow_metadata_inventory_move = technic.machine_inventory_move, allow_metadata_inventory_move = technic.machine_inventory_move,

View File

@ -981,7 +981,7 @@ minetest.register_craft({
output = 'technic:template 10', output = 'technic:template 10',
recipe = { recipe = {
{ '', 'basic_materials:brass_ingot', '' }, { '', 'basic_materials:brass_ingot', '' },
{ 'basic_materials:brass_ingot', 'default:mese_crystal', 'basic_materials:brass_ingot' }, { 'basic_materials:brass_ingot', mese_crystal_ingrediant, 'basic_materials:brass_ingot' },
{ '', 'basic_materials:brass_ingot', '' }, { '', 'basic_materials:brass_ingot', '' },
} }
}) })
@ -1009,7 +1009,7 @@ minetest.register_craft({
output = 'technic:template_tool', output = 'technic:template_tool',
recipe = { recipe = {
{ '', 'technic:template', '' }, { '', 'technic:template', '' },
{ 'default:mese_crystal', 'default:stick', 'default:mese_crystal' }, { mese_crystal_ingrediant, 'default:stick', mese_crystal_ingrediant },
{ '', 'default:stick', '' }, { '', 'default:stick', '' },
} }
}) })

View File

@ -47,7 +47,7 @@ minetest.register_craft({
output = 'technic:injector 1', output = 'technic:injector 1',
recipe = { recipe = {
{'', 'technic:control_logic_unit',''}, {'', 'technic:control_logic_unit',''},
{'', 'default:chest',''}, {'', chest_ingrediant,''},
{'', 'pipeworks:tube_1',''}, {'', 'pipeworks:tube_1',''},
} }
}) })
@ -105,7 +105,7 @@ minetest.register_node("technic:injector", {
end, end,
connect_sides = {left=1, right=1, back=1, top=1, bottom=1}, connect_sides = {left=1, right=1, back=1, top=1, bottom=1},
}, },
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
on_construct = function(pos) on_construct = function(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
meta:set_string("infotext", S("Self-Contained Injector")) meta:set_string("infotext", S("Self-Contained Injector"))

View File

@ -10,7 +10,7 @@ minetest.register_craft({
output = "technic:power_monitor", output = "technic:power_monitor",
recipe = { recipe = {
{"", "", ""}, {"", "", ""},
{"", "technic:machine_casing", "default:copper_ingot"}, {"", "technic:machine_casing", copper_ingrediant},
{"technic:lv_cable", "technic:lv_cable", "technic:lv_cable"} {"technic:lv_cable", "technic:lv_cable", "technic:lv_cable"}
} }
}) })
@ -28,7 +28,7 @@ minetest.register_node("technic:power_monitor",{
paramtype2 = "facedir", paramtype2 = "facedir",
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, technic_all_tiers=1, technic_machine=1}, groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, technic_all_tiers=1, technic_machine=1},
connect_sides = {"bottom", "back"}, connect_sides = {"bottom", "back"},
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
on_construct = function(pos) on_construct = function(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
meta:set_string("infotext", S("Power Monitor")) meta:set_string("infotext", S("Power Monitor"))

View File

@ -13,7 +13,7 @@ end
local recipes = { local recipes = {
{"technic:copper_dust 7", "technic:tin_dust", "technic:bronze_dust 8", 12}, {"technic:copper_dust 7", "technic:tin_dust", "technic:bronze_dust 8", 12},
{"default:copper_ingot 7", "default:tin_ingot", "default:bronze_ingot 8", 12}, {"copper_ingrediant 7", "default:tin_ingot", "default:bronze_ingot 8", 12},
{"technic:wrought_iron_dust 2", "technic:coal_dust", "technic:carbon_steel_dust 2", 6}, {"technic:wrought_iron_dust 2", "technic:coal_dust", "technic:carbon_steel_dust 2", 6},
{"technic:wrought_iron_ingot 2", "technic:coal_dust", "technic:carbon_steel_ingot 2", 6}, {"technic:wrought_iron_ingot 2", "technic:coal_dust", "technic:carbon_steel_ingot 2", 6},
{"technic:carbon_steel_dust 2", "technic:coal_dust", "technic:cast_iron_dust 2", 6}, {"technic:carbon_steel_dust 2", "technic:coal_dust", "technic:cast_iron_dust 2", 6},
@ -21,7 +21,7 @@ local recipes = {
{"technic:carbon_steel_dust 4", "technic:chromium_dust", "technic:stainless_steel_dust 5", 7.5}, {"technic:carbon_steel_dust 4", "technic:chromium_dust", "technic:stainless_steel_dust 5", 7.5},
{"technic:carbon_steel_ingot 4", "technic:chromium_ingot", "technic:stainless_steel_ingot 5", 7.5}, {"technic:carbon_steel_ingot 4", "technic:chromium_ingot", "technic:stainless_steel_ingot 5", 7.5},
{"technic:copper_dust 2", "technic:zinc_dust", "technic:brass_dust 3"}, {"technic:copper_dust 2", "technic:zinc_dust", "technic:brass_dust 3"},
{"default:copper_ingot 2", "technic:zinc_ingot", "basic_materials:brass_ingot 3"}, {"copper_ingrediant 2", "technic:zinc_ingot", "basic_materials:brass_ingot 3"},
{"default:sand 2", "technic:coal_dust 2", "technic:silicon_wafer"}, {"default:sand 2", "technic:coal_dust 2", "technic:silicon_wafer"},
{"technic:silicon_wafer", "technic:gold_dust", "technic:doped_silicon_wafer"}, {"technic:silicon_wafer", "technic:gold_dust", "technic:doped_silicon_wafer"},
-- from https://en.wikipedia.org/wiki/Carbon_black -- from https://en.wikipedia.org/wiki/Carbon_black

View File

@ -17,9 +17,9 @@ technic.register_power_tool("technic:blue_energy_crystal", 450000)
minetest.register_craft({ minetest.register_craft({
output = "technic:battery", output = "technic:battery",
recipe = { recipe = {
{"group:wood", "default:copper_ingot", "group:wood"}, {"group:wood", copper_ingrediant, "group:wood"},
{"group:wood", "default:tin_ingot", "group:wood"}, {"group:wood", "default:tin_ingot", "group:wood"},
{"group:wood", "default:copper_ingot", "group:wood"}, {"group:wood", copper_ingrediant, "group:wood"},
} }
}) })
-- Sulfur-lead-water recipes: -- Sulfur-lead-water recipes:
@ -300,7 +300,7 @@ function technic.register_battery_box(data)
connect_sides = {"bottom"}, connect_sides = {"bottom"},
tube = data.tube and tube or nil, tube = data.tube and tube or nil,
paramtype2 = "facedir", paramtype2 = "facedir",
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
drop = "technic:"..ltier.."_battery_box0", drop = "technic:"..ltier.."_battery_box0",
on_construct = function(pos) on_construct = function(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)

View File

@ -161,7 +161,7 @@ function technic.register_cable(tier, size)
inventory_image = "technic_"..ltier.."_cable_wield.png", inventory_image = "technic_"..ltier.."_cable_wield.png",
wield_image = "technic_"..ltier.."_cable_wield.png", wield_image = "technic_"..ltier.."_cable_wield.png",
groups = groups, groups = groups,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
drop = "technic:"..ltier.."_cable", drop = "technic:"..ltier.."_cable",
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
@ -201,7 +201,7 @@ function technic.register_cable(tier, size)
description = S("%s Cable Plate"):format(tier), description = S("%s Cable Plate"):format(tier),
tiles = {"technic_"..ltier.."_cable.png"}, tiles = {"technic_"..ltier.."_cable.png"},
groups = table.copy(groups), groups = table.copy(groups),
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
drop = "technic:"..ltier.."_cable_plate_1", drop = "technic:"..ltier.."_cable_plate_1",
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,

View File

@ -35,7 +35,7 @@ end
-- handles the machine upgrades when set or removed -- handles the machine upgrades when set or removed
local function on_machine_upgrade(meta, stack) local function on_machine_upgrade(meta, stack)
local stack_name = stack:get_name() local stack_name = stack:get_name()
if stack_name == "default:chest" then if stack_name == chest_ingrediant then
meta:set_int("public", 1) meta:set_int("public", 1)
return 1 return 1
elseif stack_name ~= "technic:control_logic_unit" elseif stack_name ~= "technic:control_logic_unit"
@ -47,7 +47,7 @@ end
-- something is about to be removed -- something is about to be removed
local function on_machine_downgrade(meta, stack, list) local function on_machine_downgrade(meta, stack, list)
if stack:get_name() == "default:chest" then if stack:get_name() == chest_ingrediant then
local inv = meta:get_inventory() local inv = meta:get_inventory()
local upg1, upg2 = inv:get_stack("upgrade1", 1), inv:get_stack("upgrade2", 1) local upg1, upg2 = inv:get_stack("upgrade1", 1), inv:get_stack("upgrade2", 1)

View File

@ -9,18 +9,19 @@ function technic.register_compressor_recipe(data)
end end
local recipes = { local recipes = {
{"default:snowblock", "default:ice"}, {snow_block_ingrediant, ice_block_ingrediant},
{"default:sand 2", "default:sandstone"}, {sand_ingrediant.." 2", sandstone_ingrediant},
{"default:desert_sand 2", "default:desert_sandstone"}, {desert_sand_ingrediant.." 2", desert_stone_ingrediant},
{"default:silver_sand 2", "default:silver_sandstone"}, {desert_sand_ingrediant, desert_stone_ingrediant},
{"default:desert_sand", "default:desert_stone"},
{"technic:mixed_metal_ingot", "technic:composite_plate"}, {"technic:mixed_metal_ingot", "technic:composite_plate"},
{"default:copper_ingot 5", "technic:copper_plate"}, {copper_ingrediant.." 5", "technic:copper_plate"},
{"technic:coal_dust 4", "technic:graphite"}, {"technic:coal_dust 4", "technic:graphite"},
{"technic:carbon_cloth", "technic:carbon_plate"}, {"technic:carbon_cloth", "technic:carbon_plate"},
{"technic:uranium35_ingot 5", "technic:uranium_fuel"}, {"technic:uranium35_ingot 5", "technic:uranium_fuel"},
} }
if minetest.get_modpath("default") then
table.insert(recipes, {"default:silver_sand 2", "default:silver_sandstone"})
end
-- defuse the default sandstone recipe, since we have the compressor to take over in a more realistic manner -- defuse the default sandstone recipe, since we have the compressor to take over in a more realistic manner
minetest.clear_craft({ minetest.clear_craft({
recipe = { recipe = {

View File

@ -125,7 +125,7 @@ function technic.register_generator(data)
groups = groups, groups = groups,
connect_sides = {"bottom", "back", "left", "right"}, connect_sides = {"bottom", "back", "left", "right"},
legacy_facedir_simple = true, legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
tube = data.tube and tube or nil, tube = data.tube and tube or nil,
on_construct = function(pos) on_construct = function(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
@ -192,7 +192,7 @@ function technic.register_generator(data)
groups = active_groups, groups = active_groups,
connect_sides = {"bottom"}, connect_sides = {"bottom"},
legacy_facedir_simple = true, legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
tube = data.tube and tube or nil, tube = data.tube and tube or nil,
drop = "technic:"..ltier.."_generator", drop = "technic:"..ltier.."_generator",
can_dig = technic.machine_can_dig, can_dig = technic.machine_can_dig,

View File

@ -104,9 +104,9 @@ register_dust("Cast Iron", "technic:cast_iron_ingot")
register_dust("Chernobylite", "technic:chernobylite_block") register_dust("Chernobylite", "technic:chernobylite_block")
register_dust("Chromium", "technic:chromium_ingot") register_dust("Chromium", "technic:chromium_ingot")
register_dust("Coal", nil) register_dust("Coal", nil)
register_dust("Copper", "default:copper_ingot") register_dust("Copper", copper_ingrediant)
register_dust("Lead", "technic:lead_ingot") register_dust("Lead", "technic:lead_ingot")
register_dust("Gold", "default:gold_ingot") register_dust("Gold", gold_ingot_ingrediant)
register_dust("Mithril", "moreores:mithril_ingot") register_dust("Mithril", "moreores:mithril_ingot")
register_dust("Silver", "moreores:silver_ingot") register_dust("Silver", "moreores:silver_ingot")
register_dust("Stainless Steel", "technic:stainless_steel_ingot") register_dust("Stainless Steel", "technic:stainless_steel_ingot")

View File

@ -174,7 +174,7 @@ function technic.register_base_machine(data)
tube = data.tube and tube or nil, tube = data.tube and tube or nil,
connect_sides = data.connect_sides or connect_default, connect_sides = data.connect_sides or connect_default,
legacy_facedir_simple = true, legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
on_construct = function(pos) on_construct = function(pos)
local node = minetest.get_node(pos) local node = minetest.get_node(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
@ -245,7 +245,7 @@ function technic.register_base_machine(data)
groups = active_groups, groups = active_groups,
connect_sides = data.connect_sides or connect_default, connect_sides = data.connect_sides or connect_default,
legacy_facedir_simple = true, legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
tube = data.tube and tube or nil, tube = data.tube and tube or nil,
can_dig = technic.machine_can_dig, can_dig = technic.machine_can_dig,
allow_metadata_inventory_put = technic.machine_inventory_put, allow_metadata_inventory_put = technic.machine_inventory_put,

View File

@ -45,7 +45,7 @@ function technic.register_solar_array(data)
"technic_"..ltier.."_solar_array_side.png", "technic_"..ltier.."_solar_array_side.png"}, "technic_"..ltier.."_solar_array_side.png", "technic_"..ltier.."_solar_array_side.png"},
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, technic_machine=1, ["technic_"..ltier]=1}, groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, technic_machine=1, ["technic_"..ltier]=1},
connect_sides = {"bottom"}, connect_sides = {"bottom"},
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
description = S("Arrayed Solar %s Generator"):format(tier), description = S("Arrayed Solar %s Generator"):format(tier),
active = false, active = false,
drawtype = "nodebox", drawtype = "nodebox",

View File

@ -200,7 +200,7 @@ minetest.register_node("technic:supply_converter", {
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
technic_machine=1, technic_all_tiers=1}, technic_machine=1, technic_all_tiers=1},
connect_sides = {"top", "bottom"}, connect_sides = {"top", "bottom"},
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
on_receive_fields = supply_converter_receive_fields, on_receive_fields = supply_converter_receive_fields,
on_construct = function(pos) on_construct = function(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)

View File

@ -15,7 +15,7 @@ minetest.register_craft({
output = "technic:switching_station", output = "technic:switching_station",
recipe = { recipe = {
{"", "technic:lv_transformer", ""}, {"", "technic:lv_transformer", ""},
{"default:copper_ingot", "technic:machine_casing", "default:copper_ingot"}, {copper_ingrediant, "technic:machine_casing", copper_ingrediant},
{"technic:lv_cable", "technic:lv_cable", "technic:lv_cable"} {"technic:lv_cable", "technic:lv_cable", "technic:lv_cable"}
} }
}) })
@ -38,7 +38,7 @@ minetest.register_node("technic:switching_station",{
"technic_water_mill_top_active.png"}, "technic_water_mill_top_active.png"},
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, technic_all_tiers=1}, groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, technic_all_tiers=1},
connect_sides = {"bottom"}, connect_sides = {"bottom"},
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
on_construct = function(pos) on_construct = function(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
meta:set_string("infotext", S("Switching Station")) meta:set_string("infotext", S("Switching Station"))

View File

@ -1,3 +1,4 @@
name = technic name = technic
depends = default, pipeworks, technic_worldgen, basic_materials depends = pipeworks, technic_worldgen, basic_materials
optional_depends = bucket, screwdriver, mesecons, mesecons_mvps, digilines, digiline_remote, intllib, unified_inventory, vector_extras, dye, craftguide,i3 optional_depends = bucket, default, screwdriver, mesecons,mesecons_torch, mesecons_mvps, digilines, digiline_remote, intllib, unified_inventory, vector_extras, dye, craftguide,i3
supported_games = minetest_game,mineclone2

View File

@ -52,7 +52,7 @@ local rad_resistance_node = {
["default:ice"] = 5.6, ["default:ice"] = 5.6,
["default:lava_flowing"] = 8.5, ["default:lava_flowing"] = 8.5,
["default:lava_source"] = 17, ["default:lava_source"] = 17,
["default:mese"] = 21, [mese_block_ingrediant] = 21,
["default:mossycobble"] = 15, ["default:mossycobble"] = 15,
["default:tinblock"] = 37, ["default:tinblock"] = 37,
["pbj_pup:pbj_pup"] = 10000, ["pbj_pup:pbj_pup"] = 10000,
@ -64,7 +64,7 @@ local rad_resistance_node = {
["nyancat:nyancat"] = 10000, ["nyancat:nyancat"] = 10000,
["nyancat:nyancat_rainbow"] = 10000, ["nyancat:nyancat_rainbow"] = 10000,
["default:obsidian"] = 18, ["default:obsidian"] = 18,
["default:obsidian_glass"] = 18, [obsidian_glass_ingrediant] = 18,
["default:sand"] = 10, ["default:sand"] = 10,
["default:sandstone"] = 15, ["default:sandstone"] = 15,
["default:sandstonebrick"] = 15, ["default:sandstonebrick"] = 15,
@ -153,7 +153,7 @@ local rad_resistance_node = {
["technic:chromium_block"] = 37, ["technic:chromium_block"] = 37,
["technic:corium_flowing"] = 40, ["technic:corium_flowing"] = 40,
["technic:corium_source"] = 80, ["technic:corium_source"] = 80,
["technic:granite"] = 18, [granite_ingrediant] = 18,
["technic:lead_block"] = 80, ["technic:lead_block"] = 80,
["technic:marble"] = 18, ["technic:marble"] = 18,
["technic:marble_bricks"] = 18, ["technic:marble_bricks"] = 18,
@ -457,7 +457,7 @@ minetest.register_node("technic:chernobylite_block", {
tiles = {"technic_chernobylite_block.png"}, tiles = {"technic_chernobylite_block.png"},
is_ground_content = true, is_ground_content = true,
groups = {cracky=1, radioactive=4, level=2}, groups = {cracky=1, radioactive=4, level=2},
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
light_source = 2, light_source = 2,
}) })

View File

@ -135,7 +135,7 @@ minetest.register_craft({
output = 'technic:river_water_can 1', output = 'technic:river_water_can 1',
recipe = { recipe = {
{'technic:zinc_ingot', 'technic:rubber', 'technic:zinc_ingot'}, {'technic:zinc_ingot', 'technic:rubber', 'technic:zinc_ingot'},
{'default:steel_ingot', '', 'default:steel_ingot'}, {iron_ingrediant, '', iron_ingrediant},
{'technic:zinc_ingot', 'default:steel_ingot', 'technic:zinc_ingot'}, {'technic:zinc_ingot', iron_ingrediant, 'technic:zinc_ingot'},
} }
}) })

View File

@ -340,7 +340,13 @@ minetest.register_tool("technic:chainsaw", {
}) })
local mesecons_button = minetest.get_modpath("mesecons_button") local mesecons_button = minetest.get_modpath("mesecons_button")
local trigger = mesecons_button and "mesecons_button:button_off" or "default:mese_crystal_fragment" local trigger = nil
if minetest.get_modpath("mcl_core") then
trigger = "mesecons_button:button_stone_off"
else
trigger = mesecons_button and "mesecons_button:button_off" or "default:mese_crystal_fragment"
end
minetest.register_craft({ minetest.register_craft({
output = "technic:chainsaw", output = "technic:chainsaw",

View File

@ -6,9 +6,9 @@ local S = technic.getter
minetest.register_craft({ minetest.register_craft({
output = 'technic:mining_drill', output = 'technic:mining_drill',
recipe = { recipe = {
{'default:tin_ingot', 'technic:diamond_drill_head', 'default:tin_ingot'}, {tin_ingrediant, 'technic:diamond_drill_head', tin_ingrediant},
{'technic:stainless_steel_ingot', 'basic_materials:motor', 'technic:stainless_steel_ingot'}, {'technic:stainless_steel_ingot', 'basic_materials:motor', 'technic:stainless_steel_ingot'},
{'', 'technic:red_energy_crystal', 'default:copper_ingot'}, {'', 'technic:red_energy_crystal', copper_ingrediant},
} }
}) })
minetest.register_craft({ minetest.register_craft({

View File

@ -11,25 +11,25 @@ local S = technic.getter
minetest.register_craft({ minetest.register_craft({
output = "technic:laser_mk1", output = "technic:laser_mk1",
recipe = { recipe = {
{"default:diamond", "basic_materials:brass_ingot", "default:obsidian_glass"}, {diamond_ingrediant, "basic_materials:brass_ingot", obsidian_glass_ingrediant},
{"", "basic_materials:brass_ingot", "technic:red_energy_crystal"}, {"", "basic_materials:brass_ingot", "technic:red_energy_crystal"},
{"", "", "default:copper_ingot"}, {"", "", copper_ingrediant},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = "technic:laser_mk2", output = "technic:laser_mk2",
recipe = { recipe = {
{"default:diamond", "technic:carbon_steel_ingot", "technic:laser_mk1"}, {diamond_ingrediant, "technic:carbon_steel_ingot", "technic:laser_mk1"},
{"", "technic:carbon_steel_ingot", "technic:green_energy_crystal"}, {"", "technic:carbon_steel_ingot", "technic:green_energy_crystal"},
{"", "", "default:copper_ingot"}, {"", "", copper_ingrediant},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = "technic:laser_mk3", output = "technic:laser_mk3",
recipe = { recipe = {
{"default:diamond", "technic:carbon_steel_ingot", "technic:laser_mk2"}, {diamond_ingrediant, "technic:carbon_steel_ingot", "technic:laser_mk2"},
{"", "technic:carbon_steel_ingot", "technic:blue_energy_crystal"}, {"", "technic:carbon_steel_ingot", "technic:blue_energy_crystal"},
{"", "", "default:copper_ingot"}, {"", "", copper_ingrediant},
} }
}) })

View File

@ -90,9 +90,9 @@ minetest.register_tool("technic:sonic_screwdriver", {
minetest.register_craft({ minetest.register_craft({
output = "technic:sonic_screwdriver", output = "technic:sonic_screwdriver",
recipe = { recipe = {
{"", "default:diamond", ""}, {"", diamond_ingrediant, ""},
{"mesecons_materials:fiber", "technic:battery", "mesecons_materials:fiber"}, {mesecons_fiber_ingrediant, "technic:battery", mesecons_fiber_ingrediant},
{"mesecons_materials:fiber", "moreores:mithril_ingot", "mesecons_materials:fiber"} {mesecons_fiber_ingrediant, "moreores:mithril_ingot", mesecons_fiber_ingrediant}
} }
}) })

View File

@ -38,8 +38,8 @@ minetest.register_tool("technic:treetap", {
minetest.register_craft({ minetest.register_craft({
output = "technic:treetap", output = "technic:treetap",
recipe = { recipe = {
{"pipeworks:tube_1", "group:wood", "default:stick"}, {"pipeworks:tube_1", "group:wood", stick_ingrediant},
{"", "default:stick", "default:stick"} {"", stick_ingrediant, stick_ingrediant}
}, },
}) })

View File

@ -1,18 +1,18 @@
minetest.register_craft({ minetest.register_craft({
output = 'technic:copper_chest 1', output = 'technic:copper_chest 1',
recipe = { recipe = {
{'default:copper_ingot','default:copper_ingot','default:copper_ingot'}, {copper_ingrediant,copper_ingrediant,copper_ingrediant},
{'default:copper_ingot','technic:iron_chest','default:copper_ingot'}, {copper_ingrediant,'technic:iron_chest',copper_ingrediant},
{'default:copper_ingot','default:copper_ingot','default:copper_ingot'}, {copper_ingrediant,copper_ingrediant,copper_ingrediant},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'technic:copper_locked_chest 1', output = 'technic:copper_locked_chest 1',
recipe = { recipe = {
{'default:copper_ingot','default:copper_ingot','default:copper_ingot'}, {copper_ingrediant,copper_ingrediant,copper_ingrediant},
{'default:copper_ingot','technic:iron_locked_chest','default:copper_ingot'}, {copper_ingrediant,'technic:iron_locked_chest',copper_ingrediant},
{'default:copper_ingot','default:copper_ingot','default:copper_ingot'}, {copper_ingrediant,copper_ingrediant,copper_ingrediant},
} }
}) })

View File

@ -11,18 +11,18 @@ for _, material in ipairs(material_list) do
minetest.register_craft({ minetest.register_craft({
output = 'technic:gold_chest', output = 'technic:gold_chest',
recipe = { recipe = {
{'default:gold_ingot','default:gold_ingot','default:gold_ingot'}, {gold_ingot_ingrediant,gold_ingot_ingrediant,gold_ingot_ingrediant},
{'default:gold_ingot',"technic:"..material.."_chest",'default:gold_ingot'}, {gold_ingot_ingrediant,"technic:"..material.."_chest",gold_ingot_ingrediant},
{'default:gold_ingot','default:gold_ingot','default:gold_ingot'}, {gold_ingot_ingrediant,gold_ingot_ingrediant,gold_ingot_ingrediant},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'technic:gold_locked_chest', output = 'technic:gold_locked_chest',
recipe = { recipe = {
{'default:gold_ingot','default:gold_ingot','default:gold_ingot'}, {gold_ingot_ingrediant,gold_ingot_ingrediant,gold_ingot_ingrediant},
{'default:gold_ingot',"technic:"..material.."_locked_chest",'default:gold_ingot'}, {gold_ingot_ingrediant,"technic:"..material.."_locked_chest",gold_ingot_ingrediant},
{'default:gold_ingot','default:gold_ingot','default:gold_ingot'}, {gold_ingot_ingrediant,gold_ingot_ingrediant,gold_ingot_ingrediant},
} }
}) })
end end

View File

@ -4,6 +4,65 @@
local modpath = minetest.get_modpath("technic_chests") local modpath = minetest.get_modpath("technic_chests")
-- Mineclone2 Support
stone_sounds = nil
if minetest.get_modpath("mcl_sounds") then
stone_sounds = mcl_sounds.node_sound_stone_defaults()
else
stone_sounds = default.node_sound_stone_defaults()
end
node_sounds = nil
if minetest.get_modpath("mcl_sounds") then
node_sounds = mcl_sounds.node_sound_defaults()
else
node_sounds = default.node_sound_defaults()
end
wood_sounds = nil
if minetest.get_modpath("mcl_sounds") then
wood_sounds = mcl_sounds.node_sound_wood_defaults()
else
wood_sounds = default.node_sound_wood_defaults()
end
-- Mineclone2 Recipes
chest_ingrediant = nil
if minetest.get_modpath("mcl_core") then
chest_ingrediant = "mcl_chests:chest"
else
chest_ingrediant = "default:chest"
end
copper_ingrediant = nil
if minetest.get_modpath("mcl_core") then
copper_ingrediant = "mcl_copper:copper_ingot"
else
copper_ingrediant = 'default:copper_ingot'
end
gold_ingot_ingrediant = nil
if minetest.get_modpath("mcl_core") then
gold_ingot_ingrediant = "mcl_core:gold_ingot"
else
gold_ingot_ingrediant = 'default:gold_ingot'
end
granite_ingrediant = nil
if minetest.get_modpath("mcl_core") then
granite_ingrediant = "mcl_core:granite"
else
granite_ingrediant = 'technic:granite'
end
granite_bricks_ingrediant = nil
if minetest.get_modpath("mcl_core") then
granite_bricks_ingrediant = "mcl_core:granite_smooth"
else
granite_bricks_ingrediant = 'technic:granite_bricks'
end
technic = rawget(_G, "technic") or {} technic = rawget(_G, "technic") or {}
technic.chests = {} technic.chests = {}

View File

@ -9,11 +9,12 @@ minetest.register_craft({
output = 'technic:iron_chest 1', output = 'technic:iron_chest 1',
recipe = { recipe = {
{cast_iron_ingot,cast_iron_ingot,cast_iron_ingot}, {cast_iron_ingot,cast_iron_ingot,cast_iron_ingot},
{cast_iron_ingot,'default:chest',cast_iron_ingot}, {cast_iron_ingot,chest_ingrediant,cast_iron_ingot},
{cast_iron_ingot,cast_iron_ingot,cast_iron_ingot}, {cast_iron_ingot,cast_iron_ingot,cast_iron_ingot},
} }
}) })
if minetest.get_modpath("default") then
minetest.register_craft({ minetest.register_craft({
output = 'technic:iron_locked_chest 1', output = 'technic:iron_locked_chest 1',
recipe = { recipe = {
@ -22,6 +23,7 @@ minetest.register_craft({
{cast_iron_ingot,cast_iron_ingot,cast_iron_ingot}, {cast_iron_ingot,cast_iron_ingot,cast_iron_ingot},
} }
}) })
end
minetest.register_craft({ minetest.register_craft({
output = 'technic:iron_locked_chest 1', output = 'technic:iron_locked_chest 1',

View File

@ -1,3 +1,4 @@
name = technic_chests name = technic_chests
depends = default, basic_materials depends = basic_materials
optional_depends = moreblocks, moreores, pipeworks, intllib, tubelib optional_depends = moreblocks, moreores, pipeworks, intllib, tubelib, default, mcl_core
supported_games = minetest_game,mineclone2

View File

@ -298,7 +298,7 @@ function technic.chests:definition(name, data)
groups = self.groups, groups = self.groups,
tube = self.tube, tube = self.tube,
legacy_facedir_simple = true, legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
after_place_node = locked_after_place, after_place_node = locked_after_place,
after_dig_node = pipeworks.after_dig, after_dig_node = pipeworks.after_dig,

View File

@ -19,7 +19,7 @@ if technic_cnc.use_technic then
minetest.register_craft({ minetest.register_craft({
output = 'technic:cnc', output = 'technic:cnc',
recipe = { recipe = {
{'default:glass', 'technic:diamond_drill_head', 'default:glass'}, {glass_ingrediant, 'technic:diamond_drill_head', glass_ingrediant},
{'technic:control_logic_unit', 'technic:machine_casing', 'basic_materials:motor'}, {'technic:control_logic_unit', 'technic:machine_casing', 'basic_materials:motor'},
{'technic:carbon_steel_ingot', 'technic:lv_cable', 'technic:carbon_steel_ingot'}, {'technic:carbon_steel_ingot', 'technic:lv_cable', 'technic:carbon_steel_ingot'},
}, },
@ -34,9 +34,9 @@ else
minetest.register_craft({ minetest.register_craft({
output = 'technic:cnc', output = 'technic:cnc',
recipe = { recipe = {
{'default:glass', 'default:diamond', 'default:glass'}, {glass_ingrediant, diamond_ingrediant, glass_ingrediant},
{'basic_materials:ic', 'default:steelblock', 'basic_materials:motor'}, {'basic_materials:ic', 'default:steelblock', 'basic_materials:motor'},
{'default:steel_ingot', 'default:mese', 'default:steel_ingot'}, {'default:steel_ingot', mese_block_ingrediant, 'default:steel_ingot'},
}, },
}) })

View File

@ -1,131 +1,130 @@
-- REGISTER MATERIALS AND PROPERTIES FOR NONCUBIC ELEMENTS:
-----------------------------------------------------------
local S = technic_cnc.getter local S = technic_cnc.getter
-- Conditional variables for MineClone2 compatibility
local is_mcl = minetest.get_modpath("mcl_core")
-- Textures and names for MineClone2
local dirt_texture = is_mcl and "default_dirt.png" or "default_dirt.png"
local grass_texture = is_mcl and "default_grass.png" or "default_grass.png"
local wood_texture = is_mcl and "default_wood.png" or "default_wood.png"
local stone_texture = is_mcl and "default_stone.png" or "default_stone.png"
local cobble_texture = is_mcl and "default_cobble.png" or "default_cobble.png"
local brick_texture = is_mcl and "default_brick.png" or "default_brick.png"
local sandstone_texture = is_mcl and "default_sandstone.png" or "default_sandstone.png"
local leaves_texture = is_mcl and "default_leaves.png" or "default_leaves.png"
local tree_texture = is_mcl and "default_tree.png" or "default_tree.png"
local bronzeblock_texture = is_mcl and "mcl_core_bronze_block.png" or "default_bronze_block.png"
-- DIRT -- DIRT
------- technic_cnc.register_all(is_mcl and "mcl_core:dirt" or "default:dirt",
technic_cnc.register_all("default:dirt",
{snappy=2,choppy=2,oddly_breakable_by_hand=3,not_in_creative_inventory=1}, {snappy=2,choppy=2,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
{"default_dirt.png"}, {dirt_texture},
S("Dirt")) S("Dirt"))
-- (DIRT WITH) GRASS -- (DIRT WITH) GRASS
-------------------- technic_cnc.register_all(is_mcl and "mcl_core:dirt_with_grass" or "default: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}, {snappy=2,choppy=2,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
{"default_grass.png"}, {grass_texture},
S("Grassy dirt")) S("Grassy dirt"))
-- WOOD -- WOOD
------- technic_cnc.register_all(is_mcl and "mcl_core:wood" or "default:wood",
technic_cnc.register_all("default:wood",
{snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1}, {snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1},
{"default_wood.png"}, {wood_texture},
S("Wooden")) S("Wooden"))
-- STONE -- STONE
-------- technic_cnc.register_all(is_mcl and "mcl_core:stone" or "default:stone",
technic_cnc.register_all("default:stone",
{cracky=3, not_in_creative_inventory=1}, {cracky=3, not_in_creative_inventory=1},
{"default_stone.png"}, {stone_texture},
S("Stone")) S("Stone"))
-- COBBLE -- COBBLE
--------- technic_cnc.register_all(is_mcl and "mcl_core:cobble" or "default:cobble",
technic_cnc.register_all("default:cobble",
{cracky=3, not_in_creative_inventory=1}, {cracky=3, not_in_creative_inventory=1},
{"default_cobble.png"}, {cobble_texture},
S("Cobble")) S("Cobble"))
-- BRICK -- BRICK
-------- technic_cnc.register_all(is_mcl and "mcl_core:brick" or "default:brick",
technic_cnc.register_all("default:brick",
{cracky=3, not_in_creative_inventory=1}, {cracky=3, not_in_creative_inventory=1},
{"default_brick.png"}, {brick_texture},
S("Brick")) S("Brick"))
-- SANDSTONE -- SANDSTONE
------------ technic_cnc.register_all(is_mcl and "mcl_core:sandstone" or "default:sandstone",
technic_cnc.register_all("default:sandstone",
{crumbly=2, cracky=3, not_in_creative_inventory=1}, {crumbly=2, cracky=3, not_in_creative_inventory=1},
{"default_sandstone.png"}, {sandstone_texture},
S("Sandstone")) S("Sandstone"))
-- LEAVES -- LEAVES
--------- technic_cnc.register_all(is_mcl and "mcl_core:leaves" or "default:leaves",
technic_cnc.register_all("default:leaves",
{snappy=2, choppy=2, oddly_breakable_by_hand=3, not_in_creative_inventory=1}, {snappy=2, choppy=2, oddly_breakable_by_hand=3, not_in_creative_inventory=1},
{"default_leaves.png"}, {leaves_texture},
S("Leaves")) S("Leaves"))
-- TREE -- TREE
------- technic_cnc.register_all(is_mcl and "mcl_core:tree" or "default:tree",
technic_cnc.register_all("default:tree",
{snappy=1, choppy=2, oddly_breakable_by_hand=2, flammable=3, wood=1, not_in_creative_inventory=1}, {snappy=1, choppy=2, oddly_breakable_by_hand=2, flammable=3, wood=1, not_in_creative_inventory=1},
{"default_tree.png"}, {tree_texture},
S("Tree")) S("Tree"))
-- Bronze -- Bronze
-------- if not is_mcl then
technic_cnc.register_all("default:bronzeblock", technic_cnc.register_all("default:bronzeblock",
{cracky=1, level=2, not_in_creative_inventory=1}, {cracky=1, level=2, not_in_creative_inventory=1},
{"default_bronze_block.png"}, {bronzeblock_texture},
S("Bronze")) S("Bronze"))
end
local steeltex = is_mcl and "default_steel_block.png" or "default_steel_block.png"
local steeltex = "default_steel_block.png" local steelname = is_mcl and "Iron" or "Steel"
local steelname = "Steel"
if technic_cnc.technic_modpath then if technic_cnc.technic_modpath then
if not is_mcl then
steeltex = "technic_wrought_iron_block.png" steeltex = "technic_wrought_iron_block.png"
steelname = "Wrought Iron" steelname = "Wrought Iron"
-- Stainless Steel -- Stainless Steel
--------
technic_cnc.register_all("technic:stainless_steel_block", technic_cnc.register_all("technic:stainless_steel_block",
{cracky=1, level=2, not_in_creative_inventory=1}, {cracky=1, level=2, not_in_creative_inventory=1},
{"technic_stainless_steel_block.png"}, {"technic_stainless_steel_block.png"},
S("Stainless Steel")) S("Stainless Steel"))
-- Marble -- Marble
------------
technic_cnc.register_all("technic:marble", technic_cnc.register_all("technic:marble",
{cracky=3, not_in_creative_inventory=1}, {cracky=3, not_in_creative_inventory=1},
{"technic_marble.png"}, {"technic_marble.png"},
S("Marble")) S("Marble"))
-- Granite
------------
technic_cnc.register_all("technic:granite",
{cracky=1, not_in_creative_inventory=1},
{"technic_granite.png"},
S("Granite"))
-- Blast-resistant concrete -- Blast-resistant concrete
---------------------------
technic_cnc.register_all("technic:blast_resistant_concrete", technic_cnc.register_all("technic:blast_resistant_concrete",
{cracky=2, level=2, not_in_creative_inventory=1}, {cracky=2, level=2, not_in_creative_inventory=1},
{"technic_blast_resistant_concrete_block.png"}, {"technic_blast_resistant_concrete_block.png"},
S("Blast-resistant concrete")) S("Blast-resistant concrete"))
end
end end
-- STEEL -- STEEL
--------------- technic_cnc.register_all(is_mcl and "mcl_core:iron_block" or "default:steelblock",
technic_cnc.register_all("default:steelblock",
{cracky=1, level=2, not_in_creative_inventory=1}, {cracky=1, level=2, not_in_creative_inventory=1},
{steeltex}, {steeltex},
S(steelname)) S(steelname))
-- CONCRETE AND CEMENT -- CONCRETE AND CEMENT
---------------------- if minetest.get_modpath("basic_materials") then
technic_cnc.register_all("basic_materials:concrete_block",
technic_cnc.register_all("basic_materials:concrete_block",
{cracky=2, level=2, not_in_creative_inventory=1}, {cracky=2, level=2, not_in_creative_inventory=1},
{"basic_materials_concrete_block.png"}, {"basic_materials_concrete_block.png"},
S("Concrete")) S("Concrete"))
technic_cnc.register_all("basic_materials:cement_block", technic_cnc.register_all("basic_materials:cement_block",
{cracky=2, level=2, not_in_creative_inventory=1}, {cracky=2, level=2, not_in_creative_inventory=1},
{"basic_materials_cement_block.png"}, {"basic_materials_cement_block.png"},
S("Cement")) S("Cement"))
technic_cnc.register_all("basic_materials:brass_block", technic_cnc.register_all("basic_materials:brass_block",
{cracky=1, level=2, not_in_creative_inventory=1}, {cracky=1, level=2, not_in_creative_inventory=1},
{"basic_materials_brass_block.png"}, {"basic_materials_brass_block.png"},
S("Brass block")) S("Brass block"))
end

View File

@ -1,3 +1,4 @@
name = technic_cnc name = technic_cnc
depends = default, basic_materials depends = basic_materials
optional_depends = technic optional_depends = technic, default, mcl_core
supported_games = minetest_game,mineclone2

View File

@ -48,12 +48,21 @@ minetest.register_craftitem(":technic:sulfur_lump", {
inventory_image = "technic_sulfur_lump.png", inventory_image = "technic_sulfur_lump.png",
}) })
if minetest.get_modpath("default") then
minetest.register_alias("technic:wrought_iron_ingot", "default:steel_ingot") minetest.register_alias("technic:wrought_iron_ingot", "default:steel_ingot")
minetest.override_item("default:steel_ingot", { minetest.override_item("default:steel_ingot", {
description = S("Wrought Iron Ingot"), description = S("Wrought Iron Ingot"),
inventory_image = "technic_wrought_iron_ingot.png", inventory_image = "technic_wrought_iron_ingot.png",
}) })
elseif minetest.get_modpath("mcl_core") then
minetest.register_alias("technic:wrought_iron_ingot", "mcl_core:iron_ingot")
minetest.override_item("mcl_core:iron_ingot", {
description = S("Wrought Iron Ingot"),
inventory_image = "technic_wrought_iron_ingot.png",
})
end
minetest.register_craftitem(":technic:cast_iron_ingot", { minetest.register_craftitem(":technic:cast_iron_ingot", {
description = S("Cast Iron Ingot"), description = S("Cast Iron Ingot"),
@ -127,6 +136,9 @@ minetest.register_craft({
output = "technic:cast_iron_ingot", output = "technic:cast_iron_ingot",
}) })
minetest.register_craft({ minetest.register_craft({
type = 'cooking', type = 'cooking',
recipe = "technic:cast_iron_ingot", recipe = "technic:cast_iron_ingot",

View File

@ -1,5 +1,34 @@
local modpath = minetest.get_modpath("technic_worldgen") local modpath = minetest.get_modpath("technic_worldgen")
-- Mineclone Support
stone_sounds = nil
if minetest.get_modpath("mcl_sounds") then
stone_sounds = mcl_sounds.node_sound_stone_defaults()
else
stone_sounds = default.node_sound_stone_defaults()
end
node_sounds = nil
if minetest.get_modpath("mcl_sounds") then
node_sounds = mcl_sounds.node_sound_defaults()
else
node_sounds = default.node_sound_defaults()
end
wood_sounds = nil
if minetest.get_modpath("mcl_sounds") then
wood_sounds = mcl_sounds.node_sound_wood_defaults()
else
wood_sounds = default.node_sound_wood_defaults()
end
leaves_sounds = nil
if minetest.get_modpath("mcl_sounds") then
leaves_sounds = mcl_sounds.node_sound_leaves_defaults()
else
leaves_sounds = default.node_sound_leaves_defaults()
end
technic = rawget(_G, "technic") or {} technic = rawget(_G, "technic") or {}
technic.worldgen = { technic.worldgen = {
gettext = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end, gettext = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end,

View File

@ -1,3 +1,4 @@
name = technic_worldgen name = technic_worldgen
depends = default, basic_materials depends = basic_materials
optional_depends = intllib, mg, doors, farming, glooptest, mesecons_doors, vessels optional_depends = intllib, mg, doors, farming, glooptest, mesecons_doors, vessels, default, mcl_core, mcl_sounds
supported_games = minetest_game,mineclone2

View File

@ -6,7 +6,7 @@ minetest.register_node( ":technic:mineral_uranium", {
tiles = { "default_stone.png^technic_mineral_uranium.png" }, tiles = { "default_stone.png^technic_mineral_uranium.png" },
is_ground_content = true, is_ground_content = true,
groups = {cracky=3, radioactive=1}, groups = {cracky=3, radioactive=1},
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
drop = "technic:uranium_lump", drop = "technic:uranium_lump",
}) })
@ -15,7 +15,7 @@ minetest.register_node( ":technic:mineral_chromium", {
tiles = { "default_stone.png^technic_mineral_chromium.png" }, tiles = { "default_stone.png^technic_mineral_chromium.png" },
is_ground_content = true, is_ground_content = true,
groups = {cracky=3}, groups = {cracky=3},
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
drop = "technic:chromium_lump", drop = "technic:chromium_lump",
}) })
@ -24,7 +24,7 @@ minetest.register_node( ":technic:mineral_zinc", {
tiles = { "default_stone.png^technic_mineral_zinc.png" }, tiles = { "default_stone.png^technic_mineral_zinc.png" },
is_ground_content = true, is_ground_content = true,
groups = {cracky=3}, groups = {cracky=3},
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
drop = "technic:zinc_lump", drop = "technic:zinc_lump",
}) })
@ -33,7 +33,7 @@ minetest.register_node( ":technic:mineral_lead", {
tiles = { "default_stone.png^technic_mineral_lead.png" }, tiles = { "default_stone.png^technic_mineral_lead.png" },
is_ground_content = true, is_ground_content = true,
groups = {cracky=3}, groups = {cracky=3},
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
drop = "technic:lead_lump", drop = "technic:lead_lump",
}) })
@ -42,32 +42,35 @@ minetest.register_node( ":technic:mineral_sulfur", {
tiles = { "default_stone.png^technic_mineral_sulfur.png" }, tiles = { "default_stone.png^technic_mineral_sulfur.png" },
is_ground_content = true, is_ground_content = true,
groups = {cracky=3}, groups = {cracky=3},
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
drop = "technic:sulfur_lump", drop = "technic:sulfur_lump",
}) })
if minetest.get_modpath("default") then
minetest.register_node( ":technic:granite", { minetest.register_node( ":technic:granite", {
description = S("Granite"), description = S("Granite"),
tiles = { "technic_granite.png" }, tiles = { "technic_granite.png" },
is_ground_content = true, is_ground_content = true,
groups = {cracky=1}, groups = {cracky=1},
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
}) })
minetest.register_node( ":technic:granite_bricks", { minetest.register_node( ":technic:granite_bricks", {
description = S("Granite Bricks"), description = S("Granite Bricks"),
tiles = { "technic_granite_bricks.png" }, tiles = { "technic_granite_bricks.png" },
is_ground_content = false, is_ground_content = false,
groups = {cracky=1}, groups = {cracky=1},
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
}) })
end
minetest.register_node( ":technic:marble", { minetest.register_node( ":technic:marble", {
description = S("Marble"), description = S("Marble"),
tiles = { "technic_marble.png" }, tiles = { "technic_marble.png" },
is_ground_content = true, is_ground_content = true,
groups = {cracky=3, marble=1}, groups = {cracky=3, marble=1},
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
}) })
minetest.register_node( ":technic:marble_bricks", { minetest.register_node( ":technic:marble_bricks", {
@ -75,7 +78,7 @@ minetest.register_node( ":technic:marble_bricks", {
tiles = { "technic_marble_bricks.png" }, tiles = { "technic_marble_bricks.png" },
is_ground_content = false, is_ground_content = false,
groups = {cracky=3}, groups = {cracky=3},
sounds = default.node_sound_stone_defaults(), sounds = stone_sounds,
}) })
minetest.register_node(":technic:uranium_block", { minetest.register_node(":technic:uranium_block", {
@ -83,7 +86,7 @@ minetest.register_node(":technic:uranium_block", {
tiles = { "technic_uranium_block.png" }, tiles = { "technic_uranium_block.png" },
is_ground_content = true, is_ground_content = true,
groups = {uranium_block=1, cracky=1, level=2, radioactive=2}, groups = {uranium_block=1, cracky=1, level=2, radioactive=2},
sounds = default.node_sound_stone_defaults() sounds = stone_sounds
}) })
minetest.register_node(":technic:chromium_block", { minetest.register_node(":technic:chromium_block", {
@ -91,7 +94,7 @@ minetest.register_node(":technic:chromium_block", {
tiles = { "technic_chromium_block.png" }, tiles = { "technic_chromium_block.png" },
is_ground_content = true, is_ground_content = true,
groups = {cracky=1, level=2}, groups = {cracky=1, level=2},
sounds = default.node_sound_stone_defaults() sounds = stone_sounds
}) })
minetest.register_node(":technic:zinc_block", { minetest.register_node(":technic:zinc_block", {
@ -99,7 +102,7 @@ minetest.register_node(":technic:zinc_block", {
tiles = { "technic_zinc_block.png" }, tiles = { "technic_zinc_block.png" },
is_ground_content = true, is_ground_content = true,
groups = {cracky=1, level=2}, groups = {cracky=1, level=2},
sounds = default.node_sound_stone_defaults() sounds = stone_sounds
}) })
minetest.register_node(":technic:lead_block", { minetest.register_node(":technic:lead_block", {
@ -107,22 +110,24 @@ minetest.register_node(":technic:lead_block", {
tiles = { "technic_lead_block.png" }, tiles = { "technic_lead_block.png" },
is_ground_content = true, is_ground_content = true,
groups = {cracky=1, level=2}, groups = {cracky=1, level=2},
sounds = default.node_sound_stone_defaults() sounds = stone_sounds
}) })
if minetest.get_modpath("default") then
minetest.register_alias("technic:wrought_iron_block", "default:steelblock") minetest.register_alias("technic:wrought_iron_block", "default:steelblock")
minetest.override_item("default:steelblock", { minetest.override_item("default:steelblock", {
description = S("Wrought Iron Block"), description = S("Wrought Iron Block"),
tiles = { "technic_wrought_iron_block.png" }, tiles = { "technic_wrought_iron_block.png" },
}) })
end
minetest.register_node(":technic:cast_iron_block", { minetest.register_node(":technic:cast_iron_block", {
description = S("Cast Iron Block"), description = S("Cast Iron Block"),
tiles = { "technic_cast_iron_block.png" }, tiles = { "technic_cast_iron_block.png" },
is_ground_content = true, is_ground_content = true,
groups = {cracky=1, level=2}, groups = {cracky=1, level=2},
sounds = default.node_sound_stone_defaults() sounds = stone_sounds
}) })
minetest.register_node(":technic:carbon_steel_block", { minetest.register_node(":technic:carbon_steel_block", {
@ -130,7 +135,7 @@ minetest.register_node(":technic:carbon_steel_block", {
tiles = { "technic_carbon_steel_block.png" }, tiles = { "technic_carbon_steel_block.png" },
is_ground_content = true, is_ground_content = true,
groups = {cracky=1, level=2}, groups = {cracky=1, level=2},
sounds = default.node_sound_stone_defaults() sounds = stone_sounds
}) })
minetest.register_node(":technic:stainless_steel_block", { minetest.register_node(":technic:stainless_steel_block", {
@ -138,16 +143,18 @@ minetest.register_node(":technic:stainless_steel_block", {
tiles = { "technic_stainless_steel_block.png" }, tiles = { "technic_stainless_steel_block.png" },
is_ground_content = true, is_ground_content = true,
groups = {cracky=1, level=2}, groups = {cracky=1, level=2},
sounds = default.node_sound_stone_defaults() sounds = stone_sounds
}) })
if minetest.get_modpath("default") then
minetest.register_craft({ minetest.register_craft({
output = 'technic:granite_bricks 4', output = 'technic:granite_bricks 4',
recipe = { recipe = {
{'technic:granite','technic:granite'}, {granite_ingrediant,granite_ingrediant},
{'technic:granite','technic:granite'} {granite_ingrediant,granite_ingrediant}
} }
}) })
end
minetest.register_craft({ minetest.register_craft({
output = 'technic:marble_bricks 4', output = 'technic:marble_bricks 4',
@ -172,6 +179,8 @@ local function for_each_registered_node(action)
end end
end end
if minetest.get_modpath("default") then
for_each_registered_node(function(node_name, node_def) for_each_registered_node(function(node_name, node_def)
if node_name ~= "default:steelblock" and if node_name ~= "default:steelblock" and
node_name:find("steelblock", 1, true) and node_name:find("steelblock", 1, true) and
@ -202,3 +211,4 @@ for_each_registered_node(function(node_name, node_def)
end end
end) end)
end

View File

@ -38,10 +38,15 @@ local lead_params = {
} }
local lead_threshold = 0.3 local lead_threshold = 0.3
local stone_id = minetest.get_modpath("mcl_core") and "mcl_core:stone" or "default:stone"
local lava_source_id = minetest.get_modpath("mcl_core") and "mcl_core:lava_source" or "default:lava_source"
local lava_flowing_id = minetest.get_modpath("mcl_core") and "mcl_core:lava_flowing" or "default:lava_flowing"
-- Uranium
minetest.register_ore({ minetest.register_ore({
ore_type = "scatter", ore_type = "scatter",
ore = "technic:mineral_uranium", ore = "technic:mineral_uranium",
wherein = "default:stone", wherein = stone_id,
clust_scarcity = 8*8*8, clust_scarcity = 8*8*8,
clust_num_ores = 4, clust_num_ores = 4,
clust_size = 3, clust_size = 3,
@ -51,10 +56,11 @@ minetest.register_ore({
noise_threshold = uranium_threshold, noise_threshold = uranium_threshold,
}) })
-- Chromium
minetest.register_ore({ minetest.register_ore({
ore_type = "scatter", ore_type = "scatter",
ore = "technic:mineral_chromium", ore = "technic:mineral_chromium",
wherein = "default:stone", wherein = stone_id,
clust_scarcity = 8*8*8, clust_scarcity = 8*8*8,
clust_num_ores = 2, clust_num_ores = 2,
clust_size = 3, clust_size = 3,
@ -64,24 +70,11 @@ minetest.register_ore({
noise_threshold = chromium_threshold, noise_threshold = chromium_threshold,
}) })
minetest.register_ore({ -- Zinc
ore_type = "scatter",
ore = "technic:mineral_chromium",
wherein = "default:stone",
clust_scarcity = 6*6*6,
clust_num_ores = 2,
clust_size = 3,
y_min = -31000,
y_max = -200,
flags = "absheight",
noise_params = chromium_params,
noise_threshold = chromium_threshold,
})
minetest.register_ore({ minetest.register_ore({
ore_type = "scatter", ore_type = "scatter",
ore = "technic:mineral_zinc", ore = "technic:mineral_zinc",
wherein = "default:stone", wherein = stone_id,
clust_scarcity = 8*8*8, clust_scarcity = 8*8*8,
clust_num_ores = 5, clust_num_ores = 5,
clust_size = 7, clust_size = 7,
@ -91,24 +84,11 @@ minetest.register_ore({
noise_threshold = zinc_threshold, noise_threshold = zinc_threshold,
}) })
minetest.register_ore({ -- Lead
ore_type = "scatter",
ore = "technic:mineral_zinc",
wherein = "default:stone",
clust_scarcity = 6*6*6,
clust_num_ores = 4,
clust_size = 3,
y_min = -31000,
y_max = -32,
flags = "absheight",
noise_params = zinc_params,
noise_threshold = zinc_threshold,
})
minetest.register_ore({ minetest.register_ore({
ore_type = "scatter", ore_type = "scatter",
ore = "technic:mineral_lead", ore = "technic:mineral_lead",
wherein = "default:stone", wherein = stone_id,
clust_scarcity = 9*9*9, clust_scarcity = 9*9*9,
clust_num_ores = 5, clust_num_ores = 5,
clust_size = 3, clust_size = 3,
@ -118,33 +98,6 @@ minetest.register_ore({
noise_threshold = lead_threshold, noise_threshold = lead_threshold,
}) })
minetest.register_ore({
ore_type = "scatter",
ore = "technic:mineral_lead",
wherein = "default:stone",
clust_scarcity = 8*8*8,
clust_num_ores = 5,
clust_size = 3,
y_min = -128,
y_max = -16,
noise_params = lead_params,
noise_threshold = lead_threshold,
})
minetest.register_ore({
ore_type = "scatter",
ore = "technic:mineral_lead",
wherein = "default:stone",
clust_scarcity = 6*6*6,
clust_num_ores = 5,
clust_size = 3,
y_min = -31000,
y_max = -128,
flags = "absheight",
noise_params = lead_params,
noise_threshold = lead_threshold,
})
-- Sulfur -- Sulfur
local sulfur_buf = {} local sulfur_buf = {}
local sulfur_noise local sulfur_noise
@ -156,9 +109,9 @@ minetest.register_on_generated(function(minp, maxp)
local pr = PseudoRandom(17 * minp.x + 42 * minp.y + 101 * minp.z) local pr = PseudoRandom(17 * minp.x + 42 * minp.y + 101 * minp.z)
sulfur_noise = sulfur_noise or minetest.get_perlin(9876, 3, 0.5, 100) sulfur_noise = sulfur_noise or minetest.get_perlin(9876, 3, 0.5, 100)
local c_lava = minetest.get_content_id("default:lava_source") local c_lava = minetest.get_content_id(lava_source_id)
local c_lava_flowing = minetest.get_content_id("default:lava_flowing") local c_lava_flowing = minetest.get_content_id(lava_flowing_id)
local c_stone = minetest.get_content_id("default:stone") local c_stone = minetest.get_content_id(stone_id)
local c_sulfur = minetest.get_content_id("technic:mineral_sulfur") local c_sulfur = minetest.get_content_id("technic:mineral_sulfur")
local grid_size = 5 local grid_size = 5
@ -189,12 +142,12 @@ minetest.register_on_generated(function(minp, maxp)
vm:write_to_map(data) vm:write_to_map(data)
end) end)
-- Marble and Granite (if enabled)
if technic.config:get_bool("enable_marble_generation") then if technic.config:get_bool("enable_marble_generation") then
minetest.register_ore({ minetest.register_ore({
ore_type = "sheet", ore_type = "sheet",
ore = "technic:marble", ore = "technic:marble",
wherein = "default:stone", wherein = stone_id,
clust_scarcity = 1, clust_scarcity = 1,
clust_num_ores = 1, clust_num_ores = 1,
clust_size = 3, clust_size = 3,
@ -207,12 +160,12 @@ if technic.config:get_bool("enable_marble_generation") then
} }
}) })
end end
if not minetest.get_modpath("mcl_core") then
if technic.config:get_bool("enable_granite_generation") then if technic.config:get_bool("enable_granite_generation") then
minetest.register_ore({ minetest.register_ore({
ore_type = "sheet", ore_type = "sheet",
ore = "technic:granite", ore = "technic:granite",
wherein = "default:stone", wherein = stone_id,
clust_scarcity = 1, clust_scarcity = 1,
clust_num_ores = 1, clust_num_ores = 1,
clust_size = 4, clust_size = 4,
@ -225,3 +178,4 @@ if technic.config:get_bool("enable_granite_generation") then
} }
}) })
end end
end

View File

@ -11,7 +11,7 @@ minetest.register_node(":moretrees:rubber_tree_sapling", {
paramtype = "light", paramtype = "light",
walkable = false, walkable = false,
groups = {dig_immediate=3, flammable=2, sapling=1}, groups = {dig_immediate=3, flammable=2, sapling=1},
sounds = default.node_sound_defaults(), sounds = node_sounds,
}) })
minetest.register_craft({ minetest.register_craft({
@ -26,7 +26,7 @@ minetest.register_node(":moretrees:rubber_tree_trunk", {
"technic_rubber_tree_full.png"}, "technic_rubber_tree_full.png"},
groups = {tree=1, snappy=1, choppy=2, oddly_breakable_by_hand=1, groups = {tree=1, snappy=1, choppy=2, oddly_breakable_by_hand=1,
flammable=2}, flammable=2},
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
}) })
minetest.register_node(":moretrees:rubber_tree_trunk_empty", { minetest.register_node(":moretrees:rubber_tree_trunk_empty", {
@ -35,7 +35,7 @@ minetest.register_node(":moretrees:rubber_tree_trunk_empty", {
"technic_rubber_tree_empty.png"}, "technic_rubber_tree_empty.png"},
groups = {tree=1, snappy=1, choppy=2, oddly_breakable_by_hand=1, groups = {tree=1, snappy=1, choppy=2, oddly_breakable_by_hand=1,
flammable=2, not_in_creative_inventory=1}, flammable=2, not_in_creative_inventory=1},
sounds = default.node_sound_wood_defaults(), sounds = wood_sounds,
}) })
minetest.register_node(":moretrees:rubber_tree_leaves", { minetest.register_node(":moretrees:rubber_tree_leaves", {
@ -55,7 +55,7 @@ minetest.register_node(":moretrees:rubber_tree_leaves", {
} }
} }
}, },
sounds = default.node_sound_leaves_defaults(), sounds = leaves_sounds,
}) })
technic.rubber_tree_model={ technic.rubber_tree_model={

View File

@ -1,3 +1,3 @@
name = wrench name = wrench
depends = default optional_depends = technic, technic_chests, technic_worldgen, intllib, default, mcl_core
optional_depends = technic, technic_chests, technic_worldgen, intllib supported_games = minetest_game,mineclone2

View File

@ -23,7 +23,7 @@ local STRING, FLOAT =
wrench.META_TYPE_FLOAT wrench.META_TYPE_FLOAT
wrench.registered_nodes = { wrench.registered_nodes = {
["default:chest"] = { [chest_ingrediant] = {
lists = {"main"}, lists = {"main"},
}, },
["default:chest_locked"] = { ["default:chest_locked"] = {