init.lua 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. minetest.register_node("thorium:ore", {
  2. description = "Thorium Ore",
  3. tiles = {"default_stone.png^technic_thorium_mineral.png"},
  4. groups = utility.dig_groups("mineral", {melts = 1, ore = 1}),
  5. drop = "thorium:lump",
  6. sounds = default.node_sound_stone_defaults(),
  7. silverpick_drop = true,
  8. -- thorium ore reacts like uranium ore with respect to lava, only less violently.
  9. on_melt = function(pos, other)
  10. minetest.after(0, function()
  11. tnt.boom(pos, {
  12. radius = 2,
  13. ignore_protection = false,
  14. ignore_on_blast = false,
  15. damage_radius = 3,
  16. disable_drops = true,
  17. })
  18. end)
  19. end,
  20. })
  21. minetest.register_node("thorium:block", {
  22. description = "Thorium Block (Not Radioactive)",
  23. tiles = {"technic_thorium_block.png"},
  24. groups = utility.dig_groups("block"),
  25. sounds = default.node_sound_metal_defaults(),
  26. })
  27. minetest.register_craftitem("thorium:lump", {
  28. description = "Thorium Ore Lump",
  29. inventory_image = "technic_thorium_lump.png",
  30. })
  31. minetest.register_craftitem("thorium:ingot", {
  32. description = "Thorium Ingot",
  33. inventory_image = "technic_thorium_ingot.png",
  34. groups = {ingot = 1},
  35. })
  36. minetest.register_craftitem("thorium:dust", {
  37. description = "Thorium Dust",
  38. inventory_image = "technic_thorium_dust.png",
  39. })
  40. minetest.register_craft({
  41. type = "cooking",
  42. output = "thorium:ingot",
  43. recipe = "thorium:lump",
  44. })
  45. minetest.register_craft({
  46. type = "cooking",
  47. output = "thorium:ingot",
  48. recipe = "thorium:dust",
  49. })
  50. minetest.register_craft({
  51. type = "grinding",
  52. output = 'thorium:dust 2',
  53. recipe = 'thorium:lump',
  54. time = 6,
  55. })
  56. minetest.register_craft({
  57. type = "grinding",
  58. output = 'thorium:dust',
  59. recipe = 'thorium:ingot',
  60. time = 20,
  61. })
  62. minetest.register_craft({
  63. output = "thorium:block",
  64. recipe = {
  65. {"thorium:ingot", "thorium:ingot", "thorium:ingot"},
  66. {"thorium:ingot", "thorium:ingot", "thorium:ingot"},
  67. {"thorium:ingot", "thorium:ingot", "thorium:ingot"},
  68. },
  69. })
  70. minetest.register_craft({
  71. type = "shapeless",
  72. output = "thorium:ingot 9",
  73. recipe = {"thorium:block"},
  74. })
  75. oregen.register_ore({
  76. ore_type = "scatter",
  77. ore = "thorium:ore",
  78. wherein = "default:stone",
  79. clust_scarcity = 8*8*8,
  80. clust_num_ores = 2,
  81. clust_size = 3,
  82. y_min = -700,
  83. y_max = -400,
  84. })
  85. oregen.register_ore({
  86. ore_type = "scatter",
  87. ore = "thorium:ore",
  88. wherein = "default:stone",
  89. clust_scarcity = 6*6*6,
  90. clust_num_ores = 2,
  91. clust_size = 3,
  92. y_min = -800,
  93. y_max = -600,
  94. })
  95. minetest.register_craftitem("thorium:rod", {
  96. description = "Thorium Breeder Reactor Fuel Rod",
  97. inventory_image = "technic_thorium_fuel.png",
  98. stack_max = 1,
  99. })
  100. minetest.register_craft({
  101. type = "compressing",
  102. output = "thorium:rod",
  103. recipe = "thorium:ingot 16",
  104. time = 80,
  105. })