mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-22 15:23:43 +01:00
quarry bugfix
This commit is contained in:
parent
d776399ce4
commit
686f78a16a
@ -407,6 +407,38 @@ minetest.register_node("techpack_stairway:ladder2", {
|
|||||||
sounds = default.node_sound_metal_defaults(),
|
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", {
|
minetest.register_node("techpack_stairway:lattice", {
|
||||||
description = "TechPack Lattice",
|
description = "TechPack Lattice",
|
||||||
tiles = {
|
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({
|
minetest.register_craft({
|
||||||
output = "techpack_stairway:lattice 2",
|
output = "techpack_stairway:lattice 2",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
@ -170,7 +170,8 @@ local function quarry_next_node(pos, meta)
|
|||||||
meta:set_int("fuel", fuel)
|
meta:set_int("fuel", fuel)
|
||||||
|
|
||||||
local idx = meta:get_int("idx")
|
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 owner = meta:get_string("owner")
|
||||||
local endless = meta:get_int("endless")
|
local endless = meta:get_int("endless")
|
||||||
local start_y = pos.y + meta:get_int("start_level")
|
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('main', 16)
|
||||||
inv:set_size('fuel', 1)
|
inv:set_size('fuel', 1)
|
||||||
local number = tubelib.add_node(pos, "tubelib_addons1:quarry")
|
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_string("owner", placer:get_player_name())
|
||||||
meta:set_int("endless", 0)
|
meta:set_int("endless", 0)
|
||||||
meta:set_int("curr_level", -1)
|
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('main', 16)
|
||||||
inv:set_size('fuel', 1)
|
inv:set_size('fuel', 1)
|
||||||
local number = tubelib.add_node(pos, "tubelib_addons1:quarry")
|
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_string("owner", placer:get_player_name())
|
||||||
meta:set_int("endless", 0)
|
meta:set_int("endless", 0)
|
||||||
meta:set_int("curr_level", -1)
|
meta:set_int("curr_level", -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user