aboutsummaryrefslogtreecommitdiff
path: root/stairsplus
diff options
context:
space:
mode:
authorCalinou <calinou9999spam@gmail.com>2013-10-26 18:16:43 +0200
committerCalinou <calinou9999spam@gmail.com>2013-10-26 18:16:43 +0200
commitf322bb1bc1e29d034f54a2a532c603bff8846468 (patch)
tree5ef7f99b7da86af105580f4bcdcb24aef0c54da1 /stairsplus
parent621948c70a6f07a39765ebd360dccd4261173e21 (diff)
downloadmoreblocks-f322bb1bc1e29d034f54a2a532c603bff8846468.tar.gz
moreblocks-f322bb1bc1e29d034f54a2a532c603bff8846468.tar.bz2
moreblocks-f322bb1bc1e29d034f54a2a532c603bff8846468.zip
New slab types: 1/16, 1/8, 7/8, 15/16 slabs (suggested by VanessaE), reorganized circular saw
Diffstat (limited to 'stairsplus')
-rw-r--r--stairsplus/slabs.lua104
1 files changed, 104 insertions, 0 deletions
diff --git a/stairsplus/slabs.lua b/stairsplus/slabs.lua
index 875ebc8..d9d72b4 100644
--- a/stairsplus/slabs.lua
+++ b/stairsplus/slabs.lua
@@ -114,6 +114,110 @@ function register_slab(modname, subname, recipeitem, groups, images, description
return itemstack
end
})
+
+ minetest.register_node(":"..modname .. ":slab_" .. subname .. "_2", {
+ description = S("%s Slab"):format(S(description)),
+ drawtype = "nodebox",
+ tiles = images,
+ light_source = light,
+ drop = modname .. ":slab_" .. drop .. "_quarter",
+ paramtype = "light",
+ paramtype2 = "facedir",
+ sunlight_propagates = true,
+ groups = groups,
+ node_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
+ },
+ selection_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
+ },
+ sounds = default.node_sound_stone_defaults(),
+ on_place = function(itemstack, placer, pointed_thing)
+ local keys=placer:get_player_control()
+ stairsplus_rotate_and_place(itemstack, placer, pointed_thing, keys["sneak"])
+ return itemstack
+ end
+ })
+
+ minetest.register_node(":"..modname .. ":slab_" .. subname .. "_1", {
+ description = S("%s Slab"):format(S(description)),
+ drawtype = "nodebox",
+ tiles = images,
+ light_source = light,
+ drop = modname .. ":slab_" .. drop .. "_quarter",
+ paramtype = "light",
+ paramtype2 = "facedir",
+ sunlight_propagates = true,
+ groups = groups,
+ node_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
+ },
+ selection_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
+ },
+ sounds = default.node_sound_stone_defaults(),
+ on_place = function(itemstack, placer, pointed_thing)
+ local keys=placer:get_player_control()
+ stairsplus_rotate_and_place(itemstack, placer, pointed_thing, keys["sneak"])
+ return itemstack
+ end
+ })
+
+ minetest.register_node(":"..modname .. ":slab_" .. subname .. "_14", {
+ description = S("%s Slab"):format(S(description)),
+ drawtype = "nodebox",
+ tiles = images,
+ light_source = light,
+ drop = modname .. ":slab_" .. drop .. "_quarter",
+ paramtype = "light",
+ paramtype2 = "facedir",
+ sunlight_propagates = true,
+ groups = groups,
+ node_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, 0.375, 0.5},
+ },
+ selection_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, 0.375, 0.5},
+ },
+ sounds = default.node_sound_stone_defaults(),
+ on_place = function(itemstack, placer, pointed_thing)
+ local keys=placer:get_player_control()
+ stairsplus_rotate_and_place(itemstack, placer, pointed_thing, keys["sneak"])
+ return itemstack
+ end
+ })
+
+ minetest.register_node(":"..modname .. ":slab_" .. subname .. "_15", {
+ description = S("%s Slab"):format(S(description)),
+ drawtype = "nodebox",
+ tiles = images,
+ light_source = light,
+ drop = modname .. ":slab_" .. drop .. "_quarter",
+ paramtype = "light",
+ paramtype2 = "facedir",
+ sunlight_propagates = true,
+ groups = groups,
+ node_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, 0.4375, 0.5},
+ },
+ selection_box = {
+ type = "fixed",
+ fixed = {-0.5, -0.5, -0.5, 0.5, 0.4375, 0.5},
+ },
+ sounds = default.node_sound_stone_defaults(),
+ on_place = function(itemstack, placer, pointed_thing)
+ local keys=placer:get_player_control()
+ stairsplus_rotate_and_place(itemstack, placer, pointed_thing, keys["sneak"])
+ return itemstack
+ end
+ })
-- Unregister default recipes, optional, see _config.txt