9407dc65a0
The following things were nodes that were defined as sunlight_propagates = true but NOW will be opaque: - shaftcraft items like sticks, staves, bars, rods, ladders, frames, and torches - flora such as rushes and flowers - sedges, but only at max growth (make it now possible to detect and automate sedge growth)
40 lines
1.0 KiB
Lua
40 lines
1.0 KiB
Lua
-- 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),
|
|
selection_box = nodecore.fixedbox(-1/8, -0.5, -1/8, 1/8, 0.5, 1/8),
|
|
oldnames = {"nc_tree:staff"},
|
|
tiles = {
|
|
"nc_tree_tree_top.png",
|
|
"nc_tree_tree_top.png",
|
|
"nc_woodwork_frame.png"
|
|
},
|
|
paramtype = "light",
|
|
sunlight_propagates = true,
|
|
groups = {
|
|
firestick = 2,
|
|
snappy = 1,
|
|
flammable = 2,
|
|
falling_repose = 2,
|
|
optic_opaque = 1,
|
|
},
|
|
sounds = nodecore.sounds("nc_tree_sticky")
|
|
})
|
|
|
|
nodecore.register_craft({
|
|
label = "assemble staff",
|
|
normal = {y = 1},
|
|
indexkeys = {"nc_tree:stick"},
|
|
nodes = {
|
|
{match = "nc_tree:stick", replace = "air"},
|
|
{y = -1, match = "nc_tree:stick", replace = modname .. ":staff"}
|
|
}
|
|
})
|