aboutsummaryrefslogtreecommitdiff
path: root/src/database
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2018-01-13 10:54:18 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2018-01-20 16:38:38 +0100
commit99c9e7a9864a8da5aaf97e615d2bdefa1295497a (patch)
treece9fbbc2acb2a69f8811ce475d469673fc2953e4 /src/database
parentf5a006dce7896d9241b7d21df77825c1c5decc88 (diff)
downloadminetest-99c9e7a9864a8da5aaf97e615d2bdefa1295497a.tar.gz
minetest-99c9e7a9864a8da5aaf97e615d2bdefa1295497a.tar.bz2
minetest-99c9e7a9864a8da5aaf97e615d2bdefa1295497a.zip
Game refactor [4/X]: keycache is now owned by InputHandler
* Make InputHandler own the key cache * Add a helper function InputHandler::cancelPressed to avoid multiple similar calls in game.cpp * Move RandomInputHandler::step definition into cpp file
Diffstat (limited to 'src/database')
0 files changed, 0 insertions, 0 deletions
l kwd">register_node("stairs:stair_" .. subname, { description = description, drawtype = "nodebox", tile_images = images, paramtype = "light", paramtype2 = "facedir", is_ground_content = true, groups = groups, node_box = { type = "fixed", fixed = { {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, {-0.5, 0, 0, 0.5, 0.5, 0.5}, }, }, }) minetest.register_craft({ output = 'stairs:stair_' .. subname .. ' 4', recipe = { {recipeitem, "", ""}, {recipeitem, recipeitem, ""}, {recipeitem, recipeitem, recipeitem}, }, }) end -- Node will be called stairs:slab_<subname> function stairs.register_slab(subname, recipeitem, groups, images, description) minetest.register_node("stairs:slab_" .. subname, { description = description, drawtype = "nodebox", tile_images = images, paramtype = "light", is_ground_content = true, groups = groups, node_box = { type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, }, selection_box = { type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, }, }) minetest.register_craft({ output = 'stairs:slab_' .. subname .. ' 3', recipe = { {recipeitem, recipeitem, recipeitem}, }, }) end -- Nodes will be called stairs:{stair,slab}_<subname> function stairs.register_stair_and_slab(subname, recipeitem, groups, images, desc_stair, desc_slab) stairs.register_stair(subname, recipeitem, groups, images, desc_stair) stairs.register_slab(subname, recipeitem, groups, images, desc_slab) end stairs.register_stair_and_slab("wood", "default:wood", {snappy=2,choppy=2,oddly_breakable_by_hand=2}, {"default_wood.png"}, "Wooden stair", "Wooden slab") stairs.register_stair_and_slab("stone", "default:stone", {cracky=3}, {"default_stone.png"}, "Stone stair", "Stone slab") stairs.register_stair_and_slab("cobble", "default:cobble", {cracky=3}, {"default_cobble.png"}, "Cobble stair", "Cobble slab") stairs.register_stair_and_slab("brick", "default:brick", {cracky=3}, {"default_brick.png"}, "Brick stair", "Brick slab") stairs.register_stair_and_slab("sandstone", "default:sandstone", {crumbly=2,cracky=2}, {"default_sandstone.png"}, "Sandstone stair", "Sandstone slab")