Rewrite minecraft's movement handling to move it into the main tick loop