if (storage.NotFull) then mine(world.FindOre("Coal")) else drive(base.Location()) deposit(storage, base) end