Mod authors, making a better tomorrow.
Going to keep this short.
As your mod gets more lines of code, it gets harder to maintain.
Unless you adopt a set of self-imposed rules to follow while making your mod, having a poor plan makes your mod harder to read, fix, update, and do. Maintainability is critically important.
All you need to do, is 4 things.
1) Name the services/features your mod provides.
2) Tag all blocks of code with one of those named comments.
3) Lead ID's with specific numbers, making them easier to read and "find".
4) Structure your "Itemtype" ID's for the same purpose as #3; it makes Search and Replace easier.
With those 4 things, you can now "find" anything with zero clutter in the search results; remembering, understanding, and following an entire feature set is now simple.
(Study my mod "Overhaul" for a complete and current example.)