init.lua 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  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. "straw",
  238. "farming:straw",
  239. {snappy = 3, flammable = 4},
  240. {"farming_straw.png"},
  241. "Straw",
  242. default.node_sound_leaves_defaults()
  243. )
  244. stairs.register_stair_and_slab(
  245. "straw_weathered",
  246. "farming:straw_weathered",
  247. {snappy = 3, flammable = 4},
  248. {"farming_straw_weathered.png"},
  249. "Weathered Straw",
  250. default.node_sound_leaves_defaults()
  251. )
  252. stairs.register_stair_and_slab(
  253. "steelblock",
  254. "default:steelblock",
  255. {cracky = 1, level = 2},
  256. {"default_steel_block.png"},
  257. "Wrought Iron Block",
  258. default.node_sound_metal_defaults()
  259. )
  260. stairs.register_stair_and_slab(
  261. "copperblock",
  262. "default:copperblock",
  263. {cracky = 1, level = 2},
  264. {"default_copper_block.png"},
  265. "Copper Block",
  266. default.node_sound_metal_defaults()
  267. )
  268. stairs.register_stair_and_slab(
  269. "bronzeblock",
  270. "default:bronzeblock",
  271. {cracky = 1, level = 2},
  272. {"default_bronze_block.png"},
  273. "Bronze Block",
  274. default.node_sound_metal_defaults()
  275. )
  276. stairs.register_stair_and_slab(
  277. "goldblock",
  278. "default:goldblock",
  279. {cracky = 1},
  280. {"default_gold_block.png"},
  281. "Gold Block",
  282. default.node_sound_metal_defaults()
  283. )
  284. stairs.register_stair_and_slab(
  285. "snowblock",
  286. "default:snowblock",
  287. {
  288. level = 1,
  289. crumbly = 3,
  290. puts_out_fire = 1,
  291. snow = 1,
  292. snowy = 1,
  293. falling_node = 1,
  294. melts = 1,
  295. },
  296. {"default_snow.png"},
  297. "Snow Block",
  298. default.node_sound_snow_defaults()
  299. )
  300. stairs.register_stair_and_slab(
  301. "default_glass",
  302. "default:glass",
  303. {cracky = 3, oddly_breakable_by_hand = 3},
  304. {"default_glass.png"},
  305. "Glass",
  306. default.node_sound_glass_defaults()
  307. )
  308. minetest.override_item("stairs:slab_default_glass", {
  309. sunlight_propagates = true,
  310. })
  311. minetest.override_item("stairs:stair_default_glass", {
  312. sunlight_propagates = true,
  313. })
  314. stairs.register_stair_and_slab(
  315. "obsidian_glass",
  316. "default:obsidian_glass",
  317. {cracky = 3, oddly_breakable_by_hand = 3},
  318. {"default_obsidian_glass.png"},
  319. "Obsidian Glass",
  320. default.node_sound_glass_defaults()
  321. )
  322. minetest.override_item("stairs:slab_obsidian_glass", {
  323. sunlight_propagates = true,
  324. })
  325. minetest.override_item("stairs:stair_obsidian_glass", {
  326. sunlight_propagates = true,
  327. })
  328. stairs.register_stair_and_slab(
  329. "meselamp",
  330. "default:meselamp",
  331. {level = 2, cracky = 3},
  332. {"default_meselamp.png"},
  333. "Mese Lamp",
  334. default.node_sound_glass_defaults()
  335. )
  336. minetest.override_item("stairs:slab_meselamp", {
  337. sunlight_propagates = true,
  338. light_source = default.LIGHT_MAX-1,
  339. })
  340. minetest.override_item("stairs:stair_meselamp", {
  341. sunlight_propagates = true,
  342. light_source = default.LIGHT_MAX-1,
  343. })