init.lua 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. whitestone = whitestone or {}
  2. whitestone.modpath = minetest.get_modpath("whitestone")
  3. -- Whitestone forms some of the roof in the nether. Must not be corruptible by lava!
  4. -- Otherwise builds below will be destroyed.
  5. minetest.register_node("whitestone:stone", {
  6. description = "Bleached Stone",
  7. tiles = {"whitestone_stone.png"},
  8. groups = utility.dig_groups("hardstone", {native_stone=1}),
  9. drop = "whitestone:cobble",
  10. silverpick_drop = true,
  11. sounds = default.node_sound_stone_defaults(),
  12. -- Common stone does not count toward tool's dig count.
  13. _toolranks = {
  14. ignore = true,
  15. },
  16. })
  17. minetest.register_node("whitestone:cobble", {
  18. description = "Bleached Cobble",
  19. tiles = {"whitestone_cobble.png"},
  20. groups = utility.dig_groups("cobble", {native_stone=1}),
  21. sounds = default.node_sound_stone_defaults(),
  22. -- Common stone does not count toward tool's dig count.
  23. _toolranks = {
  24. ignore = true,
  25. },
  26. })
  27. minetest.register_node("whitestone:brick", {
  28. description = "Bleached Brick",
  29. tiles = {"whitestone_brick.png"},
  30. groups = utility.dig_groups("brick", {brick=1}),
  31. sounds = default.node_sound_stone_defaults(),
  32. })
  33. minetest.register_node("whitestone:block", {
  34. description = "Bleached Block",
  35. tiles = {"whitestone_block.png"},
  36. groups = utility.dig_groups("block"),
  37. sounds = default.node_sound_stone_defaults(),
  38. })
  39. minetest.register_craft({
  40. output = "whitestone:brick 4",
  41. recipe = {
  42. {'whitestone:stone', 'whitestone:stone'},
  43. {'whitestone:stone', 'whitestone:stone'},
  44. },
  45. })
  46. minetest.register_craft({
  47. output = "whitestone:block 9",
  48. recipe = {
  49. {'whitestone:stone', 'whitestone:stone', 'whitestone:stone'},
  50. {'whitestone:stone', 'whitestone:stone', 'whitestone:stone'},
  51. {'whitestone:stone', 'whitestone:stone', 'whitestone:stone'},
  52. },
  53. })
  54. minetest.register_craft({
  55. type = "cooking",
  56. output = "whitestone:stone",
  57. recipe = "whitestone:cobble",
  58. })
  59. stairs.register_stair_and_slab(
  60. "whitestone_stone",
  61. "whitestone:stone",
  62. {cracky=2},
  63. {"whitestone_stone.png"},
  64. "Bleached Stone",
  65. default.node_sound_stone_defaults()
  66. )
  67. stairs.register_stair_and_slab(
  68. "whitestone_cobble",
  69. "whitestone:cobble",
  70. {cracky=2},
  71. {"whitestone_cobble.png"},
  72. "Bleached Cobble",
  73. default.node_sound_stone_defaults()
  74. )
  75. stairs.register_stair_and_slab(
  76. "whitestone_brick",
  77. "whitestone:brick",
  78. {cracky=2},
  79. {"whitestone_brick.png"},
  80. "Bleached Brick",
  81. default.node_sound_stone_defaults()
  82. )
  83. stairs.register_stair_and_slab(
  84. "whitestone_block",
  85. "whitestone:block",
  86. {cracky=2},
  87. {"whitestone_block.png"},
  88. "Bleached Block",
  89. default.node_sound_stone_defaults()
  90. )