mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2024-11-16 15:40:26 +01:00
add mcl fences
This commit is contained in:
parent
9f9389c9d5
commit
c297978d50
|
@ -39,7 +39,8 @@ df_dependencies.mods_required.stairs = true
|
||||||
df_dependencies.mods_required.moreblocks = true
|
df_dependencies.mods_required.moreblocks = true
|
||||||
df_dependencies.mods_required.doors = true
|
df_dependencies.mods_required.doors = true
|
||||||
df_dependencies.mods_required.mcl_stairs = true
|
df_dependencies.mods_required.mcl_stairs = true
|
||||||
|
df_dependencies.mods_required.mcl_fences = true
|
||||||
|
df_dependencies.mods_required.mcl_core = true
|
||||||
|
|
||||||
local node_name_to_stair_properties = function(name, override)
|
local node_name_to_stair_properties = function(name, override)
|
||||||
local mod = minetest.get_current_modname()
|
local mod = minetest.get_current_modname()
|
||||||
|
@ -134,6 +135,20 @@ df_dependencies.register_all_fences = function (name, override_def)
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if minetest.get_modpath("mcl_fences") then
|
||||||
|
local groups = deep_copy(node_def.groups or {})
|
||||||
|
groups.fence_wood = 1
|
||||||
|
mcl_fences.register_fence_and_fence_gate(name .. "_fence",
|
||||||
|
S("@1 Fence", node_def.description),
|
||||||
|
S("@1 Fence Gate", node_def.description),
|
||||||
|
texture,
|
||||||
|
groups,
|
||||||
|
node_def._mcl_hardness or minetest.registered_nodes["mcl_core:wood"]._mcl_hardness,
|
||||||
|
node_def._mcl_blast_resistance or minetest.registered_nodes["mcl_core:wood"]._mcl_blast_resistance,
|
||||||
|
{"group:fence_wood"}
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
if minetest.get_modpath("doors") then
|
if minetest.get_modpath("doors") then
|
||||||
doors.register_fencegate(material .. "_fence_gate", {
|
doors.register_fencegate(material .. "_fence_gate", {
|
||||||
description = S("@1 Fence Gate", node_def.description),
|
description = S("@1 Fence Gate", node_def.description),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user