mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-22 16:10:18 +01:00
Added corner chainlink fences
Craft two regular chainlink fences to get the corner variety, place the result back into the craft grid to get the two fences back.
This commit is contained in:
parent
d6c8e075a4
commit
cf0ad1fd9a
12
crafts.lua
12
crafts.lua
@ -1401,6 +1401,18 @@ minetest.register_craft( {
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = "homedecor:fence_chainlink_corner",
|
||||
recipe = { "homedecor:fence_chainlink", "homedecor:fence_chainlink" },
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = "homedecor:fence_chainlink 2",
|
||||
recipe = { "homedecor:fence_chainlink_corner" },
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = "homedecor:fence_picket_gate_white_closed",
|
||||
|
41
fences.lua
41
fences.lua
@ -337,6 +337,47 @@ minetest.register_node("homedecor:fence_chainlink", {
|
||||
})
|
||||
|
||||
|
||||
minetest.register_node("homedecor:fence_chainlink_corner", {
|
||||
drawtype = "nodebox",
|
||||
description = "Chainlink Fence",
|
||||
tiles = {
|
||||
"homedecor_fence_chainlink_gate_tb.png",
|
||||
"homedecor_fence_chainlink_gate_tb.png",
|
||||
"homedecor_fence_chainlink_corner_sides.png",
|
||||
"homedecor_fence_chainlink_corner_sides.png",
|
||||
"homedecor_fence_chainlink_corner_sides.png",
|
||||
"homedecor_fence_chainlink_corner_sides.png",
|
||||
},
|
||||
paramtype = "light",
|
||||
is_ground_content = true,
|
||||
groups = {snappy=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
walkable = true,
|
||||
paramtype2 = "facedir",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.5, -0.5, 0.375, 0.5, 0.5, 0.5 },
|
||||
{ -0.5, -0.5, -0.5, -0.375, 0.5, 0.5 }
|
||||
}
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 }, -- left post, rear
|
||||
{ -8/16, -8/16, -8/16, -6/16, 8/16, -7/16 }, -- left post, front
|
||||
{ 7/16, -8/16, 6/16, 8/16, 8/16, 8/16 }, -- right post, rear
|
||||
{ -8/16, 7/16, 13/32, 8/16, 8/16, 15/32 }, -- top piece, rear
|
||||
{ -8/16, -8/16, 13/32, 8/16, -7/16, 15/32 }, -- bottom piece, rear
|
||||
{ -15/32, 7/16, -8/16, -13/32, 8/16, 8/16 }, -- top piece, side
|
||||
{ -15/32, -8/16, -8/16, -13/32, -7/16, 8/16 }, -- bottom piece, side
|
||||
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 }, -- the chainlink itself, rear
|
||||
{ -7/16, -8/16, -8/16, -7/16, 8/16, 8/16 } -- the chainlink itself, side
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
-- =====
|
||||
-- Gates
|
||||
|
||||
|
BIN
textures/homedecor_fence_chainlink_corner_sides.png
Normal file
BIN
textures/homedecor_fence_chainlink_corner_sides.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 349 B |
Loading…
Reference in New Issue
Block a user