mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 12:31:05 +01:00
Add nether brick fence
This commit is contained in:
parent
cbefdaa601
commit
8fb1553083
1 changed files with 16 additions and 0 deletions
|
@ -83,6 +83,11 @@ mcl_fences.register_fence = function(id, fence_name, fence_gate_name, texture, f
|
||||||
meta2:set_int("state", state2)
|
meta2:set_int("state", state2)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if fence_gate_name == nil then
|
||||||
|
-- Don't create fence gate when fence gate name is mising
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
groups.mesecon_effector_on = 1
|
groups.mesecon_effector_on = 1
|
||||||
minetest.register_node("mcl_fences:"..id_gate.."_open", {
|
minetest.register_node("mcl_fences:"..id_gate.."_open", {
|
||||||
tiles = {texture},
|
tiles = {texture},
|
||||||
|
@ -225,6 +230,17 @@ for w=1, #woods do
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Nether Brick Fence (without fence gate!)
|
||||||
|
mcl_fences.register_fence("nether_brick_fence", "Nether Brick Fence", nil, "mcl_nether_nether_brick.png", "default_fence.png", nil, {cracky=2, deco_block=1}, {}, mcl_core.node_sound_stone_defaults())
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'mcl_fences:nether_brick_fence 6',
|
||||||
|
recipe = {
|
||||||
|
{"mcl_nether:nether_brick", "mcl_nether:nether_brick", "mcl_nether:nether_brick"},
|
||||||
|
{"mcl_nether:nether_brick", "mcl_nether:nether_brick", "mcl_nether:nether_brick"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "fuel",
|
type = "fuel",
|
||||||
recipe = "group:fence_wood",
|
recipe = "group:fence_wood",
|
||||||
|
|
Loading…
Reference in a new issue