give brass and wrought iron poles facedir

so they can be rotated to horizontal with screwdriver.
This commit is contained in:
Vanessa Ezekowitz 2014-08-12 12:26:14 -04:00
parent 9fab61ec90
commit 380ca4c98a

View File

@ -174,19 +174,20 @@ for i = 1, detail-1 do
end end
minetest.register_node("homedecor:pole_brass", { minetest.register_node("homedecor:pole_brass", {
description = S("Brass Pole"), description = S("Brass Pole"),
drawtype = "nodebox", drawtype = "nodebox",
tiles = {"homedecor_tile_brass2.png"}, tiles = {"homedecor_tile_brass2.png"},
inventory_image = "homedecor_pole_brass2.png", inventory_image = "homedecor_pole_brass2.png",
wield_image = "homedecor_pole_brass2.png", wield_image = "homedecor_pole_brass2.png",
paramtype = "light", paramtype = "light",
is_ground_content = true, paramtype2 = "facedir",
selection_box = { is_ground_content = true,
type = "fixed", selection_box = {
fixed = {-size/2, -0.5, -size/2, size/2, 0.5, size/2}, type = "fixed",
}, fixed = {-size/2, -0.5, -size/2, size/2, 0.5, size/2},
groups = {snappy=3}, },
sounds = default.node_sound_wood_defaults(), groups = {snappy=3},
sounds = default.node_sound_wood_defaults(),
walkable = true, walkable = true,
node_box = { node_box = {
type = "fixed", type = "fixed",
@ -195,23 +196,24 @@ minetest.register_node("homedecor:pole_brass", {
}) })
minetest.register_node("homedecor:pole_wrought_iron", { minetest.register_node("homedecor:pole_wrought_iron", {
description = S("Wrought Iron Pole"), description = S("Wrought Iron Pole"),
drawtype = "nodebox", drawtype = "nodebox",
tiles = {"homedecor_tile_wrought_iron2.png"}, tiles = {"homedecor_tile_wrought_iron2.png"},
inventory_image = "homedecor_pole_wrought_iron.png", inventory_image = "homedecor_pole_wrought_iron.png",
wield_image = "homedecor_pole_wrought_iron.png", wield_image = "homedecor_pole_wrought_iron.png",
paramtype = "light", paramtype = "light",
is_ground_content = true, paramtype2 = "facedir",
selection_box = { is_ground_content = true,
type = "fixed", selection_box = {
fixed = {-0.0625, -0.5, -0.0625, 0.0625, 0.5, 0.0625} type = "fixed",
}, fixed = {-0.0625, -0.5, -0.0625, 0.0625, 0.5, 0.0625}
},
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = {-0.0625, -0.5, -0.0625, 0.0625, 0.5, 0.0625} fixed = {-0.0625, -0.5, -0.0625, 0.0625, 0.5, 0.0625}
}, },
groups = {snappy=3}, groups = {snappy=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
walkable = true, walkable = true,
}) })