init.lua 2.9 KB

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