mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-23 08:20:21 +01:00
added picket, white picket, and barbed wire corner fences, and recipes to make
them. Tweaked picket fence nodeboxes slightly to push them as close to the back of the node as I could without Z-fighting with neighboring objects. Minor code formatting tweaks got rid of some commented-out code.
This commit is contained in:
parent
04999af13d
commit
825b2abbc0
46
crafts.lua
46
crafts.lua
@ -1323,6 +1323,23 @@ minetest.register_craft( {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
type = "shapeless",
|
||||||
|
output = "homedecor:fence_picket_corner",
|
||||||
|
recipe = {
|
||||||
|
"homedecor:fence_picket",
|
||||||
|
"homedecor:fence_picket"
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
type = "shapeless",
|
||||||
|
output = "homedecor:fence_picket 2",
|
||||||
|
recipe = {
|
||||||
|
"homedecor:fence_picket_corner"
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "homedecor:fence_picket_white 6",
|
output = "homedecor:fence_picket_white 6",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -1333,6 +1350,23 @@ minetest.register_craft( {
|
|||||||
replacements = { {'unifieddyes:white_paint', 'bucket:bucket_empty'}, },
|
replacements = { {'unifieddyes:white_paint', 'bucket:bucket_empty'}, },
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
type = "shapeless",
|
||||||
|
output = "homedecor:fence_picket_corner_white",
|
||||||
|
recipe = {
|
||||||
|
"homedecor:fence_picket_white",
|
||||||
|
"homedecor:fence_picket_white"
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
type = "shapeless",
|
||||||
|
output = "homedecor:fence_picket_white 2",
|
||||||
|
recipe = {
|
||||||
|
"homedecor:fence_picket_corner_white"
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "homedecor:fence_privacy 6",
|
output = "homedecor:fence_privacy 6",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -1351,6 +1385,18 @@ minetest.register_craft( {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
type = "shapeless",
|
||||||
|
output = "homedecor:fence_barbed_wire_corner",
|
||||||
|
recipe = { "homedecor:fence_barbed_wire", "homedecor:fence_barbed_wire" },
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
type = "shapeless",
|
||||||
|
output = "homedecor:fence_barbed_wire 2",
|
||||||
|
recipe = { "homedecor:fence_barbed_wire_corner" },
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "homedecor:fence_chainlink 9",
|
output = "homedecor:fence_chainlink 9",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
119
fences.lua
119
fences.lua
@ -146,8 +146,6 @@ minetest.register_node("homedecor:fence_picket", {
|
|||||||
"homedecor_fence_picket_backside.png",
|
"homedecor_fence_picket_backside.png",
|
||||||
"homedecor_fence_picket.png"
|
"homedecor_fence_picket.png"
|
||||||
},
|
},
|
||||||
-- inventory_image = "homedecor_fence_picket.png",
|
|
||||||
-- wield_image = "homedecor_fence_picket.png",
|
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {snappy=3},
|
groups = {snappy=3},
|
||||||
@ -160,7 +158,40 @@ minetest.register_node("homedecor:fence_picket", {
|
|||||||
},
|
},
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = { -0.5, -0.5, 0.495, 0.5, 0.5, 0.495 }
|
fixed = { -0.5, -0.5, 0.498, 0.5, 0.5, 0.498 }
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("homedecor:fence_picket_corner", {
|
||||||
|
drawtype = "nodebox",
|
||||||
|
description = S("Unpainted Picket Fence Corner"),
|
||||||
|
tiles = {
|
||||||
|
"homedecor_fence_picket.png",
|
||||||
|
"homedecor_fence_picket.png",
|
||||||
|
"homedecor_fence_picket.png",
|
||||||
|
"homedecor_fence_picket_backside.png",
|
||||||
|
"homedecor_fence_picket_backside.png",
|
||||||
|
"homedecor_fence_picket.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.4, 0.5, 0.5, 0.5 },
|
||||||
|
{ -0.5, -0.5, -0.5, -0.4, 0.5, 0.5 }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{ -0.5, -0.5, 0.498, 0.5, 0.5, 0.5 },
|
||||||
|
{ -0.5, -0.5, -0.5, -0.498, 0.5, 0.5 }
|
||||||
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -175,8 +206,6 @@ minetest.register_node("homedecor:fence_picket_white", {
|
|||||||
"homedecor_fence_picket_white_backside.png",
|
"homedecor_fence_picket_white_backside.png",
|
||||||
"homedecor_fence_picket_white.png"
|
"homedecor_fence_picket_white.png"
|
||||||
},
|
},
|
||||||
-- inventory_image = "homedecor_fence_picket_white.png",
|
|
||||||
-- wield_image = "homedecor_fence_picket_white.png",
|
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {snappy=3},
|
groups = {snappy=3},
|
||||||
@ -189,7 +218,40 @@ minetest.register_node("homedecor:fence_picket_white", {
|
|||||||
},
|
},
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = { -0.5, -0.5, 0.495, 0.5, 0.5, 0.495 }
|
fixed = { -0.5, -0.5, 0.498, 0.5, 0.5, 0.498 }
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("homedecor:fence_picket_corner_white", {
|
||||||
|
drawtype = "nodebox",
|
||||||
|
description = S("White Picket Fence Corner"),
|
||||||
|
tiles = {
|
||||||
|
"homedecor_fence_picket_white.png",
|
||||||
|
"homedecor_fence_picket_white.png",
|
||||||
|
"homedecor_fence_picket_white.png",
|
||||||
|
"homedecor_fence_picket_white_backside.png",
|
||||||
|
"homedecor_fence_picket_white_backside.png",
|
||||||
|
"homedecor_fence_picket_white.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.4, 0.5, 0.5, 0.5 },
|
||||||
|
{ -0.5, -0.5, -0.5, -0.4, 0.5, 0.5 }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{ -0.5, -0.5, 0.498, 0.5, 0.5, 0.5 },
|
||||||
|
{ -0.5, -0.5, -0.5, -0.498, 0.5, 0.5 }
|
||||||
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -249,6 +311,38 @@ minetest.register_node("homedecor:fence_barbed_wire", {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_node("homedecor:fence_barbed_wire_corner", {
|
||||||
|
drawtype = "nodebox",
|
||||||
|
description = S("Barbed Wire Fence"),
|
||||||
|
tiles = {
|
||||||
|
"homedecor_fence_barbed_wire.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
|
||||||
|
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }, -- right post
|
||||||
|
{ -6/16, -8/16, 7/16, 6/16, 8/16, 7/16 }, -- the wire
|
||||||
|
|
||||||
|
{ -8/16, -8/16, -8/16, -6/16, 8/16, -6/16 }, -- front post
|
||||||
|
{ -7/16, -8/16, -6/16, -7/16, 8/16, 6/16 } -- more wire
|
||||||
|
}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_node("homedecor:fence_chainlink", {
|
minetest.register_node("homedecor:fence_chainlink", {
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
description = S("Chainlink Fence"),
|
description = S("Chainlink Fence"),
|
||||||
@ -282,7 +376,6 @@ minetest.register_node("homedecor:fence_chainlink", {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("homedecor:fence_chainlink_corner", {
|
minetest.register_node("homedecor:fence_chainlink_corner", {
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
description = "Chainlink Fence",
|
description = "Chainlink Fence",
|
||||||
@ -338,8 +431,6 @@ minetest.register_node("homedecor:fence_picket_gate_closed", {
|
|||||||
"homedecor_fence_picket_gate_backside.png",
|
"homedecor_fence_picket_gate_backside.png",
|
||||||
"homedecor_fence_picket_gate.png"
|
"homedecor_fence_picket_gate.png"
|
||||||
},
|
},
|
||||||
-- inventory_image = "homedecor_fence_picket_gate.png",
|
|
||||||
-- wield_image = "homedecor_fence_picket_gate.png",
|
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {snappy=3},
|
groups = {snappy=3},
|
||||||
@ -352,7 +443,7 @@ minetest.register_node("homedecor:fence_picket_gate_closed", {
|
|||||||
},
|
},
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = { -0.5, -0.5, 0.495, 0.5, 0.5, 0.495 }
|
fixed = { -0.5, -0.5, 0.498, 0.5, 0.5, 0.498 }
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -367,8 +458,6 @@ minetest.register_node("homedecor:fence_picket_gate_open", {
|
|||||||
"homedecor_fence_picket_gate.png",
|
"homedecor_fence_picket_gate.png",
|
||||||
"homedecor_fence_picket_gate.png"
|
"homedecor_fence_picket_gate.png"
|
||||||
},
|
},
|
||||||
-- inventory_image = "homedecor_fence_picket_gate.png",
|
|
||||||
-- wield_image = "homedecor_fence_picket_gate.png",
|
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {snappy=3, not_in_creative_inventory=1},
|
groups = {snappy=3, not_in_creative_inventory=1},
|
||||||
@ -381,7 +470,7 @@ minetest.register_node("homedecor:fence_picket_gate_open", {
|
|||||||
},
|
},
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = { 0.495, -0.5, -0.5, 0.495, 0.5, 0.5 }
|
fixed = { 0.498, -0.5, -0.5, 0.498, 0.5, 0.5 }
|
||||||
},
|
},
|
||||||
drop = "homedecor:fence_picket_gate_closed"
|
drop = "homedecor:fence_picket_gate_closed"
|
||||||
})
|
})
|
||||||
@ -411,7 +500,7 @@ minetest.register_node("homedecor:fence_picket_gate_white_closed", {
|
|||||||
},
|
},
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = { -0.5, -0.5, 0.495, 0.5, 0.5, 0.495 }
|
fixed = { -0.5, -0.5, 0.498, 0.5, 0.5, 0.498 }
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -440,7 +529,7 @@ minetest.register_node("homedecor:fence_picket_gate_white_open", {
|
|||||||
},
|
},
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = { 0.495, -0.5, -0.5, 0.495, 0.5, 0.5 }
|
fixed = { 0.498, -0.5, -0.5, 0.498, 0.5, 0.5 }
|
||||||
},
|
},
|
||||||
drop = "homedecor:fence_picket_gate_closed"
|
drop = "homedecor:fence_picket_gate_closed"
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user