forked from nalc/homedecor_modpack
Improved wrought iron fence model, added corner version
This commit is contained in:
parent
2a2fa3d429
commit
2c02e8ba36
@ -1455,6 +1455,33 @@ minetest.register_craft( {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "homedecor:fence_wrought_iron_2 2",
|
||||||
|
recipe = {
|
||||||
|
{ "homedecor:pole_wrought_iron", "default:iron_lump" },
|
||||||
|
{ "homedecor:pole_wrought_iron", "default:iron_lump" },
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
type = "shapeless",
|
||||||
|
output = "homedecor:fence_wrought_iron_2_corner",
|
||||||
|
recipe = {
|
||||||
|
"homedecor:fence_wrought_iron_2",
|
||||||
|
"homedecor:fence_wrought_iron_2"
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
type = "shapeless",
|
||||||
|
output = "homedecor:fence_wrought_iron_2 2",
|
||||||
|
recipe = {
|
||||||
|
"homedecor:fence_wrought_iron_2_corner",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
--
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "homedecor:fence_picket 6",
|
output = "homedecor:fence_picket 6",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
@ -432,9 +432,56 @@ minetest.register_node("homedecor:fence_wrought_iron_2", {
|
|||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = { -0.5, -0.5, 0.375, 0.5, 0.5, 0.5 }
|
||||||
|
},
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = { -8/16, -8/16, 6/16, 8/16, 8/16, 8/16 },
|
fixed = {
|
||||||
|
{ -8/16, -8/16, 14/32, -7.75/16, 8/16, 16/32 }, -- left post
|
||||||
|
{ 7.75/16, -8/16, 14/32, 8/16, 8/16, 16/32 }, -- right post
|
||||||
|
{ -8/16, 7.75/16, 14/32, 8/16, 8/16, 16/32 }, -- top piece
|
||||||
|
{ -8/16, -8/16, 14/32, 8/16, -7.75/16, 16/32 }, -- bottom piece
|
||||||
|
{ -8/16, -8/16, 15/32, 8/16, 8/16, 15/32 } -- the grid itself
|
||||||
|
}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("homedecor:fence_wrought_iron_2_corner", {
|
||||||
|
drawtype = "nodebox",
|
||||||
|
description = S("Wrought Iron fence (type 2) Corner"),
|
||||||
|
tiles = {
|
||||||
|
"homedecor_fence_corner_wrought_iron_2_tb.png",
|
||||||
|
"homedecor_fence_corner_wrought_iron_2_tb.png",
|
||||||
|
"homedecor_fence_corner_wrought_iron_2_lr.png",
|
||||||
|
"homedecor_fence_corner_wrought_iron_2_lr.png^[transformFX",
|
||||||
|
"homedecor_fence_corner_wrought_iron_2_fb.png^[transformFX",
|
||||||
|
"homedecor_fence_corner_wrought_iron_2_fb.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.375 }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{ -7.5/16, 7.75/16, 14/32, 8/16, 8/16, 16/32 }, -- top piece
|
||||||
|
{ -7.5/16, -8/16, 14/32, 8/16, -7.75/16, 16/32 }, -- bottom piece
|
||||||
|
{ -16/32, 7.75/16, -8/16, -14/32, 8/16, 8/16 }, -- top piece, side
|
||||||
|
{ -16/32, -8/16, -8/16, -14/32, -7.75/16, 8/16 }, -- bottom piece, side
|
||||||
|
{ -7.5/16, -8/16, 7.5/16, 8/16, 8/16, 7.5/16 }, -- the grid itself
|
||||||
|
{ -7.5/16, -8/16, -8/16, -7.5/16, 8/16, 7.5/16 } -- the grid itself, side
|
||||||
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
BIN
homedecor/textures/homedecor_fence_corner_wrought_iron_2_fb.png
Normal file
BIN
homedecor/textures/homedecor_fence_corner_wrought_iron_2_fb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.1 KiB |
BIN
homedecor/textures/homedecor_fence_corner_wrought_iron_2_lr.png
Normal file
BIN
homedecor/textures/homedecor_fence_corner_wrought_iron_2_lr.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.1 KiB |
BIN
homedecor/textures/homedecor_fence_corner_wrought_iron_2_tb.png
Normal file
BIN
homedecor/textures/homedecor_fence_corner_wrought_iron_2_tb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 410 B |
Loading…
Reference in New Issue
Block a user