I’ve been typing in the tables for wall mounted nodes in minetest, but this makes for a rather large text file.
I’m wondering if the wall mounted tables exist, but require a different method of access than the ones I use for fixed nodes.
Zen wrote:I’ve been typing in the tables for wall mounted nodes in minutest, but this makes for a rather large text file.
Zen wrote:I’m wondering if the wall mounted tables exist, but require a different method of access than the ones I use for fixed nodes.
nodebox = {
type = "wallmounted",
wall_bottom = { ... },
wall_side= { ... },
wall_top = { ... }
}
BobbyBonsaimind wrote:Zen wrote:I’m wondering if the wall mounted tables exist, but require a different method of access than the ones I use for fixed nodes.
I'm not sure what you mean, but you can define different nodeboxes for when a node is wallmounted.
if not (center == nil) then
local name = minetest.get_node(center).name
local selection = minetest.registered_nodes[name].node_box -- .selection_box -- .collision_box --
if not (selection == nil) then
for key, value in ipairs(selection) do
message[3] = message[3]..tostring(key)
end
end
message[3] = message[3].." C: "..tostring(minetest.registered_nodes[name].collision_box)
message[3] = message[3].." N: "..tostring(minetest.registered_nodes[name].node_box)
message[3] = message[3].." S: "..tostring(minetest.registered_nodes[name].selection_box)
message[3] = message[3].." T: "..tostring(minetest.registered_nodes[name].selection_box.type)
message[3] = message[3].." Z: "..tostring(minetest.registered_nodes[name].selection_box.wall_top)
end
Users browsing this forum: No registered users and 4 guests