mirror of
https://github.com/minetest-mods/technic.git
synced 2025-07-04 17:20:37 +02:00
Added technic_compat mod to keep compatability functions accessable to the whole modpack
This commit is contained in:
@ -4,9 +4,9 @@
|
||||
minetest.register_craft({
|
||||
output = 'technic:lv_alloy_furnace',
|
||||
recipe = {
|
||||
{technic.compat.brick_block_ingredient, technic.compat.brick_block_ingredient, technic.compat.brick_block_ingredient},
|
||||
{technic.compat.brick_block_ingredient, 'technic:machine_casing', technic.compat.brick_block_ingredient},
|
||||
{technic.compat.brick_block_ingredient, 'technic:lv_cable', technic.compat.brick_block_ingredient},
|
||||
{technic_compat.brick_block_ingredient, technic_compat.brick_block_ingredient, technic_compat.brick_block_ingredient},
|
||||
{technic_compat.brick_block_ingredient, 'technic:machine_casing', technic_compat.brick_block_ingredient},
|
||||
{technic_compat.brick_block_ingredient, 'technic:lv_cable', technic_compat.brick_block_ingredient},
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -4,9 +4,9 @@ minetest.register_alias("lv_cable", "technic:lv_cable")
|
||||
minetest.register_craft({
|
||||
output = 'technic:lv_cable 6',
|
||||
recipe = {
|
||||
{technic.compat.paper_ingredient, technic.compat.paper_ingredient, technic.compat.paper_ingredient},
|
||||
{technic.compat.copper_ingredient, technic.compat.copper_ingredient, technic.compat.copper_ingredient},
|
||||
{technic.compat.paper_ingredient, technic.compat.paper_ingredient, technic.compat.paper_ingredient},
|
||||
{technic_compat.paper_ingredient, technic_compat.paper_ingredient, technic_compat.paper_ingredient},
|
||||
{technic_compat.copper_ingredient, technic_compat.copper_ingredient, technic_compat.copper_ingredient},
|
||||
{technic_compat.paper_ingredient, technic_compat.paper_ingredient, technic_compat.paper_ingredient},
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -4,7 +4,7 @@ minetest.register_alias("compressor", "technic:lv_compressor")
|
||||
minetest.register_craft({
|
||||
output = 'technic:lv_compressor',
|
||||
recipe = {
|
||||
{technic.compat.stone_ingredient, 'basic_materials:motor', technic.compat.stone_ingredient},
|
||||
{technic_compat.stone_ingredient, 'basic_materials:motor', technic_compat.stone_ingredient},
|
||||
{'mesecons:piston', 'technic:machine_casing', 'mesecons:piston'},
|
||||
{'basic_materials:silver_wire', 'technic:lv_cable', 'basic_materials:silver_wire'},
|
||||
},
|
||||
|
@ -5,9 +5,9 @@
|
||||
minetest.register_craft({
|
||||
output = 'technic:electric_furnace',
|
||||
recipe = {
|
||||
{technic.compat.cobble_ingredient, technic.compat.cobble_ingredient, technic.compat.cobble_ingredient},
|
||||
{technic.compat.cobble_ingredient, 'technic:machine_casing', technic.compat.cobble_ingredient},
|
||||
{technic.compat.cobble_ingredient, 'technic:lv_cable', technic.compat.cobble_ingredient},
|
||||
{technic_compat.cobble_ingredient, technic_compat.cobble_ingredient, technic_compat.cobble_ingredient},
|
||||
{technic_compat.cobble_ingredient, 'technic:machine_casing', technic_compat.cobble_ingredient},
|
||||
{technic_compat.cobble_ingredient, 'technic:lv_cable', technic_compat.cobble_ingredient},
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -8,9 +8,9 @@ minetest.register_alias("lv_generator", "technic:lv_generator")
|
||||
minetest.register_craft({
|
||||
output = 'technic:lv_generator',
|
||||
recipe = {
|
||||
{technic.compat.stone_ingredient, technic.compat.furnace_ingredient, technic.compat.stone_ingredient},
|
||||
{technic.compat.stone_ingredient, 'technic:machine_casing', technic.compat.stone_ingredient},
|
||||
{technic.compat.stone_ingredient, 'technic:lv_cable', technic.compat.stone_ingredient},
|
||||
{technic_compat.stone_ingredient, technic_compat.furnace_ingredient, technic_compat.stone_ingredient},
|
||||
{technic_compat.stone_ingredient, 'technic:machine_casing', technic_compat.stone_ingredient},
|
||||
{technic_compat.stone_ingredient, 'technic:lv_cable', technic_compat.stone_ingredient},
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -10,9 +10,9 @@ local S = technic.getter
|
||||
minetest.register_craft({
|
||||
output = 'technic:geothermal',
|
||||
recipe = {
|
||||
{technic.compat.granite_ingredient, technic.compat.diamond_ingredient, technic.compat.granite_ingredient},
|
||||
{technic_compat.granite_ingredient, technic_compat.diamond_ingredient, technic_compat.granite_ingredient},
|
||||
{'basic_materials:copper_wire', 'technic:machine_casing', 'basic_materials:copper_wire'},
|
||||
{technic.compat.granite_ingredient, 'technic:lv_cable', technic.compat.granite_ingredient},
|
||||
{technic_compat.granite_ingredient, 'technic:lv_cable', technic_compat.granite_ingredient},
|
||||
},
|
||||
replacements = {
|
||||
{"basic_materials:copper_wire", "basic_materials:empty_spool"},
|
||||
@ -90,7 +90,7 @@ minetest.register_node("technic:geothermal", {
|
||||
technic_machine=1, technic_lv=1, pickaxey=3},
|
||||
paramtype2 = "facedir",
|
||||
legacy_facedir_simple = true,
|
||||
sounds = technic.compat.wood_sounds,
|
||||
sounds = technic_compat.wood_sounds,
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("infotext", S("Geothermal %s Generator"):format("LV"))
|
||||
@ -111,7 +111,7 @@ minetest.register_node("technic:geothermal_active", {
|
||||
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
|
||||
technic_machine=1, technic_lv=1, not_in_creative_inventory=1, pickaxey=3},
|
||||
legacy_facedir_simple = true,
|
||||
sounds = technic.compat.wood_sounds,
|
||||
sounds = technic_compat.wood_sounds,
|
||||
drop = "technic:geothermal",
|
||||
technic_run = run,
|
||||
_mcl_hardness = 3,
|
||||
|
@ -3,9 +3,9 @@ minetest.register_alias("grinder", "technic:lv_grinder")
|
||||
minetest.register_craft({
|
||||
output = 'technic:lv_grinder',
|
||||
recipe = {
|
||||
{technic.compat.desert_stone_ingredient, technic.compat.diamond_ingredient, technic.compat.desert_stone_ingredient},
|
||||
{technic.compat.desert_stone_ingredient, 'technic:machine_casing', technic.compat.desert_stone_ingredient},
|
||||
{technic.compat.granite_ingredient, 'technic:lv_cable', technic.compat.granite_ingredient},
|
||||
{technic_compat.desert_stone_ingredient, technic_compat.diamond_ingredient, technic_compat.desert_stone_ingredient},
|
||||
{technic_compat.desert_stone_ingredient, 'technic:machine_casing', technic_compat.desert_stone_ingredient},
|
||||
{technic_compat.granite_ingredient, 'technic:lv_cable', technic_compat.granite_ingredient},
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -161,7 +161,7 @@ technic.register_machine("LV", "technic:lv_lamp_active", technic.receiver)
|
||||
minetest.register_craft({
|
||||
output = "technic:lv_lamp",
|
||||
recipe = {
|
||||
{technic.compat.glass_ingredient, technic.compat.glass_ingredient, technic.compat.glass_ingredient},
|
||||
{technic_compat.glass_ingredient, technic_compat.glass_ingredient, technic_compat.glass_ingredient},
|
||||
{"technic:lv_led", "technic:lv_led", "technic:lv_led"},
|
||||
{"mesecons_materials:glue", "technic:lv_cable", "mesecons_materials:glue"},
|
||||
}
|
||||
|
@ -7,9 +7,9 @@ minetest.register_alias("music_player", "technic:music_player")
|
||||
minetest.register_craft({
|
||||
output = 'technic:music_player',
|
||||
recipe = {
|
||||
{'technic:chromium_ingot', technic.compat.diamond_ingredient, 'technic:chromium_ingot'},
|
||||
{technic.compat.diamond_ingredient, 'technic:machine_casing', technic.compat.diamond_ingredient},
|
||||
{technic.compat.mossy_cobble_ingredient, 'technic:lv_cable', technic.compat.mossy_cobble_ingredient},
|
||||
{'technic:chromium_ingot', technic_compat.diamond_ingredient, 'technic:chromium_ingot'},
|
||||
{technic_compat.diamond_ingredient, 'technic:machine_casing', technic_compat.diamond_ingredient},
|
||||
{technic_compat.mossy_cobble_ingredient, 'technic:lv_cable', technic_compat.mossy_cobble_ingredient},
|
||||
}
|
||||
})
|
||||
|
||||
@ -96,7 +96,7 @@ minetest.register_node("technic:music_player", {
|
||||
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
|
||||
technic_machine=1, technic_lv=1, pickaxey=3},
|
||||
connect_sides = {"bottom"},
|
||||
sounds = technic.compat.wood_sounds,
|
||||
sounds = technic_compat.wood_sounds,
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("infotext", S("%s Music Player"):format("LV"))
|
||||
|
@ -50,7 +50,7 @@ minetest.register_node("technic:solar_panel", {
|
||||
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
|
||||
technic_machine=1, technic_lv=1, pickaxey=3},
|
||||
connect_sides = {"bottom"},
|
||||
sounds = technic.compat.wood_sounds,
|
||||
sounds = technic_compat.wood_sounds,
|
||||
description = S("Small Solar %s Generator"):format("LV"),
|
||||
active = false,
|
||||
drawtype = "nodebox",
|
||||
|
@ -11,7 +11,7 @@ minetest.register_alias("water_mill", "technic:water_mill")
|
||||
minetest.register_craft({
|
||||
output = 'technic:water_mill',
|
||||
recipe = {
|
||||
{'technic:marble', technic.compat.diamond_ingredient, 'technic:marble'},
|
||||
{'technic:marble', technic_compat.diamond_ingredient, 'technic:marble'},
|
||||
{'group:wood', 'technic:machine_casing', 'group:wood'},
|
||||
{'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,
|
||||
technic_machine=1, technic_lv=1, pickaxey=3},
|
||||
legacy_facedir_simple = true,
|
||||
sounds = technic.compat.wood_sounds,
|
||||
sounds = technic_compat.wood_sounds,
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("infotext", S("Hydro %s Generator"):format("LV"))
|
||||
@ -102,7 +102,7 @@ minetest.register_node("technic:water_mill_active", {
|
||||
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
|
||||
technic_machine=1, technic_lv=1, not_in_creative_inventory=1, pickaxey=3},
|
||||
legacy_facedir_simple = true,
|
||||
sounds = technic.compat.wood_sounds,
|
||||
sounds = technic_compat.wood_sounds,
|
||||
drop = "technic:water_mill",
|
||||
technic_run = run,
|
||||
technic_disabled_machine_name = "technic:water_mill",
|
||||
|
Reference in New Issue
Block a user