Add lantern functions for adding nodes to allowed placement list

This commit is contained in:
SmokeyDope 2023-03-19 22:48:11 +00:00 committed by Gitea
parent f02afca62c
commit 257e5f993b

View file

@ -22,6 +22,10 @@ local allowed_non_solid_nodes_floor = {
"mcl_lanterns:chain"
}
function mcl_lanterns.add_allowed_non_solid_nodes_floor (node_name)
table.insert (allowed_non_solid_nodes_floor, node_name)
end
local allowed_non_solid_groups_floor = {"anvil", "wall", "glass", "fence", "fence_gate", "pane"}
local allowed_non_solid_nodes_ceiling = {
@ -36,6 +40,10 @@ local allowed_non_solid_nodes_ceiling = {
"mcl_lanterns:chain"
}
function mcl_lanterns.add_allowed_non_solid_nodes_ceiling (node_name)
table.insert (allowed_non_solid_nodes_ceiling, node_name)
end
local allowed_non_solid_groups_ceiling = {"anvil", "wall", "glass", "fence", "fence_gate", "soil", "pane", "end_portal_frame"}
local function check_placement(node, wdir)