tube recipe bugfixes

This commit is contained in:
Joachim Stolberg 2018-12-31 14:59:02 +01:00
parent ed9deb3235
commit eb0540c712
15 changed files with 61 additions and 15 deletions

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

@ -468,7 +468,7 @@ minetest.register_craft({
output = "tubelib:distributor 2", output = "tubelib:distributor 2",
recipe = { recipe = {
{"group:wood", "default:steel_ingot", "group:wood"}, {"group:wood", "default:steel_ingot", "group:wood"},
{"tubelib:tube1", "default:mese_crystal", "tubelib:tube1"}, {"tubelib:tubeS", "default:mese_crystal", "tubelib:tubeS"},
{"group:wood", "default:steel_ingot", "group:wood"}, {"group:wood", "default:steel_ingot", "group:wood"},
}, },
}) })

@ -73,4 +73,50 @@ minetest.register_lbm({
end end
}) })
minetest.register_node("tubelib:tube1", minetest.registered_nodes["tubelib:tubeS"]) -- legacy tube, to be converted after placed
minetest.register_node("tubelib:tube1", {
description = "Tubelib Tube",
tiles = { -- Top, base, right, left, front, back
"tubelib_tube.png^[transformR90",
"tubelib_tube.png^[transformR90",
"tubelib_tube.png",
"tubelib_tube.png",
"tubelib_hole.png",
"tubelib_hole.png",
},
after_place_node = function(pos, placer, itemstack, pointed_thing)
if not Tube:after_place_tube(pos, placer, pointed_thing) then
minetest.remove_node(pos)
return true
end
return false
end,
after_dig_node = function(pos, oldnode, oldmetadata, digger)
Tube:after_dig_tube(pos, oldnode, oldmetadata)
end,
paramtype2 = "facedir",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-2/8, -2/8, -4/8, 2/8, 2/8, 4/8},
},
},
selection_box = {
type = "fixed",
fixed = { -1/4, -1/4, -1/2, 1/4, 1/4, 1/2 },
},
collision_box = {
type = "fixed",
fixed = { -1/4, -1/4, -1/2, 1/4, 1/4, 1/2 },
},
on_rotate = screwdriver.disallow,
paramtype = "light",
sunlight_propagates = true,
is_ground_content = false,
groups = {choppy=2, cracky=3, stone=1, not_in_creative_inventory=1},
sounds = default.node_sound_wood_defaults(),
})

@ -219,7 +219,7 @@ minetest.register_craft({
output = "tubelib:pusher 2", output = "tubelib:pusher 2",
recipe = { recipe = {
{"group:wood", "wool:dark_green", "group:wood"}, {"group:wood", "wool:dark_green", "group:wood"},
{"tubelib:tube1", "default:mese_crystal", "tubelib:tube1"}, {"tubelib:tubeS", "default:mese_crystal", "tubelib:tubeS"},
{"group:wood", "wool:dark_green", "group:wood"}, {"group:wood", "wool:dark_green", "group:wood"},
}, },
}) })

@ -411,7 +411,7 @@ minetest.register_craft({
output = "tubelib_addons1:autocrafter", output = "tubelib_addons1:autocrafter",
recipe = { recipe = {
{"group:wood", "default:steel_ingot", "group:wood"}, {"group:wood", "default:steel_ingot", "group:wood"},
{"tubelib:tube1", "default:mese_crystal", "tubelib:tube1"}, {"tubelib:tubeS", "default:mese_crystal", "tubelib:tubeS"},
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"}, {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
}, },
}) })

@ -129,7 +129,7 @@ minetest.register_node("tubelib_addons1:chest", {
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "tubelib_addons1:chest", output = "tubelib_addons1:chest",
recipe = {"default:chest", "tubelib:tube1", "default:steel_ingot"} recipe = {"default:chest", "tubelib:tubeS", "default:steel_ingot"}
}) })
tubelib.register_node("tubelib_addons1:chest", {}, { tubelib.register_node("tubelib_addons1:chest", {}, {

@ -111,7 +111,7 @@ minetest.register_craft({
output = "tubelib_addons1:detector", output = "tubelib_addons1:detector",
recipe = { recipe = {
{"", "group:wood", ""}, {"", "group:wood", ""},
{"tubelib:tube1", "tubelib:wlanchip", "tubelib:tube1"}, {"tubelib:tubeS", "tubelib:wlanchip", "tubelib:tubeS"},
{"", "group:wood", ""}, {"", "group:wood", ""},
}, },
}) })

@ -333,7 +333,7 @@ minetest.register_craft({
output = "tubelib_addons1:fermenter", output = "tubelib_addons1:fermenter",
recipe = { recipe = {
{"default:steel_ingot", "default:dirt", "default:steel_ingot"}, {"default:steel_ingot", "default:dirt", "default:steel_ingot"},
{"tubelib:tube1", "default:mese_crystal", "tubelib:tube1"}, {"tubelib:tubeS", "default:mese_crystal", "tubelib:tubeS"},
{"default:steel_ingot", "group:wood", "default:steel_ingot"}, {"default:steel_ingot", "group:wood", "default:steel_ingot"},
}, },
}) })

@ -130,7 +130,7 @@ minetest.register_craft({
output = "tubelib_addons1:funnel 2", output = "tubelib_addons1:funnel 2",
recipe = { recipe = {
{"group:wood", "", "group:wood"}, {"group:wood", "", "group:wood"},
{"default:steel_ingot", "default:mese_crystal", "tubelib:tube1"}, {"default:steel_ingot", "default:mese_crystal", "tubelib:tubeS"},
{"group:wood", "", "group:wood"}, {"group:wood", "", "group:wood"},
}, },
}) })

@ -253,7 +253,7 @@ minetest.register_craft({
output = "tubelib_addons1:grinder", output = "tubelib_addons1:grinder",
recipe = { recipe = {
{"group:wood", "default:tin_ingot", "group:wood"}, {"group:wood", "default:tin_ingot", "group:wood"},
{"tubelib:tube1", "default:mese_crystal", "tubelib:tube1"}, {"tubelib:tubeS", "default:mese_crystal", "tubelib:tubeS"},
{"group:wood", "default:tin_ingot", "group:wood"}, {"group:wood", "default:tin_ingot", "group:wood"},
}, },
}) })

@ -419,7 +419,7 @@ minetest.register_craft({
output = "tubelib_addons1:harvester_base", output = "tubelib_addons1:harvester_base",
recipe = { recipe = {
{"default:steel_ingot", "default:mese_crystal", "default:steel_ingot"}, {"default:steel_ingot", "default:mese_crystal", "default:steel_ingot"},
{"default:steel_ingot", "default:mese_crystal", "tubelib:tube1"}, {"default:steel_ingot", "default:mese_crystal", "tubelib:tubeS"},
{"group:wood", "default:mese_crystal", "group:wood"}, {"group:wood", "default:mese_crystal", "group:wood"},
}, },
}) })

@ -265,7 +265,7 @@ minetest.register_craft({
output = "tubelib_addons1:liquidsampler", output = "tubelib_addons1:liquidsampler",
recipe = { recipe = {
{"group:wood", "default:steel_ingot", "group:wood"}, {"group:wood", "default:steel_ingot", "group:wood"},
{"default:mese_crystal", "bucket:bucket_empty", "tubelib:tube1"}, {"default:mese_crystal", "bucket:bucket_empty", "tubelib:tubeS"},
{"group:wood", "default:steel_ingot", "group:wood"}, {"group:wood", "default:steel_ingot", "group:wood"},
}, },
}) })

@ -430,7 +430,7 @@ minetest.register_craft({
output = "tubelib_addons1:quarry", output = "tubelib_addons1:quarry",
recipe = { recipe = {
{"group:wood", "default:mese_crystal", "group:wood"}, {"group:wood", "default:mese_crystal", "group:wood"},
{"default:steel_ingot", "default:mese_crystal", "tubelib:tube1"}, {"default:steel_ingot", "default:mese_crystal", "tubelib:tubeS"},
{"group:wood", "default:mese_crystal", "group:wood"}, {"group:wood", "default:mese_crystal", "group:wood"},
}, },
}) })

@ -299,7 +299,7 @@ minetest.register_craft({
output = "tubelib_addons1:reformer", output = "tubelib_addons1:reformer",
recipe = { recipe = {
{"default:steel_ingot", "default:clay", "default:steel_ingot"}, {"default:steel_ingot", "default:clay", "default:steel_ingot"},
{"tubelib:tube1", "default:mese_crystal", "tubelib:tube1"}, {"tubelib:tubeS", "default:mese_crystal", "tubelib:tubeS"},
{"default:steel_ingot", "group:wood", "default:steel_ingot"}, {"default:steel_ingot", "group:wood", "default:steel_ingot"},
}, },
}) })

@ -66,7 +66,7 @@ minetest.register_craft({
output = "tubelib_addons3:teleporter 2", output = "tubelib_addons3:teleporter 2",
recipe = { recipe = {
{"default:gold_ingot", "group:wood", ""}, {"default:gold_ingot", "group:wood", ""},
{"default:mese_crystal", "default:mese_crystal", "tubelib:tube1"}, {"default:mese_crystal", "default:mese_crystal", "tubelib:tubeS"},
{"default:gold_ingot", "group:wood", ""}, {"default:gold_ingot", "group:wood", ""},
}, },
}) })