Basic coding, added in minecart collision events.