basic old school mining script