local color local wool_colors = { "red" , "white" , "blue" , "green" , "dark_green" , "black" , "cyan" , "orange" , "yellow" , "dark_grey" , } for _,color in pairs (wool_colors) do for pass = 1,2 do if pass == 1 then nodepart = "wool_" .. color neednode = "stairs:slope_" .. nodepart fromnode = "wool:" .. color else nodepart = "wool_glow_" .. color neednode = "stairs:slope_" .. nodepart fromnode = "wool:glow_" .. color end if minetest.registered_nodes [neednode] == nil and minetest.registered_nodes [fromnode] ~= nil then stairs.register_all (nodepart, fromnode, { snappy=2, choppy=2, oddly_breakable_by_hand=3, not_in_creative_inventory=1, flammable=3, wool=1 } , { "wool_" .. color .. ".png" } , " Wool - " .. color , default.node_sound_defaults()) end end end -- =================================================================== -- End of file.