wood.lua 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. local S = ethereal.intllib
  2. -- sakura trunk
  3. minetest.register_node("ethereal:sakura_trunk", {
  4. description = S("Sakura Trunk"),
  5. tiles = {
  6. "ethereal_sakura_trunk_top.png",
  7. "ethereal_sakura_trunk_top.png",
  8. "ethereal_sakura_trunk.png"
  9. },
  10. groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
  11. sounds = default.node_sound_wood_defaults(),
  12. paramtype2 = "facedir",
  13. on_place = minetest.rotate_node
  14. })
  15. -- sakura wood
  16. minetest.register_node("ethereal:sakura_wood", {
  17. description = S("Sakura Wood"),
  18. tiles = {"ethereal_sakura_wood.png"},
  19. is_ground_content = false,
  20. groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  21. sounds = default.node_sound_wood_defaults(),
  22. paramtype2 = "facedir",
  23. on_place = minetest.rotate_node
  24. })
  25. minetest.register_craft({
  26. output = "ethereal:sakura_wood 4",
  27. recipe = {{"ethereal:sakura_trunk"}}
  28. })
  29. -- willow trunk
  30. minetest.register_node("ethereal:willow_trunk", {
  31. description = S("Willow Trunk"),
  32. tiles = {
  33. "ethereal_willow_trunk_top.png",
  34. "ethereal_willow_trunk_top.png",
  35. "ethereal_willow_trunk.png"
  36. },
  37. groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
  38. sounds = default.node_sound_wood_defaults(),
  39. paramtype2 = "facedir",
  40. on_place = minetest.rotate_node
  41. })
  42. -- willow wood
  43. minetest.register_node("ethereal:willow_wood", {
  44. description = S("Willow Wood"),
  45. tiles = {"ethereal_willow_wood.png"},
  46. is_ground_content = false,
  47. groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  48. sounds = default.node_sound_wood_defaults(),
  49. paramtype2 = "facedir",
  50. on_place = minetest.rotate_node
  51. })
  52. minetest.register_craft({
  53. output = "ethereal:willow_wood 4",
  54. recipe = {{"ethereal:willow_trunk"}}
  55. })
  56. -- redwood trunk
  57. minetest.register_node("ethereal:redwood_trunk", {
  58. description = S("Redwood Trunk"),
  59. tiles = {
  60. "ethereal_redwood_trunk_top.png",
  61. "ethereal_redwood_trunk_top.png",
  62. "ethereal_redwood_trunk.png"
  63. },
  64. groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
  65. sounds = default.node_sound_wood_defaults(),
  66. paramtype2 = "facedir",
  67. on_place = minetest.rotate_node
  68. })
  69. -- redwood wood
  70. minetest.register_node("ethereal:redwood_wood", {
  71. description = S("Redwood Wood"),
  72. tiles = {"ethereal_redwood_wood.png"},
  73. is_ground_content = false,
  74. groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  75. sounds = default.node_sound_wood_defaults(),
  76. paramtype2 = "facedir",
  77. on_place = minetest.rotate_node
  78. })
  79. minetest.register_craft({
  80. output = "ethereal:redwood_wood 4",
  81. recipe = {{"ethereal:redwood_trunk"}}
  82. })
  83. -- frost trunk
  84. minetest.register_node("ethereal:frost_tree", {
  85. description = S("Frost Tree"),
  86. tiles = {
  87. "ethereal_frost_tree_top.png",
  88. "ethereal_frost_tree_top.png",
  89. "ethereal_frost_tree.png"
  90. },
  91. groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, puts_out_fire = 1},
  92. sounds = default.node_sound_wood_defaults(),
  93. paramtype2 = "facedir",
  94. on_place = minetest.rotate_node
  95. })
  96. -- frost wood
  97. minetest.register_node("ethereal:frost_wood", {
  98. description = S("Frost Wood"),
  99. tiles = {"ethereal_frost_wood.png"},
  100. is_ground_content = false,
  101. groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1},
  102. sounds = default.node_sound_wood_defaults(),
  103. paramtype2 = "facedir",
  104. on_place = minetest.rotate_node
  105. })
  106. minetest.register_craft({
  107. output = "ethereal:frost_wood 4",
  108. recipe = {{"ethereal:frost_tree"}}
  109. })
  110. -- healing trunk
  111. minetest.register_node("ethereal:yellow_trunk", {
  112. description = S("Healing Tree Trunk"),
  113. tiles = {
  114. "ethereal_yellow_tree_top.png",
  115. "ethereal_yellow_tree_top.png",
  116. "ethereal_yellow_tree.png"
  117. },
  118. groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, puts_out_fire = 1},
  119. sounds = default.node_sound_wood_defaults(),
  120. paramtype2 = "facedir",
  121. on_place = minetest.rotate_node
  122. })
  123. -- healing wood
  124. minetest.register_node("ethereal:yellow_wood", {
  125. description = S("Healing Tree Wood"),
  126. tiles = {"ethereal_yellow_wood.png"},
  127. is_ground_content = false,
  128. groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1},
  129. sounds = default.node_sound_wood_defaults(),
  130. paramtype2 = "facedir",
  131. on_place = minetest.rotate_node
  132. })
  133. minetest.register_craft({
  134. output = "ethereal:yellow_wood 4",
  135. recipe = {{"ethereal:yellow_trunk"}}
  136. })
  137. -- palm trunk (thanks to VanessaE for palm textures)
  138. minetest.register_node("ethereal:palm_trunk", {
  139. description = S("Palm Trunk"),
  140. tiles = {
  141. "moretrees_palm_trunk_top.png",
  142. "moretrees_palm_trunk_top.png",
  143. "moretrees_palm_trunk.png"
  144. },
  145. groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
  146. sounds = default.node_sound_wood_defaults(),
  147. paramtype2 = "facedir",
  148. on_place = minetest.rotate_node
  149. })
  150. -- palm wood
  151. minetest.register_node("ethereal:palm_wood", {
  152. description = S("Palm Wood"),
  153. tiles = {"moretrees_palm_wood.png"},
  154. is_ground_content = false,
  155. groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  156. sounds = default.node_sound_wood_defaults(),
  157. paramtype2 = "facedir",
  158. on_place = minetest.rotate_node
  159. })
  160. minetest.register_craft({
  161. output = "ethereal:palm_wood 4",
  162. recipe = {{"ethereal:palm_trunk"}}
  163. })
  164. -- banana trunk
  165. minetest.register_node("ethereal:banana_trunk", {
  166. description = S("Banana Trunk"),
  167. tiles = {
  168. "ethereal_banana_trunk_top.png",
  169. "ethereal_banana_trunk_top.png",
  170. "ethereal_banana_trunk.png"
  171. },
  172. groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
  173. sounds = default.node_sound_wood_defaults(),
  174. paramtype2 = "facedir",
  175. on_place = minetest.rotate_node
  176. })
  177. -- banana wood
  178. minetest.register_node("ethereal:banana_wood", {
  179. description = S("Banana Wood"),
  180. tiles = {"ethereal_banana_wood.png"},
  181. is_ground_content = false,
  182. groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  183. sounds = default.node_sound_wood_defaults(),
  184. paramtype2 = "facedir",
  185. on_place = minetest.rotate_node
  186. })
  187. minetest.register_craft({
  188. output = "ethereal:banana_wood 4",
  189. recipe = {{"ethereal:banana_trunk"}}
  190. })
  191. -- scorched trunk
  192. minetest.register_node("ethereal:scorched_tree", {
  193. description = S("Scorched Tree"),
  194. tiles = {
  195. "ethereal_scorched_tree_top.png",
  196. "ethereal_scorched_tree_top.png",
  197. "ethereal_scorched_tree.png"
  198. },
  199. groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 1},
  200. sounds = default.node_sound_wood_defaults(),
  201. paramtype2 = "facedir",
  202. on_place = minetest.rotate_node
  203. })
  204. minetest.register_craft({
  205. output = "ethereal:scorched_tree 8",
  206. recipe = {
  207. {"group:tree", "group:tree", "group:tree"},
  208. {"group:tree", "default:torch", "group:tree"},
  209. {"group:tree", "group:tree", "group:tree"}
  210. }
  211. })
  212. -- mushroom trunk
  213. minetest.register_node("ethereal:mushroom_trunk", {
  214. description = S("Mushroom"),
  215. tiles = {
  216. "ethereal_mushroom_trunk_top.png",
  217. "ethereal_mushroom_trunk_top.png",
  218. "ethereal_mushroom_trunk.png"
  219. },
  220. groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
  221. sounds = default.node_sound_wood_defaults(),
  222. paramtype2 = "facedir",
  223. on_place = minetest.rotate_node
  224. })
  225. -- birch trunk (thanks to VanessaE for birch textures)
  226. minetest.register_node("ethereal:birch_trunk", {
  227. description = S("Birch Trunk"),
  228. tiles = {
  229. "moretrees_birch_trunk_top.png",
  230. "moretrees_birch_trunk_top.png",
  231. "moretrees_birch_trunk.png"
  232. },
  233. groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
  234. sounds = default.node_sound_wood_defaults(),
  235. paramtype2 = "facedir",
  236. on_place = minetest.rotate_node
  237. })
  238. -- birch wood
  239. minetest.register_node("ethereal:birch_wood", {
  240. description = S("Birch Wood"),
  241. tiles = {"moretrees_birch_wood.png"},
  242. is_ground_content = false,
  243. groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  244. sounds = default.node_sound_wood_defaults(),
  245. paramtype2 = "facedir",
  246. on_place = minetest.rotate_node
  247. })
  248. minetest.register_craft({
  249. output = "ethereal:birch_wood 4",
  250. recipe = {{"ethereal:birch_trunk"}}
  251. })
  252. -- Bamboo (thanks to Nelo-slay on DeviantArt for the free Bamboo base image)
  253. minetest.register_node("ethereal:bamboo", {
  254. description = S("Bamboo"),
  255. drawtype = "plantlike",
  256. tiles = {"ethereal_bamboo_trunk.png"},
  257. inventory_image = "ethereal_bamboo_trunk.png",
  258. wield_image = "ethereal_bamboo_trunk.png",
  259. paramtype = "light",
  260. sunlight_propagates = true,
  261. walkable = true,
  262. selection_box = {
  263. type = "fixed",
  264. fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
  265. },
  266. groups = {choppy = 3, oddly_breakable_by_hand = 1, flammable = 2},
  267. sounds = default.node_sound_leaves_defaults(),
  268. after_dig_node = function(pos, node, metadata, digger)
  269. default.dig_up(pos, node, digger)
  270. end
  271. })
  272. minetest.register_craft({
  273. type = "fuel",
  274. recipe = "ethereal:bamboo",
  275. burntime = 2
  276. })
  277. -- olive trunk
  278. minetest.register_node("ethereal:olive_trunk", {
  279. description = S("Olive Trunk"),
  280. tiles = {
  281. "ethereal_olive_trunk_top.png",
  282. "ethereal_olive_trunk_top.png",
  283. "ethereal_olive_trunk.png"
  284. },
  285. groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
  286. sounds = default.node_sound_wood_defaults(),
  287. paramtype2 = "facedir",
  288. on_place = minetest.rotate_node
  289. })
  290. -- olive wood
  291. minetest.register_node("ethereal:olive_wood", {
  292. description = S("Olive Wood"),
  293. tiles = {"ethereal_olive_wood.png"},
  294. is_ground_content = false,
  295. groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  296. sounds = default.node_sound_wood_defaults(),
  297. paramtype2 = "facedir",
  298. on_place = minetest.rotate_node
  299. })
  300. minetest.register_craft({
  301. output = "ethereal:olive_wood 4",
  302. recipe = {{"ethereal:olive_trunk"}}
  303. })