Removed horizontal pillar and took advantage of my minetest.rotate_and_place wrapper

This commit is contained in:
4Evergreen4 2013-11-08 16:16:46 -05:00
parent 8e5ed5717d
commit d5f8202e2e
2 changed files with 2 additions and 44 deletions

View File

@ -28,14 +28,6 @@ x|q|x
----- -----
x|x|x x|x|x
Quartz Pillar (horizontal):
q = quartz block x = nothing
x|x|x
-----
x|x|x
-----
q|q|x
Quartz Slab: Quartz Slab:
q = quartz block x = nothing q = quartz block x = nothing

View File

@ -49,20 +49,13 @@ minetest.register_node("quartz:chiseled", {
--Quartz Pillar --Quartz Pillar
minetest.register_node("quartz:pillar", { minetest.register_node("quartz:pillar", {
description = "Quartz Pillar", description = "Quartz Pillar",
paramtype2 = "facedir",
tiles = {"quartz_pillar_top.png", "quartz_pillar_top.png", "quartz_pillar_side.png"}, tiles = {"quartz_pillar_top.png", "quartz_pillar_top.png", "quartz_pillar_side.png"},
groups = {cracky=3, oddly_breakable_by_hand=1}, groups = {cracky=3, oddly_breakable_by_hand=1},
sounds = default.node_sound_glass_defaults(), sounds = default.node_sound_glass_defaults(),
on_place = minetest.rotate_node
}) })
--Quartz Pillar (horizontal)
minetest.register_node("quartz:pillar_horizontal", {
description = "Quartz Pillar Horizontal",
tiles = {"quartz_pillar_side.png", "quartz_pillar_side.png", "quartz_pillar_side.png^[transformR90",
"quartz_pillar_side.png^[transformR90", "quartz_pillar_top.png", "quartz_pillar_top.png"},
paramtype2 = "facedir",
groups = {cracky=3, oddly_breakable_by_hand=1},
sounds = default.node_sound_glass_defaults(),
})
--Stairs & Slabs --Stairs & Slabs
stairs.register_stair_and_slab("quartzblock", "quartz:block", stairs.register_stair_and_slab("quartzblock", "quartz:block",
@ -125,30 +118,3 @@ minetest.register_craft({
} }
}) })
minetest.register_craft({
output = 'quartz:pillar 2',
recipe = {
{'quartz:pillar_horizontal', '', ''},
{'quartz:pillar_horizontal', '', ''},
{'', '', ''},
}
})
--Quartz Pillar (horizontal)
minetest.register_craft({
output = 'quartz:pillar_horizontal 2',
recipe = {
{'', '', ''},
{'quartz:block', 'quartz:block', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'quartz:pillar_horizontal 2',
recipe = {
{'', '', ''},
{'quartz:pillar', 'quartz:pillar', ''},
{'', '', ''},
}
})