Add lantern functions for adding nodes to allowed placement list
parent
f02afca62c
commit
257e5f993b
|
@ -22,6 +22,10 @@ local allowed_non_solid_nodes_floor = {
|
||||||
"mcl_lanterns:chain"
|
"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_groups_floor = {"anvil", "wall", "glass", "fence", "fence_gate", "pane"}
|
||||||
|
|
||||||
local allowed_non_solid_nodes_ceiling = {
|
local allowed_non_solid_nodes_ceiling = {
|
||||||
|
@ -36,6 +40,10 @@ local allowed_non_solid_nodes_ceiling = {
|
||||||
"mcl_lanterns:chain"
|
"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 allowed_non_solid_groups_ceiling = {"anvil", "wall", "glass", "fence", "fence_gate", "soil", "pane", "end_portal_frame"}
|
||||||
|
|
||||||
local function check_placement(node, wdir)
|
local function check_placement(node, wdir)
|
||||||
|
|
Loading…
Reference in New Issue