Added technic_compat mod to keep compatability functions accessable to the whole modpack

This commit is contained in:
James David Clarke
2023-12-28 09:54:09 +00:00
parent 9a231387a3
commit 588d36ba09
57 changed files with 460 additions and 440 deletions

View File

@ -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},
}
})

View File

@ -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},
}
})

View File

@ -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'},
},

View File

@ -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},
}
})

View File

@ -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},
}
})

View File

@ -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,

View File

@ -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},
}
})

View File

@ -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"},
}

View File

@ -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"))

View File

@ -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",

View File

@ -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",