init.lua 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. -- Register default stairs and slabs
  2. --
  3. -- ICE! stairs and slabs. By MustTest
  4. stairs.register_stair_and_slab(
  5. "ice",
  6. "default:ice",
  7. {cracky = 3, puts_out_fire = 1, cold = 1, slippery = 1},
  8. {"default_ice.png"},
  9. "Ice",
  10. default.node_sound_glass_defaults()
  11. )
  12. stairs.register_stair_and_slab(
  13. "wood",
  14. "basictrees:tree_wood",
  15. {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
  16. {"default_wood.png"},
  17. "Wooden",
  18. default.node_sound_wood_defaults()
  19. )
  20. stairs.register_stair_and_slab(
  21. "junglewood",
  22. "basictrees:jungletree_wood",
  23. {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
  24. {"default_junglewood.png"},
  25. "Jungle Wood",
  26. default.node_sound_wood_defaults()
  27. )
  28. stairs.register_stair_and_slab(
  29. "pine_wood",
  30. "basictrees:pine_wood",
  31. {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3},
  32. {"default_pine_wood.png"},
  33. "Pine Wood",
  34. default.node_sound_wood_defaults()
  35. )
  36. stairs.register_stair_and_slab(
  37. "acacia_wood",
  38. "basictrees:acacia_wood",
  39. {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
  40. {"default_acacia_wood.png"},
  41. "Acacia Wood",
  42. default.node_sound_wood_defaults()
  43. )
  44. stairs.register_stair_and_slab(
  45. "aspen_wood",
  46. "basictrees:aspen_wood",
  47. {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3},
  48. {"default_aspen_wood.png"},
  49. "Aspen Wood",
  50. default.node_sound_wood_defaults()
  51. )
  52. stairs.register_stair_and_slab(
  53. "stone",
  54. "default:stone",
  55. {cracky = 3},
  56. {"default_stone.png"},
  57. "Stone",
  58. default.node_sound_stone_defaults()
  59. )
  60. stairs.register_stair_and_slab(
  61. "cobble",
  62. "default:cobble",
  63. {cracky = 3},
  64. {"default_cobble.png"},
  65. "Cobblestone",
  66. default.node_sound_stone_defaults()
  67. )
  68. stairs.register_stair_and_slab(
  69. "mossycobble",
  70. "default:mossycobble",
  71. {cracky = 3},
  72. {"default_mossycobble.png"},
  73. "Mossy Cobblestone",
  74. default.node_sound_stone_defaults()
  75. )
  76. stairs.register_stair_and_slab(
  77. "stonebrick",
  78. "default:stonebrick",
  79. {cracky = 2},
  80. {"default_stone_brick.png"},
  81. "Stone Brick",
  82. default.node_sound_stone_defaults()
  83. )
  84. stairs.register_stair_and_slab(
  85. "stone_block",
  86. "default:stone_block",
  87. {cracky = 2},
  88. {"default_stone_block.png"},
  89. "Stone Block",
  90. default.node_sound_stone_defaults()
  91. )
  92. stairs.register_stair_and_slab(
  93. "desert_stone",
  94. "default:desert_stone",
  95. {cracky = 3},
  96. {"default_desert_stone.png"},
  97. "Redstone",
  98. default.node_sound_stone_defaults()
  99. )
  100. stairs.register_stair_and_slab(
  101. "desert_cobble",
  102. "default:desert_cobble",
  103. {cracky = 3},
  104. {"default_desert_cobble.png"},
  105. "Chalked Cobble Redstone",
  106. default.node_sound_stone_defaults()
  107. )
  108. stairs.register_stair_and_slab(
  109. "desert_cobble2",
  110. "default:desert_cobble2",
  111. {cracky = 3},
  112. {"default_desert_cobble2.png"},
  113. "Cobble Redstone",
  114. default.node_sound_stone_defaults()
  115. )
  116. stairs.register_stair_and_slab(
  117. "desert_stonebrick",
  118. "default:desert_stonebrick",
  119. {cracky = 2},
  120. {"default_desert_stone_brick.png"},
  121. "Redstone Brick",
  122. default.node_sound_stone_defaults()
  123. )
  124. stairs.register_stair_and_slab(
  125. "desert_stone_block",
  126. "default:desert_stone_block",
  127. {cracky = 2},
  128. {"default_desert_stone_block.png"},
  129. "Redstone Block",
  130. default.node_sound_stone_defaults()
  131. )
  132. stairs.register_stair_and_slab(
  133. "sandstone",
  134. "default:sandstone",
  135. {cracky = 3},
  136. {"default_sandstone.png"},
  137. "Sandstone",
  138. default.node_sound_stone_defaults()
  139. )
  140. stairs.register_stair_and_slab(
  141. "sandstonebrick",
  142. "default:sandstonebrick",
  143. {cracky = 2},
  144. {"default_sandstone_brick.png"},
  145. "Sandstone Brick",
  146. default.node_sound_stone_defaults()
  147. )
  148. stairs.register_stair_and_slab(
  149. "sandstone_block",
  150. "default:sandstone_block",
  151. {cracky = 2},
  152. {"default_sandstone_block.png"},
  153. "Sandstone Block",
  154. default.node_sound_stone_defaults()
  155. )
  156. stairs.register_stair_and_slab(
  157. "desert_sandstone",
  158. "default:desert_sandstone",
  159. {cracky = 3},
  160. {"default_desert_sandstone.png"},
  161. "Desert Sandstone",
  162. default.node_sound_stone_defaults()
  163. )
  164. stairs.register_stair_and_slab(
  165. "desert_sandstonebrick",
  166. "default:desert_sandstone_brick",
  167. {cracky = 2},
  168. {"default_desert_sandstone_brick.png"},
  169. "Desert Sandstone Brick",
  170. default.node_sound_stone_defaults()
  171. )
  172. stairs.register_stair_and_slab(
  173. "desert_sandstone_block",
  174. "default:desert_sandstone_block",
  175. {cracky = 2},
  176. {"default_desert_sandstone_block.png"},
  177. "Desert Sandstone Block",
  178. default.node_sound_stone_defaults()
  179. )
  180. stairs.register_stair_and_slab(
  181. "silver_sandstone",
  182. "default:silver_sandstone",
  183. {cracky = 3},
  184. {"default_silver_sandstone.png"},
  185. "Silver Sandstone",
  186. default.node_sound_stone_defaults()
  187. )
  188. stairs.register_stair_and_slab(
  189. "silver_sandstonebrick",
  190. "default:silver_sandstone_brick",
  191. {cracky = 2},
  192. {"default_silver_sandstone_brick.png"},
  193. "Silver Sandstone Brick",
  194. default.node_sound_stone_defaults()
  195. )
  196. stairs.register_stair_and_slab(
  197. "silver_sandstone_block",
  198. "default:silver_sandstone_block",
  199. {cracky = 2},
  200. {"default_silver_sandstone_block.png"},
  201. "Silver Sandstone Block",
  202. default.node_sound_stone_defaults()
  203. )
  204. stairs.register_stair_and_slab(
  205. "obsidian",
  206. "default:obsidian",
  207. {cracky = 1, level = 2},
  208. {"default_obsidian.png"},
  209. "Obsidian",
  210. default.node_sound_stone_defaults()
  211. )
  212. stairs.register_stair_and_slab(
  213. "obsidianbrick",
  214. "default:obsidianbrick",
  215. {cracky = 1, level = 2},
  216. {"default_obsidian_brick.png"},
  217. "Obsidian Brick",
  218. default.node_sound_stone_defaults()
  219. )
  220. stairs.register_stair_and_slab(
  221. "obsidian_block",
  222. "default:obsidian_block",
  223. {cracky = 1, level = 2},
  224. {"default_obsidian_block.png"},
  225. "Obsidian Block",
  226. default.node_sound_stone_defaults()
  227. )
  228. stairs.register_stair_and_slab(
  229. "brick",
  230. "default:brick",
  231. {cracky = 3},
  232. {"default_brick.png"},
  233. "Brick",
  234. default.node_sound_stone_defaults()
  235. )
  236. stairs.register_stair_and_slab(
  237. "adamantd",
  238. "default:adamant_brittle",
  239. {cracky = 1},
  240. {{name="default_adamant_cracked_32x32.png", align_style="world", scale=2}},
  241. "Brittle Adamant",
  242. default.node_sound_stone_defaults()
  243. )
  244. stairs.register_stair_and_slab(
  245. "straw",
  246. "farming:straw",
  247. {snappy = 3, flammable = 4},
  248. {"farming_straw.png"},
  249. "Straw",
  250. default.node_sound_leaves_defaults()
  251. )
  252. stairs.register_stair_and_slab(
  253. "straw_weathered",
  254. "farming:straw_weathered",
  255. {snappy = 3, flammable = 4},
  256. {"farming_straw_weathered.png"},
  257. "Weathered Straw",
  258. default.node_sound_leaves_defaults()
  259. )
  260. stairs.register_stair_and_slab(
  261. "steelblock",
  262. "default:steelblock",
  263. {cracky = 1, level = 2},
  264. {"default_steel_block.png"},
  265. "Wrought Iron Block",
  266. default.node_sound_metal_defaults()
  267. )
  268. stairs.register_stair_and_slab(
  269. "copperblock",
  270. "default:copperblock",
  271. {cracky = 1, level = 2},
  272. {"default_copper_block.png"},
  273. "Copper Block",
  274. default.node_sound_metal_defaults()
  275. )
  276. stairs.register_stair_and_slab(
  277. "bronzeblock",
  278. "default:bronzeblock",
  279. {cracky = 1, level = 2},
  280. {"default_bronze_block.png"},
  281. "Bronze Block",
  282. default.node_sound_metal_defaults()
  283. )
  284. stairs.register_stair_and_slab(
  285. "goldblock",
  286. "default:goldblock",
  287. {cracky = 1},
  288. {"default_gold_block.png"},
  289. "Gold Block",
  290. default.node_sound_metal_defaults()
  291. )
  292. stairs.register_stair_and_slab(
  293. "snowblock",
  294. "default:snowblock",
  295. {
  296. level = 1,
  297. crumbly = 3,
  298. puts_out_fire = 1,
  299. snow = 1,
  300. snowy = 1,
  301. falling_node = 1,
  302. melts = 1,
  303. },
  304. {"default_snow.png"},
  305. "Snow Block",
  306. default.node_sound_snow_defaults()
  307. )
  308. stairs.register_stair_and_slab(
  309. "default_glass",
  310. "default:glass",
  311. {cracky = 3, oddly_breakable_by_hand = 3},
  312. {"default_glass.png"},
  313. "Glass",
  314. default.node_sound_glass_defaults()
  315. )
  316. minetest.override_item("stairs:slab_default_glass", {
  317. sunlight_propagates = true,
  318. })
  319. minetest.override_item("stairs:stair_default_glass", {
  320. sunlight_propagates = true,
  321. })
  322. stairs.register_stair_and_slab(
  323. "obsidian_glass",
  324. "default:obsidian_glass",
  325. {cracky = 3, oddly_breakable_by_hand = 3},
  326. {"default_obsidian_glass.png"},
  327. "Obsidian Glass",
  328. default.node_sound_glass_defaults()
  329. )
  330. minetest.override_item("stairs:slab_obsidian_glass", {
  331. sunlight_propagates = true,
  332. })
  333. minetest.override_item("stairs:stair_obsidian_glass", {
  334. sunlight_propagates = true,
  335. })
  336. stairs.register_stair_and_slab(
  337. "meselamp",
  338. "default:meselamp",
  339. {level = 2, cracky = 3},
  340. {"default_meselamp.png"},
  341. "Mese Lamp",
  342. default.node_sound_glass_defaults()
  343. )
  344. minetest.override_item("stairs:slab_meselamp", {
  345. sunlight_propagates = true,
  346. light_source = default.LIGHT_MAX-1,
  347. })
  348. minetest.override_item("stairs:stair_meselamp", {
  349. sunlight_propagates = true,
  350. light_source = default.LIGHT_MAX-1,
  351. })