@@ -44,7 +44,8 @@ local function rotate_and_place(itemstack, placer, pointed_thing)
44
44
return minetest .item_place (itemstack , placer , pointed_thing , param2 )
45
45
end
46
46
47
- -- Register stairs.
47
+
48
+ -- Register stair
48
49
-- Node will be called stairs:stair_<subname>
49
50
50
51
function stairs .register_stair (subname , recipeitem , groups , images , description , sounds )
141
142
-- Slab facedir to placement 6d matching table
142
143
local slab_trans_dir = {[0 ] = 8 , 0 , 2 , 1 , 3 , 4 }
143
144
144
- -- Register slabs.
145
+
146
+ -- Register slab
145
147
-- Node will be called stairs:slab_<subname>
146
148
147
149
function stairs .register_slab (subname , recipeitem , groups , images , description , sounds )
@@ -292,7 +294,8 @@ if replace then
292
294
})
293
295
end
294
296
295
- -- Register stairs.
297
+
298
+ -- Register inner stair
296
299
-- Node will be called stairs:stair_inner_<subname>
297
300
298
301
function stairs .register_stair_inner (subname , recipeitem , groups , images , description , sounds )
@@ -317,7 +320,7 @@ function stairs.register_stair_inner(subname, recipeitem, groups, images, descri
317
320
end
318
321
groups .stair = 1
319
322
minetest .register_node (" :stairs:stair_inner_" .. subname , {
320
- description = description .. " Inner " ,
323
+ description = " Inner " .. description ,
321
324
drawtype = " nodebox" ,
322
325
tiles = stair_images ,
323
326
paramtype = " light" ,
@@ -368,7 +371,8 @@ function stairs.register_stair_inner(subname, recipeitem, groups, images, descri
368
371
end
369
372
end
370
373
371
- -- Register stairs.
374
+
375
+ -- Register outer stair
372
376
-- Node will be called stairs:stair_outer_<subname>
373
377
374
378
function stairs .register_stair_outer (subname , recipeitem , groups , images , description , sounds )
@@ -393,7 +397,7 @@ function stairs.register_stair_outer(subname, recipeitem, groups, images, descri
393
397
end
394
398
groups .stair = 1
395
399
minetest .register_node (" :stairs:stair_outer_" .. subname , {
396
- description = description .. " Outer " ,
400
+ description = " Outer " .. description ,
397
401
drawtype = " nodebox" ,
398
402
tiles = stair_images ,
399
403
paramtype = " light" ,
@@ -443,6 +447,7 @@ function stairs.register_stair_outer(subname, recipeitem, groups, images, descri
443
447
end
444
448
end
445
449
450
+
446
451
-- Stair/slab registration function.
447
452
-- Nodes will be called stairs:{stair,slab}_<subname>
448
453
@@ -453,6 +458,7 @@ function stairs.register_stair_and_slab(subname, recipeitem, groups, images, des
453
458
stairs .register_slab (subname , recipeitem , groups , images , desc_slab , sounds )
454
459
end
455
460
461
+
456
462
-- Register default stairs and slabs
457
463
458
464
stairs .register_stair_and_slab (
0 commit comments