How to change default engine code from plugin.

I will try this. Would it also work if I just copied the code that does similar things to what I need rather than the whole plugin?