nodes.lua 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. ----------
  2. -- Nodes
  3. ----------
  4. minetest.register_node("darkage:adobe", {
  5. description = "Adobe",
  6. tiles = {"darkage_adobe.png"},
  7. is_ground_content = true,
  8. groups = {crumbly=3},
  9. sounds = default.node_sound_sand_defaults(),
  10. })
  11. minetest.register_node("darkage:basalt", {
  12. description = "Basalt",
  13. tiles = {"darkage_basalt.png"},
  14. is_ground_content = true,
  15. drop = 'darkage:basalt_cobble',
  16. groups = {cracky=3},
  17. sounds = default.node_sound_stone_defaults()
  18. })
  19. minetest.register_node("darkage:basalt_cobble", {
  20. description = "Basalt Cobble",
  21. tiles = {"darkage_basalt_cobble.png"},
  22. is_ground_content = true,
  23. groups = {cracky=3},
  24. sounds = default.node_sound_stone_defaults()
  25. })
  26. minetest.register_node("darkage:chalk", {
  27. description = "Chalk",
  28. tiles = {"darkage_chalk.png"},
  29. is_ground_content = true,
  30. drop = 'darkage:chalk_powder 4',
  31. groups = {crumbly=2,cracky=2},
  32. sounds = default.node_sound_stone_defaults()
  33. })
  34. minetest.register_node("darkage:cobble_with_plaster", {
  35. description = "Cobblestone with Plaster",
  36. tiles = {
  37. "default_cobble.png^(darkage_plaster.png^[transform1)",
  38. "default_cobble.png^(darkage_plaster.png^[transform3)",
  39. "default_cobble.png^darkage_plaster.png",
  40. "default_cobble.png^(darkage_plaster.png^[transform2)",
  41. "default_cobble.png",
  42. "darkage_chalk.png"},
  43. is_ground_content = false,
  44. paramtype2 = "facedir",
  45. groups = {cracky=3},
  46. sounds = default.node_sound_stone_defaults(),
  47. })
  48. minetest.register_node("darkage:stonebrick_with_plaster", {
  49. description = "Stone Brick with Plaster",
  50. tiles = {
  51. "default_stone_brick.png^(darkage_plaster.png^[transform1)",
  52. "default_stone_brick.png^(darkage_plaster.png^[transform3)",
  53. "default_stone_brick.png^darkage_plaster.png",
  54. "default_stone_brick.png^(darkage_plaster.png^[transform2)",
  55. "default_stone_brick.png",
  56. "darkage_chalk.png"},
  57. is_ground_content = false,
  58. paramtype2 = "facedir",
  59. groups = {cracky=3},
  60. sounds = default.node_sound_stone_defaults(),
  61. })
  62. minetest.register_node("darkage:desert_stone_with_iron", {
  63. description = "Desert Iron Ore",
  64. tiles = {"default_desert_stone.png^default_mineral_iron.png"},
  65. is_ground_content = true,
  66. groups = {cracky=3},
  67. drop = 'default:iron_lump',
  68. sounds = default.node_sound_stone_defaults(),
  69. })
  70. minetest.register_node("darkage:darkdirt", {
  71. description = "Dark Dirt",
  72. tiles = {"darkage_darkdirt.png"},
  73. is_ground_content = false,
  74. groups = {crumbly=2},
  75. sounds = default.node_sound_dirt_defaults(),
  76. })
  77. minetest.register_node("darkage:dry_leaves", {
  78. description = "Dry Leaves",
  79. tiles = {"darkage_dry_leaves.png"},
  80. is_ground_content = false,
  81. paramtype = "light",
  82. groups = {snappy=3, flammable=2},
  83. sounds = default.node_sound_leaves_defaults()
  84. })
  85. minetest.register_node("darkage:gneiss", {
  86. description = "Gneiss",
  87. tiles = {"darkage_gneiss.png"},
  88. is_ground_content = true,
  89. groups = {cracky=3},
  90. drop = {
  91. max_items = 1,
  92. items = {
  93. {
  94. -- player will get cobbles with 1/3 chance
  95. items = {'darkage:gneiss_cobble'},
  96. rarity = 3,
  97. },
  98. {
  99. items = {'darkage:gneiss'},
  100. }
  101. }
  102. },
  103. sounds = default.node_sound_stone_defaults()
  104. })
  105. minetest.register_node("darkage:gneiss_cobble", {
  106. description = "Gneiss Cobble",
  107. tiles = {"darkage_gneiss_cobble.png"},
  108. is_ground_content = false,
  109. groups = {cracky=3},
  110. sounds = default.node_sound_stone_defaults()
  111. })
  112. minetest.register_node("darkage:mud", {
  113. description = "Mud",
  114. tiles = {"darkage_mud_up.png","darkage_mud.png"},
  115. is_ground_content = true,
  116. groups = {crumbly=3},
  117. drop = 'darkage:mud_lump 4',
  118. sounds = default.node_sound_dirt_defaults({
  119. footstep = "",
  120. }),
  121. })
  122. minetest.register_node("darkage:ors", {
  123. description = "Old Red Sandstone",
  124. tiles = {"darkage_ors.png"},
  125. is_ground_content = true,
  126. drop = 'darkage:ors_cobble',
  127. groups = {crumbly=2,cracky=2},
  128. sounds = default.node_sound_stone_defaults()
  129. })
  130. minetest.register_node("darkage:ors_cobble", {
  131. description = "Old Red Sandstone Cobble",
  132. tiles = {"darkage_ors_cobble.png"},
  133. is_ground_content = false,
  134. groups = {crumbly=2,cracky=2},
  135. sounds = default.node_sound_stone_defaults()
  136. })
  137. minetest.register_node("darkage:shale", {
  138. description = "Shale",
  139. tiles = {"darkage_shale.png","darkage_shale.png","darkage_shale_side.png"},
  140. is_ground_content = true,
  141. groups = {crumbly=2,cracky=2},
  142. sounds = default.node_sound_stone_defaults()
  143. })
  144. minetest.register_node("darkage:schist", {
  145. description = "Schist",
  146. tiles = {"darkage_schist.png"},
  147. is_ground_content = true,
  148. groups = {cracky=3},
  149. sounds = default.node_sound_stone_defaults()
  150. })
  151. minetest.register_node("darkage:silt", {
  152. description = "Silt",
  153. tiles = {"darkage_silt.png"},
  154. is_ground_content = true,
  155. groups = {crumbly=3},
  156. drop = 'darkage:silt_lump 4',
  157. sounds = default.node_sound_dirt_defaults({
  158. footstep = "",
  159. }),
  160. })
  161. minetest.register_node("darkage:slate", {
  162. description = "Slate",
  163. tiles = {"darkage_slate.png","darkage_slate.png","darkage_slate_side.png"},
  164. is_ground_content = true,
  165. drop = 'darkage:slate_cobble',
  166. groups = {cracky=2},
  167. sounds = default.node_sound_stone_defaults()
  168. })
  169. minetest.register_node("darkage:slate_cobble", {
  170. description = "Slate Cobble",
  171. tiles = {"darkage_slate_cobble.png"},
  172. is_ground_content = false,
  173. groups = {cracky=2},
  174. sounds = default.node_sound_stone_defaults()
  175. })
  176. minetest.register_node("darkage:slate_tile", {
  177. description = "Slate Tile",
  178. tiles = {"darkage_slate_tile.png"},
  179. is_ground_content = false,
  180. groups = {cracky=2},
  181. sounds = default.node_sound_stone_defaults()
  182. })
  183. -- Removed straw, because its in minetst game. Registering alias for compatibility reasons
  184. minetest.register_alias("darkage:straw", "farming:straw")
  185. minetest.register_node("darkage:straw_bale", {
  186. description = "Straw Bale",
  187. tiles = {"darkage_straw_bale.png"},
  188. is_ground_content = false,
  189. drop = 'farming:straw 4',
  190. groups = {snappy=2, flammable=2},
  191. sounds = default.node_sound_leaves_defaults(),
  192. })
  193. --[[
  194. Tuff
  195. ]]
  196. minetest.register_node("darkage:tuff", {
  197. description = "Tuff",
  198. tiles = {"darkage_tuff.png"},
  199. is_ground_content = true,
  200. legacy_mineral = true,
  201. groups = {cracky = 3, stone = 1},
  202. drop = {
  203. max_items = 1,
  204. items = {
  205. {
  206. -- player get tuff node if he is lucky :)
  207. items = {'darkage:tuff'},
  208. rarity = 3,
  209. },
  210. {
  211. -- player will get rubble with 2/3 chance
  212. items = {'darkage:tuff_rubble'},
  213. }
  214. }
  215. },
  216. sounds = default.node_sound_stone_defaults()
  217. })
  218. minetest.register_node("darkage:tuff_bricks", {
  219. description = "Tuff Bricks",
  220. tiles = {"darkage_tuff_bricks.png"},
  221. is_ground_content = false,
  222. groups = {cracky=2},
  223. sounds = default.node_sound_stone_defaults()
  224. })
  225. -- abm to turn Tuff bricks to old Tuff bricks if water is nearby
  226. minetest.register_abm({
  227. nodenames = {"darkage:tuff_bricks"},
  228. neighbors = {"group:water"},
  229. interval = 16,
  230. chance = 200,
  231. catch_up = false,
  232. action = function(pos, node)
  233. minetest.set_node(pos, {name = "darkage:old_tuff_bricks"})
  234. end
  235. })
  236. minetest.register_node("darkage:tuff_rubble", {
  237. description = "Tuff Rubble",
  238. tiles = {"darkage_tuff_rubble.png"},
  239. groups = {crumbly = 2, falling_node = 1},
  240. sounds = default.node_sound_gravel_defaults(),
  241. })
  242. --[[
  243. Rhyolitic Tuff
  244. ]]
  245. minetest.register_node("darkage:rhyolitic_tuff", {
  246. description = "Rhyolitic Tuff",
  247. tiles = {"darkage_rhyolitic_tuff.png"},
  248. is_ground_content = true,
  249. legacy_mineral = true,
  250. groups = {cracky = 3, stone = 1},
  251. drop = {
  252. max_items = 1,
  253. items = {
  254. {
  255. -- player get tuff node if he is lucky :)
  256. items = {'darkage:rhyolitic_tuff'},
  257. rarity = 3,
  258. },
  259. {
  260. -- player will get rubble with 2/3 chance
  261. items = {'darkage:rhyolitic_tuff_rubble'},
  262. }
  263. }
  264. },
  265. sounds = default.node_sound_stone_defaults()
  266. })
  267. minetest.register_node("darkage:rhyolitic_tuff_bricks", {
  268. description = "Rhyolitic Tuff Bricks",
  269. tiles = {"darkage_rhyolitic_tuff_bricks.png"},
  270. is_ground_content = false,
  271. groups = {cracky=2},
  272. sounds = default.node_sound_stone_defaults()
  273. })
  274. minetest.register_node("darkage:old_tuff_bricks", {
  275. description = "Old Tuff Bricks",
  276. tiles = {"darkage_old_tuff_bricks.png"},
  277. is_ground_content = false,
  278. groups = {cracky=3},
  279. sounds = default.node_sound_stone_defaults()
  280. })
  281. minetest.register_node("darkage:rhyolitic_tuff_rubble", {
  282. description = "Rhyolitic Tuff Rubble",
  283. tiles = {"darkage_rhyolitic_tuff_rubble.png"},
  284. groups = {crumbly = 2, falling_node = 1},
  285. sounds = default.node_sound_gravel_defaults(),
  286. })