quarry bugfix

This commit is contained in:
Joachim Stolberg 2019-01-22 19:26:20 +01:00
parent d776399ce4
commit 686f78a16a
2 changed files with 43 additions and 5 deletions

@ -407,6 +407,38 @@ minetest.register_node("techpack_stairway:ladder2", {
sounds = default.node_sound_metal_defaults(),
})
minetest.register_node("techpack_stairway:ladder3", {
description = "TechPack Ladder 3",
tiles = {
'techpack_stairway_steps.png',
'techpack_stairway_steps.png',
'techpack_stairway_ladder.png',
},
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-17/32, -17/32, 15/32, 17/32, 17/32, 17/32},
--{-17/32, -17/32, -17/32, -15/32, 17/32, 17/32},
--{-17/32, -17/32, -17/32, 17/32, 17/32, -15/32},
{ 15/32, -17/32, -17/32, 17/32, 17/32, 17/32},
},
},
selection_box = {
type = "fixed",
fixed = {-8/16, -8/16, -8/16, 8/16, 8/16, 8/16},
},
climbable = true,
paramtype2 = "facedir",
paramtype = "light",
sunlight_propagates = true,
is_ground_content = false,
groups = {cracky = 2},
sounds = default.node_sound_metal_defaults(),
})
minetest.register_node("techpack_stairway:lattice", {
description = "TechPack Lattice",
tiles = {
@ -475,6 +507,15 @@ minetest.register_craft({
},
})
minetest.register_craft({
output = "techpack_stairway:ladder3 4",
recipe = {
{"", "", "default:steel_ingot"},
{"dye:dark_grey", "default:tin_ingot", "default:coal_lump"},
{"", "", "default:steel_ingot"},
},
})
minetest.register_craft({
output = "techpack_stairway:lattice 2",
recipe = {

@ -170,7 +170,8 @@ local function quarry_next_node(pos, meta)
meta:set_int("fuel", fuel)
local idx = meta:get_int("idx")
local facedir = meta:get_int("facedir")
if idx == 0 then idx = 1 end
local facedir = minetest.get_node(pos).param2
local owner = meta:get_string("owner")
local endless = meta:get_int("endless")
local start_y = pos.y + meta:get_int("start_level")
@ -295,8 +296,6 @@ minetest.register_node("tubelib_addons1:quarry", {
inv:set_size('main', 16)
inv:set_size('fuel', 1)
local number = tubelib.add_node(pos, "tubelib_addons1:quarry")
local facedir = minetest.dir_to_facedir(placer:get_look_dir(), false)
meta:set_int("facedir", facedir)
meta:set_string("owner", placer:get_player_name())
meta:set_int("endless", 0)
meta:set_int("curr_level", -1)
@ -388,8 +387,6 @@ minetest.register_node("tubelib_addons1:quarry_defect", {
inv:set_size('main', 16)
inv:set_size('fuel', 1)
local number = tubelib.add_node(pos, "tubelib_addons1:quarry")
local facedir = minetest.dir_to_facedir(placer:get_look_dir(), false)
meta:set_int("facedir", facedir)
meta:set_string("owner", placer:get_player_name())
meta:set_int("endless", 0)
meta:set_int("curr_level", -1)