]> git.lizzy.rs Git - minetest.git/blob - games/devtest/mods/tiled/init.lua
435f64b7118ee6fffa6d1c73fc0a3d7edf22b8a4
[minetest.git] / games / devtest / mods / tiled / init.lua
1 local align_help = "Texture spans over a space of 8×8 nodes"
2 local align_help_n = "Tiles looks the same for every node"
3
4 minetest.register_node("tiled:tiled", {
5         description = "Tiled Node (world-aligned)".."\n"..align_help,
6         tiles = {{
7                 name = "tiled_tiled.png",
8                 align_style = "world",
9                 scale = 8,
10         }},
11         groups = {cracky=3},
12 })
13
14 minetest.register_node("tiled:tiled_n", {
15         description = "Tiled Node (node-aligned)".."\n"..align_help_n,
16         tiles = {{
17                 name = "tiled_tiled_node.png",
18                 align_style = "node",
19         }},
20         groups = {cracky=3},
21 })
22
23 stairs.register_stair_and_slab("tiled_n", "tiled:tiled_n",
24                 {cracky=3},
25                 {{name="tiled_tiled_node.png", align_style="node"}},
26                 "Tiled Stair (node-aligned)".."\n"..align_help_n,
27                 "Tiled Slab (node-aligned)".."\n"..align_help_n)
28
29 stairs.register_stair_and_slab("tiled", "tiled:tiled",
30                 {cracky=3},
31                 {{name="tiled_tiled.png", align_style="world", scale=8}},
32                 "Tiled Stair (world-aligned)".."\n"..align_help,
33                 "Tiled Slab (world-aligned)".."\n"..align_help)
34
35