What you think is not what happens in reality.
Just implement what @Xevyr has already implemented as a mod and the problem is solved and the case closed.