Repository for the titan_moon mod.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

nodes.lua 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. --Solids
  2. minetest.register_node("titan_moon:ice_pebbles", {
  3. description = "Titan Icestone with Ice Pebbles",
  4. tiles = {"titan_moon_ice_pebbles.png", "titan_moon_ice.png", "titan_moon_ice.png", "titan_moon_ice.png", "titan_moon_ice.png", "titan_moon_ice.png"},
  5. --is_ground_content = true,
  6. groups = {cracky=3}, --{crumbly=1, falling_node = 1},
  7. sounds = default.node_sound_stone_defaults(), --default.node_sound_gravel_defaults()
  8. })
  9. minetest.register_node("titan_moon:ice", {
  10. description = "Titan Icestone",
  11. tiles = {"titan_moon_ice.png"},
  12. --is_ground_content = true,
  13. groups = {cracky=3},
  14. sounds = default.node_sound_stone_defaults(),
  15. })
  16. minetest.register_node("titan_moon:hydrocarbon_sand", {
  17. description = "Hydrocarbon Sand",
  18. tiles = {"titan_moon_hydrocarbon_sand.png"},
  19. groups = {crumbly = 3, falling_node = 1, sand = 1},
  20. sounds = default.node_sound_sand_defaults(),
  21. })
  22. --Liquids
  23. minetest.register_node("titan_moon:liquid_hydrocarbon_source", {
  24. description = "Liquid Hydrocarbon Source",
  25. drawtype = "liquid",
  26. tiles = {
  27. {
  28. name = "titan_moon_liquid_hydrocarbon_source_animated.png",
  29. animation = {
  30. type = "vertical_frames",
  31. aspect_w = 16,
  32. aspect_h = 16,
  33. length = 2.0,
  34. },
  35. },
  36. },
  37. special_tiles = {
  38. -- New-style water source material (mostly unused)
  39. {
  40. name = "titan_moon_liquid_hydrocarbon_source_animated.png",
  41. animation = {
  42. type = "vertical_frames",
  43. aspect_w = 16,
  44. aspect_h = 16,
  45. length = 2.0,
  46. },
  47. backface_culling = false,
  48. },
  49. },
  50. alpha = 160,
  51. paramtype = "light",
  52. walkable = false,
  53. pointable = false,
  54. diggable = false,
  55. buildable_to = true,
  56. is_ground_content = false,
  57. drop = "",
  58. drowning = 1,
  59. liquidtype = "source",
  60. liquid_alternative_flowing = "titan_moon:liquid_hydrocarbon_flowing",
  61. liquid_alternative_source = "titan_moon:liquid_hydrocarbon_source",
  62. liquid_viscosity = 1,
  63. post_effect_color = {a = 103, r = 219, g = 167, b = 83}, --rgb(219,167,83)
  64. groups = {liquid = 3, puts_out_fire = 1, cools_lava = 1}, --removed "water = 3, "
  65. sounds = default.node_sound_water_defaults(),
  66. })
  67. minetest.register_node("titan_moon:liquid_hydrocarbon_flowing", {
  68. description = "Flowing Liquid Hydrocarbon",
  69. drawtype = "flowingliquid",
  70. tiles = {"titan_moon_liquid_hydrocarbon.png"},
  71. special_tiles = {
  72. {
  73. name = "titan_moon_liquid_hydrocarbon_flowing_animated.png",
  74. backface_culling = false,
  75. animation = {
  76. type = "vertical_frames",
  77. aspect_w = 16,
  78. aspect_h = 16,
  79. length = 0.8,
  80. },
  81. },
  82. {
  83. name = "titan_moon_liquid_hydrocarbon_flowing_animated.png",
  84. backface_culling = true,
  85. animation = {
  86. type = "vertical_frames",
  87. aspect_w = 16,
  88. aspect_h = 16,
  89. length = 0.8,
  90. },
  91. },
  92. },
  93. alpha = 160,
  94. paramtype = "light",
  95. paramtype2 = "flowingliquid",
  96. walkable = false,
  97. pointable = false,
  98. diggable = false,
  99. buildable_to = true,
  100. is_ground_content = false,
  101. drop = "",
  102. drowning = 1,
  103. liquidtype = "flowing",
  104. liquid_alternative_flowing = "titan_moon:liquid_hydrocarbon_flowing",
  105. liquid_alternative_source = "titan_moon:liquid_hydrocarbon_source",
  106. liquid_viscosity = 1,
  107. post_effect_color = {a = 103, r = 219, g = 167, b = 83},
  108. groups = {liquid = 3, puts_out_fire = 1,
  109. not_in_creative_inventory = 1, cools_lava = 1}, --removed "water = 3, "
  110. sounds = default.node_sound_water_defaults(),
  111. })