2018-12-30 18:44:28 -05:00
|
|
|
-- LUALOCALS < ---------------------------------------------------------
|
|
|
|
local minetest, nodecore
|
|
|
|
= minetest, nodecore
|
|
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
|
|
|
|
local modname = minetest.get_current_modname()
|
|
|
|
|
|
|
|
minetest.register_node(modname .. ":staff", {
|
|
|
|
description = "Staff",
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = nodecore.fixedbox(-1/16, -0.5, -1/16, 1/16, 0.5, 1/16),
|
2020-09-16 20:18:15 -04:00
|
|
|
selection_box = nodecore.fixedbox(-1/8, -0.5, -1/8, 1/8, 0.5, 1/8),
|
2019-01-24 20:45:14 -05:00
|
|
|
oldnames = {"nc_tree:staff"},
|
2018-12-30 18:44:28 -05:00
|
|
|
tiles = {
|
|
|
|
"nc_tree_tree_top.png",
|
|
|
|
"nc_tree_tree_top.png",
|
2020-02-21 07:30:32 -05:00
|
|
|
"nc_woodwork_frame.png"
|
2018-12-30 18:44:28 -05:00
|
|
|
},
|
|
|
|
paramtype = "light",
|
2019-03-09 19:46:52 -05:00
|
|
|
sunlight_propagates = true,
|
2018-12-30 18:44:28 -05:00
|
|
|
groups = {
|
2019-02-10 00:20:55 -05:00
|
|
|
firestick = 2,
|
2019-01-24 22:08:05 -05:00
|
|
|
snappy = 1,
|
2019-01-06 14:26:27 -05:00
|
|
|
flammable = 2,
|
2023-11-01 18:55:48 -04:00
|
|
|
falling_repose = 2,
|
|
|
|
optic_opaque = 1,
|
2019-03-13 23:51:59 -04:00
|
|
|
},
|
|
|
|
sounds = nodecore.sounds("nc_tree_sticky")
|
2018-12-30 18:44:28 -05:00
|
|
|
})
|
|
|
|
|
|
|
|
nodecore.register_craft({
|
2019-02-21 14:37:22 -05:00
|
|
|
label = "assemble staff",
|
2018-12-30 18:44:28 -05:00
|
|
|
normal = {y = 1},
|
2020-06-27 12:20:35 -04:00
|
|
|
indexkeys = {"nc_tree:stick"},
|
2018-12-30 18:44:28 -05:00
|
|
|
nodes = {
|
|
|
|
{match = "nc_tree:stick", replace = "air"},
|
|
|
|
{y = -1, match = "nc_tree:stick", replace = modname .. ":staff"}
|
|
|
|
}
|
|
|
|
})
|