mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-14 15:11: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)
|
||||
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
|
||||
minetest.register_node("mcl_fences:"..id_gate.."_open", {
|
||||
tiles = {texture},
|
||||
|
@ -225,6 +230,17 @@ for w=1, #woods do
|
|||
})
|
||||
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({
|
||||
type = "fuel",
|
||||
recipe = "group:fence_wood",
|
||||
|
|
Loading…
Reference in a new issue