init.lua 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. place_param2 = 10,
  13. -- Common stone does not count toward tool's dig count.
  14. _toolranks = {
  15. ignore = true,
  16. },
  17. })
  18. minetest.register_node("whitestone:cobble", {
  19. description = "Bleached Cobble",
  20. tiles = {"whitestone_cobble.png"},
  21. groups = utility.dig_groups("cobble", {native_stone=1}),
  22. sounds = default.node_sound_stone_defaults(),
  23. -- Common stone does not count toward tool's dig count.
  24. _toolranks = {
  25. ignore = true,
  26. },
  27. })
  28. minetest.register_node("whitestone:brick", {
  29. description = "Bleached Brick",
  30. tiles = {"whitestone_brick.png"},
  31. groups = utility.dig_groups("brick", {brick=1}),
  32. sounds = default.node_sound_stone_defaults(),
  33. })
  34. minetest.register_node("whitestone:block", {
  35. description = "Bleached Block",
  36. tiles = {"whitestone_block.png"},
  37. groups = utility.dig_groups("block"),
  38. sounds = default.node_sound_stone_defaults(),
  39. })
  40. minetest.register_craft({
  41. output = "whitestone:brick 4",
  42. recipe = {
  43. {'whitestone:stone', 'whitestone:stone'},
  44. {'whitestone:stone', 'whitestone:stone'},
  45. },
  46. })
  47. minetest.register_craft({
  48. output = "whitestone:block 9",
  49. recipe = {
  50. {'whitestone:stone', 'whitestone:stone', 'whitestone:stone'},
  51. {'whitestone:stone', 'whitestone:stone', 'whitestone:stone'},
  52. {'whitestone:stone', 'whitestone:stone', 'whitestone:stone'},
  53. },
  54. })
  55. minetest.register_craft({
  56. type = "cooking",
  57. output = "whitestone:stone",
  58. recipe = "whitestone:cobble",
  59. })
  60. stairs.register_stair_and_slab(
  61. "whitestone_stone",
  62. "whitestone:stone",
  63. {cracky=2},
  64. {"whitestone_stone.png"},
  65. "Bleached Stone",
  66. default.node_sound_stone_defaults()
  67. )
  68. stairs.register_stair_and_slab(
  69. "whitestone_cobble",
  70. "whitestone:cobble",
  71. {cracky=2},
  72. {"whitestone_cobble.png"},
  73. "Bleached Cobble",
  74. default.node_sound_stone_defaults()
  75. )
  76. stairs.register_stair_and_slab(
  77. "whitestone_brick",
  78. "whitestone:brick",
  79. {cracky=2},
  80. {"whitestone_brick.png"},
  81. "Bleached Brick",
  82. default.node_sound_stone_defaults()
  83. )
  84. stairs.register_stair_and_slab(
  85. "whitestone_block",
  86. "whitestone:block",
  87. {cracky=2},
  88. {"whitestone_block.png"},
  89. "Bleached Block",
  90. default.node_sound_stone_defaults()
  91. )