Add FR item recipes

This commit is contained in:
Joachim Stolberg 2022-01-19 21:24:14 +01:00
parent 4b98b92eef
commit f6d4eba130
14 changed files with 120 additions and 70 deletions

View File

@ -33,6 +33,7 @@ local EXPECTED_MAGNET_NUM = 56
local CALL_RATE1 = 16 -- 2s * 16 = 32s local CALL_RATE1 = 16 -- 2s * 16 = 32s
local CALL_RATE2 = 8 -- 2s * 8 = 16s local CALL_RATE2 = 8 -- 2s * 8 = 16s
local DESCRIPTION = S("TA5 Fusion Reactor Controller") local DESCRIPTION = S("TA5 Fusion Reactor Controller")
local EX_POINTS = 80
local function count_trues(t) local function count_trues(t)
local cnt = 0 local cnt = 0
@ -198,9 +199,11 @@ local function on_receive_fields(pos, formname, fields, player)
return return
end end
local nvm = techage.get_nvm(pos) if techage.get_expoints(player) >= EX_POINTS then
State:state_button_event(pos, nvm, fields) local nvm = techage.get_nvm(pos)
--M(pos):set_string("formspec", formspec(State, pos, nvm)) State:state_button_event(pos, nvm, fields)
--M(pos):set_string("formspec", formspec(State, pos, nvm))
end
end end
minetest.register_node("techage:ta5_fr_controller_pas", { minetest.register_node("techage:ta5_fr_controller_pas", {
@ -268,3 +271,11 @@ minetest.register_node("techage:ta5_fr_controller_act", {
power.register_nodes({"techage:ta5_fr_controller_pas", "techage:ta5_fr_controller_act"}, Cable, "con", {"L", "R"}) power.register_nodes({"techage:ta5_fr_controller_pas", "techage:ta5_fr_controller_act"}, Cable, "con", {"L", "R"})
minetest.register_craft({
output = "techage:ta5_fr_controller_pas",
recipe = {
{'techage:aluminum', 'basic_materials:gold_wire', 'default:steel_ingot'},
{'techage:electric_cableS', 'techage:ta5_aichip2', 'techage:electric_cableS'},
{'default:steel_ingot', 'default:diamond', 'techage:aluminum'},
},
})

View File

@ -172,11 +172,11 @@ techage.register_node({"techage:ta5_generator", "techage:ta5_generator_on"}, {
end, end,
}) })
--minetest.register_craft({ minetest.register_craft({
-- output = "techage:ta5_generator", output = "techage:ta5_generator",
-- recipe = { recipe = {
-- {"", "dye:blue", ""}, {"", "dye:red", ""},
-- {"", "techage:generator", ""}, {"", "techage:ta4_generator", ""},
-- {"", "techage:ta4_wlanchip", ""}, {"", "techage:baborium_ingot", ""},
-- }, },
--}) })

View File

@ -99,11 +99,11 @@ techage.register_node({"techage:ta5_heatexchanger1"}, {
end, end,
}) })
--minetest.register_craft({ minetest.register_craft({
-- output = "techage:ta5_heatexchanger1", output = "techage:ta5_heatexchanger1",
-- recipe = { recipe = {
-- {"default:tin_ingot", "techage:electric_cableS", "default:steel_ingot"}, {"default:tin_ingot", "techage:electric_cableS", "default:steel_ingot"},
-- {"techage:ta4_pipeS", "basic_materials:gear_steel", "techage:ta4_pipeS"}, {"techage:ta5_pipe1S", "basic_materials:gear_steel", "techage:ta4_pipeS"},
-- {"", "techage:baborium_ingot", ""}, {"", "techage:baborium_ingot", ""},
-- }, },
--}) })

View File

@ -27,11 +27,12 @@ local CYCLE_TIME = 2
local PWR_NEEDED = 5 local PWR_NEEDED = 5
local COUNTDOWN_TICKS = 1 local COUNTDOWN_TICKS = 1
local DOWN = 5 -- dir local DOWN = 5 -- dir
local DESCRIPTION = S("TA5 Heat Exchanger") local DESCRIPTION = S("TA5 Heat Exchanger 2")
local EXPECT_BLUE = 56 local EXPECT_BLUE = 56
local EXPECT_GREEN = 52 local EXPECT_GREEN = 52
local CALL_RATE1 = 16 -- 2s * 16 = 32s local CALL_RATE1 = 16 -- 2s * 16 = 32s
local CALL_RATE2 = 8 -- 2s * 8 = 16s local CALL_RATE2 = 8 -- 2s * 8 = 16s
local EX_POINTS = 80
local function heatexchanger1_cmnd(pos, topic, payload) local function heatexchanger1_cmnd(pos, topic, payload)
return techage.transfer({x = pos.x, y = pos.y - 1, z = pos.z}, return techage.transfer({x = pos.x, y = pos.y - 1, z = pos.z},
@ -264,9 +265,11 @@ local function on_receive_fields(pos, formname, fields, player)
return return
end end
local nvm = techage.get_nvm(pos) if techage.get_expoints(player) >= EX_POINTS then
State:state_button_event(pos, nvm, fields) local nvm = techage.get_nvm(pos)
--M(pos):set_string("formspec", formspec(State, pos, nvm)) State:state_button_event(pos, nvm, fields)
--M(pos):set_string("formspec", formspec(State, pos, nvm))
end
end end
-- Middle node with the formspec from the bottom node -- Middle node with the formspec from the bottom node
@ -359,11 +362,11 @@ control.register_nodes({"techage:ta5_heatexchanger2"}, {
} }
) )
--minetest.register_craft({ minetest.register_craft({
-- output = "techage:ta5_heatexchanger2", output = "techage:ta5_heatexchanger2",
-- recipe = { recipe = {
-- {"default:tin_ingot", "", "default:steel_ingot"}, {"default:tin_ingot", "", "default:steel_ingot"},
-- {"", "techage:ta4_wlanchip", ""}, {"", "techage:ta5_aichip2", ""},
-- {"", "techage:baborium_ingot", ""}, {"", "techage:baborium_ingot", ""},
-- }, },
--}) })

View File

@ -59,7 +59,7 @@ local function control_cmnd(pos, topic)
end end
minetest.register_node("techage:ta5_heatexchanger3", { minetest.register_node("techage:ta5_heatexchanger3", {
description = S("TA4 Heat Exchanger 3"), description = S("TA5 Heat Exchanger 3"),
tiles = { tiles = {
-- up, down, right, left, back, front -- up, down, right, left, back, front
"techage_filling_ta4.png^techage_frame_ta5_top.png", "techage_filling_ta4.png^techage_frame_ta5_top.png",
@ -94,13 +94,13 @@ techage.register_node({"techage:ta5_heatexchanger3"}, {
end, end,
}) })
--minetest.register_craft({ minetest.register_craft({
-- output = "techage:ta5_heatexchanger3", output = "techage:ta5_heatexchanger3",
-- recipe = { recipe = {
-- {"default:tin_ingot", "dye:blue", "default:steel_ingot"}, {"default:tin_ingot", "dye:red", "default:steel_ingot"},
-- {"techage:ta4_pipeS", "basic_materials:gear_steel", "techage:ta4_pipeS"}, {"techage:ta5_pipe2S", "basic_materials:gear_steel", "techage:ta4_pipeS"},
-- {"", "techage:baborium_ingot", ""}, {"", "techage:baborium_ingot", ""},
-- }, },
--}) })
techage.orientate_node = orientate_node techage.orientate_node = orientate_node

View File

@ -232,7 +232,7 @@ minetest.register_craftitem("techage:ta5_magnet_shield", {
}) })
techage.furnace.register_recipe({ techage.furnace.register_recipe({
output = "techage:ta5_magnet_shield 1", output = "techage:ta5_magnet_shield 2",
recipe = {"default:steel_ingot", "techage:usmium_powder", "techage:graphite_powder"}, recipe = {"default:steel_ingot", "techage:usmium_powder", "techage:graphite_powder"},
time = 2, time = 2,

View File

@ -45,3 +45,19 @@ minetest.register_node("techage:ta5_fr_nucleus", {
is_ground_content = false, is_ground_content = false,
sounds = default.node_sound_metal_defaults(), sounds = default.node_sound_metal_defaults(),
}) })
techage.furnace.register_recipe({
output = "techage:ta5_fr_shell 3",
recipe = {'techage:ta4_colliderblock', 'techage:ta4_colliderblock', "techage:graphite_powder"},
time = 24,
})
minetest.register_craft({
output = "techage:ta5_fr_nucleus",
recipe = {
{"", "techage:ta5_aichip2", ""},
{"techage:electric_cableS", "techage:cylinder_large_hydrogen", "techage:ta3_valve_open"},
{"", "techage:ta5_fr_shell", ""},
},
})

View File

@ -181,11 +181,11 @@ liquid.register_nodes({
"techage:t5_pump", "techage:t5_pump_on", "techage:t5_pump", "techage:t5_pump_on",
}, Pipe3, "pump", {"R"}, {}) }, Pipe3, "pump", {"R"}, {})
--minetest.register_craft({ minetest.register_craft({
-- output = "techage:t5_pump", output = "techage:t5_pump",
-- recipe = { recipe = {
-- {"default:tin_ingot", "dye:red", "default:steel_ingot"}, {"techage:aluminum", "dye:red", "default:steel_ingot"},
-- {"", "techage:t4_pump", ""}, {"techage:ta4_pipeS", "techage:ta5_ceramic_turbine", "techage:ta5_pipe1S"},
-- {"", "", ""}, {"default:steel_ingot", "basic_materials:motor", "techage:aluminum"},
-- }, },
--}) })

View File

@ -160,11 +160,11 @@ techage.register_node({"techage:ta5_turbine", "techage:ta5_turbine_on"}, {
end, end,
}) })
--minetest.register_craft({ minetest.register_craft({
-- output = "techage:ta5_turbine", output = "techage:ta5_turbine",
-- recipe = { recipe = {
-- {"", "dye:blue", ""}, {"", "dye:red", ""},
-- {"", "techage:turbine", ""}, {"", "techage:turbine", ""},
-- {"", "techage:ta4_wlanchip", ""}, {"", "techage:ta5_ceramic_turbine", ""},
-- }, },
--}) })

View File

@ -59,11 +59,18 @@ minetest.register_craftitem("techage:ta4_round_ceramic", {
inventory_image = "techage_round_ceramic.png", inventory_image = "techage_round_ceramic.png",
}) })
minetest.register_craftitem("techage:ta5_ceramic_turbine", {
description = S("TA5 Ceramic Turbine"),
inventory_image = "techage_ceramic_turbine.png",
})
techage.furnace.register_recipe({ techage.furnace.register_recipe({
output = "techage:ta4_round_ceramic 2", output = "techage:ta5_ceramic_turbine",
recipe = { recipe = {
"techage:ta4_ceramic_material", "techage:ta4_ceramic_material", "techage:ta4_ceramic_material",
"techage:ta4_ceramic_material", "techage:ta4_ceramic_material", "techage:ta4_ceramic_material",
"techage:graphite_powder",
}, },
time = 16, time = 16,
}) })

View File

@ -41,7 +41,12 @@ minetest.register_craftitem("techage:ta4_leds", {
minetest.register_craftitem("techage:ta5_aichip", { minetest.register_craftitem("techage:ta5_aichip", {
description = S("TA5 AI Chip"), description = S("TA5 AI Chip"),
inventory_image = "techage_aichip.png", inventory_image = "techage_aichip.png^[colorize:#48b9de:40",
})
minetest.register_craftitem("techage:ta5_aichip2", {
description = S("TA5 AI Chip II"),
inventory_image = "techage_aichip.png^[colorize:#de486c:40",
}) })
techage.recipes.add("ta2_electronic_fab", { techage.recipes.add("ta2_electronic_fab", {
@ -84,3 +89,9 @@ techage.recipes.add("ta4_electronic_fab", {
input = {"techage:ta4_leds 8", "basic_materials:copper_wire 1", "basic_materials:gold_wire 1", "techage:ta4_silicon_wafer 1"}, input = {"techage:ta4_leds 8", "basic_materials:copper_wire 1", "basic_materials:gold_wire 1", "techage:ta4_silicon_wafer 1"},
ex_points = 10, ex_points = 10,
}) })
techage.recipes.add("ta4_electronic_fab", {
output = "techage:ta5_aichip2 2",
input = {"techage:ta4_leds 8", "basic_materials:copper_wire 1", "basic_materials:gold_wire 1", "techage:ta4_silicon_wafer 1"},
ex_points = 50,
})

View File

@ -154,16 +154,18 @@ techage.register_node({"techage:ta5_tele_tube"}, {
local nvm = techage.get_nvm(pos) local nvm = techage.get_nvm(pos)
if techage.is_operational(nvm) then if techage.is_operational(nvm) then
local rmt_pos = teleport.get_remote_pos(pos) local rmt_pos = teleport.get_remote_pos(pos)
local rmt_nvm = techage.get_nvm(rmt_pos) if rmt_pos then
if techage.is_operational(rmt_nvm) then local rmt_nvm = techage.get_nvm(rmt_pos)
local tube_dir = M(rmt_pos):get_int("tube_dir") if techage.is_operational(rmt_nvm) then
if techage.push_items(rmt_pos, tube_dir, stack) then local tube_dir = M(rmt_pos):get_int("tube_dir")
State:keep_running(pos, nvm, COUNTDOWN_TICKS) if techage.push_items(rmt_pos, tube_dir, stack) then
State:keep_running(rmt_pos, rmt_nvm, COUNTDOWN_TICKS) State:keep_running(pos, nvm, COUNTDOWN_TICKS)
return true State:keep_running(rmt_pos, rmt_nvm, COUNTDOWN_TICKS)
return true
end
else
State:blocked(pos, nvm, S("Remote block error"))
end end
else
State:blocked(pos, nvm, S("Remote block error"))
end end
end end
return false return false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 297 B

After

Width:  |  Height:  |  Size: 272 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 752 B