init.lua 2.8 KB

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