some bugfixes

This commit is contained in:
Joachim Stolberg 2019-06-17 21:24:48 +02:00
parent 1dba15733e
commit 224689f3f2
10 changed files with 21 additions and 11 deletions

View File

@ -44,7 +44,7 @@ minetest.register_craft({
output = "techage:blackhole",
recipe = {
{"group:wood", "", "group:wood"},
{"tubelib:tubeS", "default:coal_lump", ""},
{"techage:tubeS", "default:coal_lump", ""},
{"group:wood", "techage:iron_ingot", "group:wood"},
},
})

View File

@ -177,7 +177,7 @@ if techage.max_num_forceload_blocks > 0 then
output = "techage:forceload",
recipe = {
{"group:wood", "", "group:wood"},
{"default:mese_crystal_fragment", "techage:baborium_lump", "default:mese_crystal_fragment"},
{"default:mese_crystal_fragment", "techage:usmium_nuggets", "default:mese_crystal_fragment"},
{"group:wood", "techage:iron_ingot", "group:wood"},
},
})

View File

@ -76,7 +76,7 @@ end
function techage.firebox.can_dig(pos, player)
local mem = tubelib2.get_mem(pos)
local inv = M(pos):get_inventory()
return inv:is_empty("fuel") and not mem.running
return inv:is_empty("fuel")
end
function techage.firebox.allow_metadata_inventory(pos, listname, index, stack, player)

View File

@ -276,10 +276,12 @@ techage.register_node({"techage:coalboiler_top"}, {
if topic == "trigger" then
local mem = tubelib2.get_mem(pos)
mem.fire_trigger = true
if mem.running then
mem.power_ratio = transfer(pos, topic, payload)
return mem.power_ratio
end
end
end
})

View File

@ -158,7 +158,7 @@ minetest.register_node("techage:generator_on", {
},
},
{
image = "techage_filling4_ta3.png^techage_appl_generator4.png^techage_frame4_ta3.png",
image = "techage_filling4_ta3.png^techage_appl_generator4.png^[transformFX]^techage_frame4_ta3.png",
backface_culling = false,
animation = {
type = "vertical_frames",

View File

@ -239,7 +239,7 @@ local _, node_name_ta3, _ =
minetest.register_craft({
output = node_name_ta3,
recipe = {
{"", "techage:baborium_ingot", ""},
{"", "techage:usmium_nuggets", ""},
{"", "default:furnace", ""},
{"", "techage:vacuum_tube", ""},
},

View File

@ -8,8 +8,8 @@ local MP = minetest.get_modpath("techage")
local I,IS = dofile(MP.."/intllib.lua")
local PROBABILITY = 100
local OIL_MIN = 1000
local PROBABILITY = 80
local OIL_MIN = 2000
local OIL_MAX = 20000
local DEPTH_MIN = 8
local DEPTH_MAX = (16 * 25) + 8

View File

@ -186,7 +186,7 @@ local _, node_name_ta3, _ =
minetest.register_craft({
output = "techage:ta3_pumpjack_pas",
recipe = {
{"", "techage:baborium_ingot", ""},
{"", "techage:usmium_nuggets", ""},
{"dye:red", "techage:ta3_pusher_pas", "dye:red"},
{"", "techage:oil_drillbit", ""},
},

View File

@ -178,3 +178,11 @@ minetest.register_craft({
},
})
minetest.register_craft({
output = "techage:powerswitch_box",
recipe = {
{"", "basic_materials:plastic_sheet", ""},
{"techage:electric_cableS", "basic_materials:copper_wire", "techage:electric_cableS"},
{"", "basic_materials:plastic_sheet", ""},
},
})

View File

@ -27,7 +27,7 @@ local CYCLE_TIME = 2
local function node_timer(pos, elapsed)
local mem = tubelib2.get_mem(pos)
print("firebox burn_cycles = "..(mem.burn_cycles or 0))
--print("firebox burn_cycles = "..(mem.burn_cycles or 0))
if mem.running then
local power = techage.transfer(
{x=pos.x, y=pos.y+2, z=pos.z},