Adding code replacement by build script

This is also a preparation for Maven code, as this mod depends on tgame-core