stairs.lua 11 KB

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