stairs.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. local S = ethereal.intllib
  2. -- Stairs Redo
  3. if stairs and stairs.mod and stairs.mod == "redo" then
  4. stairs.register_all("crystal_block", "ethereal:crystal_block",
  5. {cracky = 1, level = 2, puts_out_fire = 1, cools_lava = 1},
  6. {"crystal_block.png"},
  7. S("Crystal Block Stair"),
  8. S("Crystal Block Slab"),
  9. default.node_sound_glass_defaults())
  10. stairs.register_all("icebrick", "ethereal:icebrick",
  11. {cracky = 3, puts_out_fire = 1, cools_lava = 1},
  12. {"brick_ice.png"},
  13. S("Ice Brick Stair"),
  14. S("Ice Brick Slab"),
  15. default.node_sound_glass_defaults())
  16. stairs.register_all("snowbrick", "ethereal:snowbrick",
  17. {crumbly = 3, puts_out_fire = 1, cools_lava = 1},
  18. {"brick_snow.png"},
  19. S("Snow Brick Stair"),
  20. S("Snow Brick Slab"),
  21. default.node_sound_dirt_defaults({
  22. footstep = {name = "default_snow_footstep", gain = 0.25},
  23. dug = {name = "default_snow_footstep", gain = 0.75},
  24. }))
  25. stairs.register_all("dry_dirt", "ethereal:dry_dirt",
  26. {crumbly = 3},
  27. {"ethereal_dry_dirt.png"},
  28. S("Dried Dirt Stair"),
  29. S("Dried Dirt Slab"),
  30. default.node_sound_dirt_defaults())
  31. stairs.register_all("mushroom_trunk", "ethereal:mushroom_trunk",
  32. {choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
  33. {"mushroom_trunk.png"},
  34. S("Mushroom Trunk Stair"),
  35. S("Mushroom Trunk Slab"),
  36. default.node_sound_wood_defaults())
  37. stairs.register_all("mushroom", "ethereal:mushroom",
  38. {choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
  39. {"mushroom_block.png"},
  40. S("Mushroom Top Stair"),
  41. S("Mushroom Top Slab"),
  42. default.node_sound_wood_defaults())
  43. stairs.register_all("frost_wood", "ethereal:frost_wood",
  44. {choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
  45. {"frost_wood.png"},
  46. S("Frost Wood Stair"),
  47. S("Frost Wood Slab"),
  48. default.node_sound_wood_defaults())
  49. stairs.register_all("yellow_wood", "ethereal:yellow_wood",
  50. {choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
  51. {"yellow_wood.png"},
  52. S("Healing Wood Stair"),
  53. S("Healing Wood Slab"),
  54. default.node_sound_wood_defaults())
  55. stairs.register_all("palm_wood", "ethereal:palm_wood",
  56. {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  57. {"moretrees_palm_wood.png"},
  58. S("Palm Wood Stair"),
  59. S("Palm Wood Slab"),
  60. default.node_sound_wood_defaults())
  61. stairs.register_all("birch_wood", "ethereal:birch_wood",
  62. {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  63. {"moretrees_birch_wood.png"},
  64. S("Birch Wood Stair"),
  65. S("Birch Wood Slab"),
  66. default.node_sound_wood_defaults())
  67. stairs.register_all("banana_wood", "ethereal:banana_wood",
  68. {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  69. {"banana_wood.png"},
  70. S("Banana Wood Stair"),
  71. S("Banana Wood Slab"),
  72. default.node_sound_wood_defaults())
  73. stairs.register_all("willow_wood", "ethereal:willow_wood",
  74. {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  75. {"willow_wood.png"},
  76. S("Willow Wood Stair"),
  77. S("Willow Wood Slab"),
  78. default.node_sound_wood_defaults())
  79. stairs.register_all("redwood_wood", "ethereal:redwood_wood",
  80. {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  81. {"redwood_wood.png"},
  82. S("Redwood stair"),
  83. S("Redwood Slab"),
  84. default.node_sound_wood_defaults())
  85. stairs.register_all("bamboo_wood", "ethereal:bamboo_block",
  86. {snappy = 3, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  87. {"bamboo_floor.png"},
  88. S("Bamboo stair"),
  89. S("Bamboo Slab"),
  90. default.node_sound_wood_defaults())
  91. stairs.register_all("sakura_wood", "ethereal:sakura_wood",
  92. {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  93. {"ethereal_sakura_wood.png"},
  94. S("Sakura Wood stair"),
  95. S("Sakura Wood Slab"),
  96. default.node_sound_wood_defaults())
  97. -- Stairs Plus (in More Blocks)
  98. elseif minetest.global_exists("stairsplus") then
  99. stairsplus:register_all("ethereal", "crystal_block", "ethereal:crystal_block", {
  100. description = S("Crystal block"),
  101. tiles = {"crystal_block.png"},
  102. groups = {cracky = 1, falling_node = 1, puts_out_fire = 1, cools_lava = 1},
  103. sounds = default.node_sound_glass_defaults(),
  104. })
  105. stairsplus:register_all("ethereal", "icebrick", "ethereal:icebrick", {
  106. description = S("Ice Brick"),
  107. tiles = {"brick_ice.png"},
  108. groups = {cracky = 3, puts_out_fire = 1, cools_lava = 1},
  109. sounds = default.node_sound_glass_defaults(),
  110. })
  111. stairsplus:register_all("ethereal", "snowbrick", "ethereal:snowbrick", {
  112. description = S("Snow Brick"),
  113. tiles = {"brick_snow.png"},
  114. groups = {crumbly = 3, puts_out_fire = 1, cools_lava = 1},
  115. sounds = default.node_sound_dirt_defaults({
  116. footstep = {name = "default_snow_footstep", gain = 0.25},
  117. dug = {name = "default_snow_footstep", gain = 0.75},
  118. })
  119. })
  120. stairsplus:register_all("ethereal", "dry_dirt", "ethereal:dry_dirt", {
  121. description = S("Dried Dirt"),
  122. tiles = {"ethereal_dry_dirt.png"},
  123. groups = {crumbly = 3},
  124. sounds = default.node_sound_dirt_defaults(),
  125. })
  126. stairsplus:register_all("ethereal", "mushroom_trunk", "ethereal:mushroom_trunk", {
  127. description = S("Mushroom Trunk"),
  128. tiles = {"mushroom_trunk.png"},
  129. groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
  130. sounds = default.node_sound_wood_defaults(),
  131. })
  132. stairsplus:register_all("ethereal", "mushroom", "ethereal:mushroom", {
  133. description = S("Mushroom Top"),
  134. tiles = {"mushroom_block.png"},
  135. groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
  136. sounds = default.node_sound_wood_defaults(),
  137. })
  138. stairsplus:register_all("ethereal", "frost_wood", "ethereal:frost_wood", {
  139. description = S("Frost Wood"),
  140. tiles = {"frost_wood.png"},
  141. groups = {choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
  142. sounds = default.node_sound_wood_defaults(),
  143. })
  144. stairsplus:register_all("ethereal", "yellow_wood", "ethereal:yellow_wood", {
  145. description = S("Healing Wood"),
  146. tiles = {"yellow_wood.png"},
  147. groups = {choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
  148. sounds = default.node_sound_wood_defaults(),
  149. })
  150. stairsplus:register_all("ethereal", "palm_wood", "ethereal:palm_wood", {
  151. description = S("Palm Wood"),
  152. tiles = {"moretrees_palm_wood.png"},
  153. groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  154. sounds = default.node_sound_wood_defaults(),
  155. })
  156. stairsplus:register_all("ethereal", "birch_wood", "ethereal:birch_wood", {
  157. description = S("Birch Wood"),
  158. tiles = {"moretrees_birch_wood.png"},
  159. groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  160. sounds = default.node_sound_wood_defaults(),
  161. })
  162. stairsplus:register_all("ethereal", "banana_wood", "ethereal:banana_wood", {
  163. description = S("Banana Wood"),
  164. tiles = {"banana_wood.png"},
  165. groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  166. sounds = default.node_sound_wood_defaults(),
  167. })
  168. stairsplus:register_all("ethereal", "willow_wood", "ethereal:willow_wood", {
  169. description = S("Willow Wood"),
  170. tiles = {"willow_wood.png"},
  171. groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  172. sounds = default.node_sound_wood_defaults(),
  173. })
  174. stairsplus:register_all("ethereal", "redwood_wood", "ethereal:redwood_wood", {
  175. description = S("Redwood"),
  176. tiles = {"redwood_wood.png"},
  177. groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  178. sounds = default.node_sound_wood_defaults(),
  179. })
  180. stairsplus:register_all("ethereal", "bamboo_wood", "ethereal:bamboo_block", {
  181. description = S("Bamboo"),
  182. tiles = {"bamboo_floor.png"},
  183. groups = {snappy = 3, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  184. sounds = default.node_sound_wood_defaults(),
  185. })
  186. stairsplus:register_all("ethereal", "sakura_wood", "ethereal:sakura_wood", {
  187. description = S("Sakura"),
  188. tiles = {"ethereal_sakura_wood.png"},
  189. groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  190. sounds = default.node_sound_wood_defaults(),
  191. })
  192. -- Default Stairs
  193. else
  194. stairs.register_stair_and_slab("crystal_block", "ethereal:crystal_block",
  195. {cracky = 1, level = 2, puts_out_fire = 1, cools_lava = 1},
  196. {"crystal_block.png"},
  197. S("Crystal Block Stair"),
  198. S("Crystal Block Slab"),
  199. default.node_sound_glass_defaults())
  200. stairs.register_stair_and_slab("icebrick", "ethereal:icebrick",
  201. {cracky = 3, puts_out_fire = 1, cools_lava = 1},
  202. {"brick_ice.png"},
  203. S("Ice Brick Stair"),
  204. S("Ice Brick Slab"),
  205. default.node_sound_glass_defaults())
  206. stairs.register_stair_and_slab("snowbrick", "ethereal:snowbrick",
  207. {crumbly = 3, puts_out_fire = 1, cools_lava = 1},
  208. {"brick_snow.png"},
  209. S("Snow Brick Stair"),
  210. S("Snow Brick Slab"),
  211. default.node_sound_dirt_defaults({
  212. footstep = {name = "default_snow_footstep", gain = 0.15},
  213. dug = {name = "default_snow_footstep", gain = 0.2},
  214. dig = {name = "default_snow_footstep", gain = 0.2}
  215. }))
  216. stairs.register_stair_and_slab("dry_dirt", "ethereal:dry_dirt",
  217. {crumbly = 3},
  218. {"ethereal_dry_dirt.png"},
  219. S("Dried Dirt Stair"),
  220. S("Dried Dirt Slab"),
  221. default.node_sound_dirt_defaults())
  222. stairs.register_stair_and_slab("mushroom_trunk", "ethereal:mushroom_trunk",
  223. {choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
  224. {"mushroom_trunk.png"},
  225. S("Mushroom Trunk Stair"),
  226. S("Mushroom Trunk Slab"),
  227. default.node_sound_wood_defaults())
  228. stairs.register_stair_and_slab("mushroom", "ethereal:mushroom",
  229. {choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
  230. {"mushroom_block.png"},
  231. S("Mushroom Top Stair"),
  232. S("Mushroom Top Slab"),
  233. default.node_sound_wood_defaults())
  234. stairs.register_stair_and_slab("frost_wood", "ethereal:frost_wood",
  235. {choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
  236. {"frost_wood.png"},
  237. S("Frost Wood Stair"),
  238. S("Frost Wood Slab"),
  239. default.node_sound_wood_defaults())
  240. stairs.register_stair_and_slab("yellow_wood", "ethereal:yellow_wood",
  241. {choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
  242. {"yellow_wood.png"},
  243. S("Healing Wood Stair"),
  244. S("Healing Wood Slab"),
  245. default.node_sound_wood_defaults())
  246. stairs.register_stair_and_slab("palm_wood", "ethereal:palm_wood",
  247. {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  248. {"moretrees_palm_wood.png"},
  249. S("Palm Wood Stair"),
  250. S("Palm Wood Slab"),
  251. default.node_sound_wood_defaults())
  252. stairs.register_stair_and_slab("birch_wood", "ethereal:birch_wood",
  253. {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  254. {"moretrees_birch_wood.png"},
  255. "Birch Wood Stair",
  256. "Birch Wood Slab",
  257. default.node_sound_wood_defaults())
  258. stairs.register_stair_and_slab("banana_wood", "ethereal:banana_wood",
  259. {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  260. {"banana_wood.png"},
  261. S("Banana Wood Stair"),
  262. S("Banana Wood Slab"),
  263. default.node_sound_wood_defaults())
  264. stairs.register_stair_and_slab("willow_wood", "ethereal:willow_wood",
  265. {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  266. {"willow_wood.png"},
  267. S("Willow Wood Stair"),
  268. S("Willow Wood Slab"),
  269. default.node_sound_wood_defaults())
  270. stairs.register_stair_and_slab("redwood_wood", "ethereal:redwood_wood",
  271. {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  272. {"redwood_wood.png"},
  273. S("Redwood stair"),
  274. S("Redwood Slab"),
  275. default.node_sound_wood_defaults())
  276. stairs.register_stair_and_slab("bamboo_wood", "ethereal:bamboo_block",
  277. {snappy = 3, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  278. {"bamboo_floor.png"},
  279. S("Bamboo stair"),
  280. S("Bamboo Slab"),
  281. default.node_sound_wood_defaults())
  282. stairs.register_stair_and_slab("sakura_wood", "ethereal:sakura_wood",
  283. {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
  284. {"ethereal_sakura_wood.png"},
  285. S("Sakura Wood Stair"),
  286. S("Sakura Wood Slab"),
  287. default.node_sound_wood_defaults())
  288. end