nodes.lua 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  1. -- Christmas Holiday Pack by FreeGamers.org
  2. -- MAIN NODES
  3. -- Candy Cane Block
  4. minetest.register_node("christmas_holiday_pack:candy_cane_block", {
  5. description = "Candy Cane Block",
  6. tiles = {"christmas_holiday_pack_candy_cane_block.png", "christmas_holiday_pack_candy_cane_block.png", "christmas_holiday_pack_candy_cane_block.png", "christmas_holiday_pack_candy_cane_block.png", "christmas_holiday_pack_candy_cane_block.png^[transformFX", "christmas_holiday_pack_candy_cane_block.png^[transformFX"},
  7. paramtype2 = "facedir",
  8. groups = {snappy = 3, oddly_breakable_by_hand = 3},
  9. sounds = default.node_sound_glass_defaults(),
  10. })
  11. -- Green Candy Cane Block
  12. minetest.register_node("christmas_holiday_pack:green_candy_cane_block", {
  13. description = "Green Candy Cane Block",
  14. tiles = {"christmas_holiday_pack_green_candy_cane_block.png", "christmas_holiday_pack_green_candy_cane_block.png", "christmas_holiday_pack_green_candy_cane_block.png", "christmas_holiday_pack_green_candy_cane_block.png", "christmas_holiday_pack_green_candy_cane_block.png^[transformFX", "christmas_holiday_pack_green_candy_cane_block.png^[transformFX"},
  15. paramtype2 = "facedir",
  16. groups = {snappy = 3, oddly_breakable_by_hand = 3},
  17. sounds = default.node_sound_glass_defaults(),
  18. })
  19. -- Gingerbread Block
  20. minetest.register_node("christmas_holiday_pack:gingerbread_block", {
  21. description = "Gingerbread Block",
  22. tiles = {"christmas_holiday_pack_gingerbread_block.png", "christmas_holiday_pack_gingerbread_block.png", "christmas_holiday_pack_gingerbread_block.png", "christmas_holiday_pack_gingerbread_block.png", "christmas_holiday_pack_gingerbread_block.png^[transformFX", "christmas_holiday_pack_gingerbread_block.png^[transformFX"},
  23. paramtype2 = "facedir",
  24. groups = {snappy = 3, choppy = 2, oddly_breakable_by_hand = 2},
  25. sounds = default.node_sound_wood_defaults(),
  26. })
  27. -- Frosting Block
  28. minetest.register_node("christmas_holiday_pack:frosting_block", {
  29. description = "Frosting Block",
  30. tiles = {"christmas_holiday_pack_frosting_block.png"},
  31. paramtype2 = "facedir",
  32. groups = {snappy = 3},
  33. sounds = default.node_sound_leaves_defaults(),
  34. })
  35. -- StairsPlus Registrations for Candy Cane Block, Green Candy Cane Block, Gingerbread Block, Frosting Block.
  36. if minetest.get_modpath("moreblocks") then
  37. stairsplus:register_all(
  38. "christmas_holiday_pack", "candy_cane_block", "christmas_holiday_pack:candy_cane_block", {
  39. description = "Candy Cane Block",
  40. groups = {snappy = 3, oddly_breakable_by_hand = 3},
  41. tiles = {"christmas_holiday_pack_candy_cane_block.png"},
  42. sounds = default.node_sound_glass_defaults(),
  43. })
  44. stairsplus:register_all(
  45. "christmas_holiday_pack", "green_candy_cane_block", "christmas_holiday_pack:green_candy_cane_block", {
  46. description = "Green Candy Cane Block",
  47. groups = {snappy = 3, oddly_breakable_by_hand = 3},
  48. tiles = {"christmas_holiday_pack_green_candy_cane_block.png"},
  49. sounds = default.node_sound_glass_defaults(),
  50. })
  51. stairsplus:register_all(
  52. "christmas_holiday_pack", "gingerbread_block", "christmas_holiday_pack:gingerbread_block", {
  53. description = "Gingerbread Block",
  54. groups = {snappy = 3, choppy = 2, oddly_breakable_by_hand = 2},
  55. tiles = {"christmas_holiday_pack_gingerbread_block.png"},
  56. sounds = default.node_sound_wood_defaults(),
  57. })
  58. stairsplus:register_all(
  59. "christmas_holiday_pack", "frosting_block", "christmas_holiday_pack:frosting_block", {
  60. description = "Frosting",
  61. groups = {snappy = 3},
  62. tiles = {"christmas_holiday_pack_frosting_block.png"},
  63. sounds = default.node_sound_stone_defaults(),
  64. })
  65. end
  66. -- DECORATIVE NODES
  67. -- Mistletoe
  68. minetest.register_node("christmas_holiday_pack:mistletoe", {
  69. description = "Mistletoe",
  70. tiles = {"christmas_holiday_pack_mistletoe.png"},
  71. drawtype = "plantlike",
  72. walkable = false,
  73. sunlight_propagates = true,
  74. use_texture_alpha = "clip",
  75. groups = {snappy = 3, oddly_breakable_by_hand = 3},
  76. sounds = default.node_sound_leaves_defaults(),
  77. })
  78. -- Christmas Reef
  79. minetest.register_node("christmas_holiday_pack:reef", {
  80. description = "Christmas Reef",
  81. tiles = {"christmas_holiday_pack_christmas_reef.png"},
  82. inventory_image = "christmas_holiday_pack_christmas_reef.png",
  83. wield_image = "christmas_holiday_pack_christmas_reef.png",
  84. sunlight_propagates = true,
  85. walkable = false,
  86. climbable = false,
  87. is_ground_content = false,
  88. selection_box = {
  89. type = "wallmounted",
  90. },
  91. legacy_wallmounted = true,
  92. use_texture_alpha = "clip",
  93. drawtype = "signlike",
  94. paramtype = "light",
  95. paramtype2 = "wallmounted",
  96. groups = {snappy = 3, oddly_breakable_by_hand = 3},
  97. sounds = default.node_sound_leaves_defaults(),
  98. })
  99. -- Icicles
  100. minetest.register_node("christmas_holiday_pack:icicles", {
  101. description = "Icicles",
  102. tiles = {"christmas_holiday_pack_icicles.png"},
  103. inventory_image = "christmas_holiday_pack_icicles.png",
  104. wield_image = "christmas_holiday_pack_icicles.png",
  105. sunlight_propagates = true,
  106. walkable = false,
  107. climbable = false,
  108. is_ground_content = false,
  109. selection_box = {
  110. type = "wallmounted",
  111. },
  112. legacy_wallmounted = true,
  113. use_texture_alpha = "clip",
  114. drawtype = "signlike",
  115. paramtype = "light",
  116. paramtype2 = "wallmounted",
  117. groups = {snappy = 3},
  118. sounds = default.node_sound_glass_defaults(),
  119. })
  120. -- Christmas Tree Star
  121. minetest.register_node("christmas_holiday_pack:christmas_star", {
  122. description = "Christmas Star",
  123. tiles = {"christmas_holiday_pack_christmas_star.png"},
  124. drawtype = "plantlike",
  125. walkable = false,
  126. sunlight_propagates = true,
  127. use_texture_alpha = "clip",
  128. groups = {snappy = 3, oddly_breakable_by_hand = 3},
  129. light_source = 8,
  130. sounds = default.node_sound_metal_defaults(),
  131. })
  132. -- Garland
  133. minetest.register_node("christmas_holiday_pack:garland", {
  134. description = "Garland",
  135. tiles = {"garland_green.png"},
  136. inventory_image = "garland_green.png",
  137. wield_image = "garland_green.png",
  138. sunlight_propagates = true,
  139. walkable = false,
  140. climbable = false,
  141. is_ground_content = false,
  142. selection_box = {
  143. type = "wallmounted",
  144. },
  145. legacy_wallmounted = true,
  146. use_texture_alpha = "clip",
  147. drawtype = "signlike",
  148. paramtype = "light",
  149. paramtype2 = "wallmounted",
  150. groups = {snappy = 3},
  151. sounds = default.node_sound_leaves_defaults(),
  152. })
  153. -- Festive Garland
  154. minetest.register_node("christmas_holiday_pack:festive_garland", {
  155. description = "Festive Garland",
  156. tiles = {"garland.png"},
  157. inventory_image = "garland.png",
  158. wield_image = "garland.png",
  159. sunlight_propagates = true,
  160. walkable = false,
  161. climbable = false,
  162. is_ground_content = false,
  163. selection_box = {
  164. type = "wallmounted",
  165. },
  166. legacy_wallmounted = true,
  167. use_texture_alpha = "clip",
  168. drawtype = "signlike",
  169. paramtype = "light",
  170. paramtype2 = "wallmounted",
  171. groups = {snappy = 3},
  172. sounds = default.node_sound_leaves_defaults(),
  173. })
  174. -- Festive Garland with Lights
  175. minetest.register_node("christmas_holiday_pack:festive_garland_lights", {
  176. description = "Festive Garland with Lights",
  177. tiles = {
  178. {
  179. image = "garland_lights.png",
  180. backface_culling = false,
  181. animation = {
  182. type = "vertical_frames",
  183. aspect_w = 64,
  184. aspect_h = 64,
  185. length = 16
  186. },
  187. }
  188. },
  189. inventory_image = "inv_garland_lights.png",
  190. wield_image = "inv_garland_lights.png",
  191. sunlight_propagates = true,
  192. walkable = false,
  193. climbable = false,
  194. is_ground_content = false,
  195. selection_box = {
  196. type = "wallmounted",
  197. },
  198. legacy_wallmounted = true,
  199. use_texture_alpha = "clip",
  200. drawtype = "signlike",
  201. paramtype = "light",
  202. light_source = 8,
  203. paramtype2 = "wallmounted",
  204. groups = {snappy = 3},
  205. sounds = default.node_sound_leaves_defaults(),
  206. })
  207. -- Red Garland
  208. minetest.register_node("christmas_holiday_pack:garland_red", {
  209. description = "Red Garland",
  210. tiles = {"garland_red.png"},
  211. inventory_image = "garland_red.png",
  212. wield_image = "garland_red.png",
  213. sunlight_propagates = true,
  214. walkable = false,
  215. climbable = false,
  216. is_ground_content = false,
  217. selection_box = {
  218. type = "wallmounted",
  219. },
  220. legacy_wallmounted = true,
  221. use_texture_alpha = "clip",
  222. drawtype = "signlike",
  223. paramtype = "light",
  224. paramtype2 = "wallmounted",
  225. groups = {snappy = 3},
  226. sounds = default.node_sound_leaves_defaults(),
  227. })
  228. -- Yellow Garland
  229. minetest.register_node("christmas_holiday_pack:garland_yellow", {
  230. description = "Yellow Garland",
  231. tiles = {"garland_yellow.png"},
  232. inventory_image = "garland_yellow.png",
  233. wield_image = "garland_yellow.png",
  234. sunlight_propagates = true,
  235. walkable = false,
  236. climbable = false,
  237. is_ground_content = false,
  238. selection_box = {
  239. type = "wallmounted",
  240. },
  241. legacy_wallmounted = true,
  242. use_texture_alpha = "clip",
  243. drawtype = "signlike",
  244. paramtype = "light",
  245. paramtype2 = "wallmounted",
  246. groups = {snappy = 3},
  247. sounds = default.node_sound_leaves_defaults(),
  248. })
  249. -- White Garland
  250. minetest.register_node("christmas_holiday_pack:garland_white", {
  251. description = "White Garland",
  252. tiles = {"garland_white.png"},
  253. inventory_image = "garland_white.png",
  254. wield_image = "garland_white.png",
  255. sunlight_propagates = true,
  256. walkable = false,
  257. climbable = false,
  258. is_ground_content = false,
  259. selection_box = {
  260. type = "wallmounted",
  261. },
  262. legacy_wallmounted = true,
  263. use_texture_alpha = "clip",
  264. drawtype = "signlike",
  265. paramtype = "light",
  266. paramtype2 = "wallmounted",
  267. groups = {snappy = 3},
  268. sounds = default.node_sound_leaves_defaults(),
  269. })
  270. -- ORNAMENTS
  271. --
  272. -- White Ornament
  273. minetest.register_node("christmas_holiday_pack:ornament_white", {
  274. description = "White Christmas Ornament",
  275. tiles = {"christmas_holiday_pack_ornament_white.png"},
  276. inventory_image = "christmas_holiday_pack_ornament_white.png",
  277. wield_image = "christmas_holiday_pack_ornament_white.png",
  278. sunlight_propagates = true,
  279. walkable = false,
  280. climbable = false,
  281. is_ground_content = false,
  282. selection_box = {
  283. type = "wallmounted",
  284. },
  285. legacy_wallmounted = true,
  286. use_texture_alpha = "clip",
  287. drawtype = "signlike",
  288. paramtype = "light",
  289. paramtype2 = "wallmounted",
  290. groups = {snappy = 3, oddly_breakable_by_hand = 3},
  291. sounds = default.node_sound_glass_defaults(),
  292. })
  293. -- Yellow Ornament
  294. minetest.register_node("christmas_holiday_pack:ornament_yellow", {
  295. description = "Yellow Christmas Ornament",
  296. tiles = {"christmas_holiday_pack_ornament_yellow.png"},
  297. inventory_image = "christmas_holiday_pack_ornament_yellow.png",
  298. wield_image = "christmas_holiday_pack_ornament_yellow.png",
  299. sunlight_propagates = true,
  300. walkable = false,
  301. climbable = false,
  302. is_ground_content = false,
  303. selection_box = {
  304. type = "wallmounted",
  305. },
  306. legacy_wallmounted = true,
  307. use_texture_alpha = "clip",
  308. drawtype = "signlike",
  309. paramtype = "light",
  310. paramtype2 = "wallmounted",
  311. groups = {snappy = 3, oddly_breakable_by_hand = 3},
  312. sounds = default.node_sound_glass_defaults(),
  313. })
  314. -- Red Ornament
  315. minetest.register_node("christmas_holiday_pack:ornament_red", {
  316. description = "Red Christmas Ornament",
  317. tiles = {"christmas_holiday_pack_ornament_red.png"},
  318. inventory_image = "christmas_holiday_pack_ornament_red.png",
  319. wield_image = "christmas_holiday_pack_ornament_red.png",
  320. sunlight_propagates = true,
  321. walkable = false,
  322. climbable = false,
  323. is_ground_content = false,
  324. selection_box = {
  325. type = "wallmounted",
  326. },
  327. legacy_wallmounted = true,
  328. use_texture_alpha = "clip",
  329. drawtype = "signlike",
  330. paramtype = "light",
  331. paramtype2 = "wallmounted",
  332. groups = {snappy = 3, oddly_breakable_by_hand = 3},
  333. sounds = default.node_sound_glass_defaults(),
  334. })
  335. -- Green Ornament
  336. minetest.register_node("christmas_holiday_pack:ornament_green", {
  337. description = "Green Christmas Ornament",
  338. tiles = {"christmas_holiday_pack_ornament_green.png"},
  339. inventory_image = "christmas_holiday_pack_ornament_green.png",
  340. wield_image = "christmas_holiday_pack_ornament_green.png",
  341. sunlight_propagates = true,
  342. walkable = false,
  343. climbable = false,
  344. is_ground_content = false,
  345. selection_box = {
  346. type = "wallmounted",
  347. },
  348. legacy_wallmounted = true,
  349. use_texture_alpha = "clip",
  350. drawtype = "signlike",
  351. paramtype = "light",
  352. paramtype2 = "wallmounted",
  353. groups = {snappy = 3, oddly_breakable_by_hand = 3},
  354. sounds = default.node_sound_glass_defaults(),
  355. })
  356. -- Blue Ornament
  357. minetest.register_node("christmas_holiday_pack:ornament_blue", {
  358. description = "Blue Christmas Ornament",
  359. tiles = {"christmas_holiday_pack_ornament_blue.png"},
  360. inventory_image = "christmas_holiday_pack_ornament_blue.png",
  361. wield_image = "christmas_holiday_pack_ornament_blue.png",
  362. sunlight_propagates = true,
  363. walkable = false,
  364. climbable = false,
  365. is_ground_content = false,
  366. selection_box = {
  367. type = "wallmounted",
  368. },
  369. legacy_wallmounted = true,
  370. use_texture_alpha = "clip",
  371. drawtype = "signlike",
  372. paramtype = "light",
  373. paramtype2 = "wallmounted",
  374. groups = {snappy = 3, oddly_breakable_by_hand = 3},
  375. sounds = default.node_sound_glass_defaults(),
  376. })
  377. -- Orange Ornament
  378. minetest.register_node("christmas_holiday_pack:ornament_orange", {
  379. description = "Orange Christmas Ornament",
  380. tiles = {"christmas_holiday_pack_ornament_orange.png"},
  381. inventory_image = "christmas_holiday_pack_ornament_orange.png",
  382. wield_image = "christmas_holiday_pack_ornament_orange.png",
  383. sunlight_propagates = true,
  384. walkable = false,
  385. climbable = false,
  386. is_ground_content = false,
  387. selection_box = {
  388. type = "wallmounted",
  389. },
  390. legacy_wallmounted = true,
  391. use_texture_alpha = "clip",
  392. drawtype = "signlike",
  393. paramtype = "light",
  394. paramtype2 = "wallmounted",
  395. groups = {snappy = 3, oddly_breakable_by_hand = 3},
  396. sounds = default.node_sound_glass_defaults(),
  397. })
  398. -- Purple Ornament
  399. minetest.register_node("christmas_holiday_pack:ornament_purple", {
  400. description = "Purple Christmas Ornament",
  401. tiles = {"christmas_holiday_pack_ornament_purple.png"},
  402. inventory_image = "christmas_holiday_pack_ornament_purple.png",
  403. wield_image = "christmas_holiday_pack_ornament_purple.png",
  404. sunlight_propagates = true,
  405. walkable = false,
  406. climbable = false,
  407. is_ground_content = false,
  408. selection_box = {
  409. type = "wallmounted",
  410. },
  411. legacy_wallmounted = true,
  412. use_texture_alpha = "clip",
  413. drawtype = "signlike",
  414. paramtype = "light",
  415. paramtype2 = "wallmounted",
  416. groups = {snappy = 3, oddly_breakable_by_hand = 3},
  417. sounds = default.node_sound_glass_defaults(),
  418. })
  419. -- Pink Ornament
  420. minetest.register_node("christmas_holiday_pack:ornament_pink", {
  421. description = "Pink Christmas Ornament",
  422. tiles = {"christmas_holiday_pack_ornament_pink.png"},
  423. inventory_image = "christmas_holiday_pack_ornament_pink.png",
  424. wield_image = "christmas_holiday_pack_ornament_pink.png",
  425. sunlight_propagates = true,
  426. walkable = false,
  427. climbable = false,
  428. is_ground_content = false,
  429. selection_box = {
  430. type = "wallmounted",
  431. },
  432. legacy_wallmounted = true,
  433. use_texture_alpha = "clip",
  434. drawtype = "signlike",
  435. paramtype = "light",
  436. paramtype2 = "wallmounted",
  437. groups = {snappy = 3, oddly_breakable_by_hand = 3},
  438. sounds = default.node_sound_glass_defaults(),
  439. })