init.lua 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. core.register_node("tiled:tiled", {
  4. description = "Tiled Node (world-aligned)".."\n"..align_help,
  5. tiles = {{
  6. name = "tiled_tiled.png",
  7. align_style = "world",
  8. scale = 8,
  9. }},
  10. groups = {cracky=3},
  11. })
  12. core.register_node("tiled:tiled_rooted", {
  13. description = "Tiled 'plantlike_rooted' Node (world-aligned)".."\n"..
  14. "Base node texture spans over a space of 8×8 nodes".."\n"..
  15. "A plantlike thing grows on top",
  16. paramtype = "light",
  17. drawtype = "plantlike_rooted",
  18. tiles = {{
  19. name = "tiled_tiled.png",
  20. align_style = "world",
  21. scale = 8,
  22. }},
  23. special_tiles = {"tiled_tiled_node.png"},
  24. groups = {cracky=3},
  25. })
  26. core.register_node("tiled:tiled_n", {
  27. description = "Tiled Node (node-aligned)".."\n"..align_help_n,
  28. tiles = {{
  29. name = "tiled_tiled_node.png",
  30. align_style = "node",
  31. }},
  32. groups = {cracky=3},
  33. })
  34. stairs.register_stair_and_slab("tiled_n", "tiled:tiled_n",
  35. {cracky=3},
  36. {{name="tiled_tiled_node.png", align_style="node"}},
  37. "Tiled Stair (node-aligned)".."\n"..align_help_n,
  38. "Tiled Slab (node-aligned)".."\n"..align_help_n)
  39. stairs.register_stair_and_slab("tiled", "tiled:tiled",
  40. {cracky=3},
  41. {{name="tiled_tiled.png", align_style="world", scale=8}},
  42. "Tiled Stair (world-aligned)".."\n"..align_help,
  43. "Tiled Slab (world-aligned)".."\n"..align_help)