mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 19:27:31 +01:00
Merge pull request 'Add lantern functions for adding nodes to allowed placement list' (#3567) from lanterns-add-allowed-functions into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/3567 Reviewed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
This commit is contained in:
commit
c499d20d25
@ -21,6 +21,10 @@ local allowed_non_solid_nodes_floor = {
|
||||
"mcl_portals:end_portal_frame_eye",
|
||||
"mcl_lanterns:chain"
|
||||
}
|
||||
-- The function below allows nodes that call it to be included in the 'allowed floor placement' list above. This lets lanterns be placed on top of said nodes. Most useful for modded in nodes.
|
||||
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"}
|
||||
|
||||
@ -35,6 +39,10 @@ local allowed_non_solid_nodes_ceiling = {
|
||||
"mcl_core:grass_path",
|
||||
"mcl_lanterns:chain"
|
||||
}
|
||||
-- The function below allows nodes that call it to be included in the 'allowed ceiling placement' list above. This lets lanterns be placed below said nodes. Most useful for modded in nodes.
|
||||
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"}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user