How to make a mod?

Can anyone please tell me step by step how setup the whole project and compile with Codeblocks on Windows 10 to make Quake 3 mod (or any other alternative if its easier to setup). Thanks.